Thread View: news.software.nntp
3 messages
3 total messages
Started by Michael Hucka
Sat, 26 Jul 1997 00:00
What was the problem with all-numeric group name components?
Author: Michael Hucka
Date: Sat, 26 Jul 1997 00:00
Date: Sat, 26 Jul 1997 00:00
14 lines
1265 bytes
1265 bytes
I'm trying to track down a problem on our server with expire that involves some groups will all-numeric name components (e.g., foo.bar.89.88). I vaguely recall a long time hearing about possible problems involving such group names. Can anyone remember or point me to information about what the problems are? (This is for INN 1.5.1.) Even though I've saved tons of n.s.n postings, I can't seem to find a discussion involving the details of this. -- Mike Hucka hucka@umich.edu http://www.eecs.umich.edu/~hucka University PhD to be, computational models of human visual processing (AI Lab) of UNIX systems administrator & programmer/analyst (EECS DCO) Michigan
Re: What was the problem with all-numeric group name components?
Author: Terry Kennedy
Date: Sun, 27 Jul 1997 00:00
Date: Sun, 27 Jul 1997 00:00
26 lines
2167 bytes
2167 bytes
Michael Hucka <hucka@eecs.umich.edu> writes:
> I'm trying to track down a problem on our server with expire that involves
> some groups will all-numeric name components (e.g., foo.bar.89.88). I
> vaguely recall a long time hearing about possible problems involving such
> group names. Can anyone remember or point me to information about what the
> problems are? (This is for INN 1.5.1.) Even though I've saved tons of n.s.n
> postings, I can't seem to find a discussion involving the details of this.
The problem is that some software assumes that anything with all numerics
in the name is an article number. Since the people who newgroup these names
start at the 0 end of the scale and not the MAXINT end 8-), these names will
wind up being mistaken for low article numbers (for example, alt.2600 was the
original bad-numeric group, and it would always report a minimum article num-
ber of 2600 and a maximum of a few hundred thousand, causing newsreaders to
malloc() space for a few hundred thousand articles).
The alternative is to change all the operations that expect numeric-only
names to signify articles to also check to see if it's a regular file (vs. a
directory). Big performance lossage.
Terry Kennedy Operations Manager, Academic Computing
terry@spcvxa.spc.edu St. Peter's College, Jersey City, NJ USA
+1 201 915 9381 (voice) +1 201 435-3662 (FAX)
Re: What was the problem with all-numeric group name components?
Author: Joe Greco
Date: Sun, 27 Jul 1997 00:00
Date: Sun, 27 Jul 1997 00:00
59 lines
3625 bytes
3625 bytes
In news.software.nntp article <827medxlqg.fsf@parrot.eecs.umich.edu>, Michael Hucka <hucka@eecs.umich.edu> wrote: :I'm trying to track down a problem on our server with expire that involves :some groups will all-numeric name components (e.g., foo.bar.89.88). I :vaguely recall a long time hearing about possible problems involving such :group names. Can anyone remember or point me to information about what the :problems are? (This is for INN 1.5.1.) Even though I've saved tons of n.s.n :postings, I can't seem to find a discussion involving the details of this. There are a variety of problems. Most of them are due to confusion as to whether or not the name is an article or directory. Consider the group "alt.2600.414" (not sure how common this one is). There is a valid group "alt.2600". There is a directory named "414" inside the "2600" directory. When "alt.2600" is created, the high message number is less than 414. Now, in the worst case, here's a nasty thing that can happen. 413 posts can be received and written. The 414'th will try to write the _file_ /news/alt/2600/414, which happens to be a _directory_. INN stalls with a critical error. Or... maybe worse... you get past this by manually incrementing the number past 414 and continuing. Well, then, when INN is renumbering the group, the low message will always be 414, because there is a numbered "file" (directory) named 414. It's a weakness of the spool design traditionally used for news. What should have happened is that either the directories or the files should have been named with dot.names (I vote for the files). That way, you would have article filenames like "/news/alt/2600/a.414" which can NOT possibly ever have a matching newsgroup name. While this sounds trivial, it's mildly complicated by how INN stores filename info in the history file (i.e. "alt.2600.a.414" in this example). I guess one could modify algorithms to avoid converting the last dot to slash, and the expire scan algorithm could be modified too. Or one could use a disallowed newsgroup name character instead of the "a". In any case, if you ARE having problems with expire, I do NOT know what the problem is, but I'll give you a course of investigation to pursue. The history expire algorithm _probably_ derives the group name of an article in the history by scanning forward through a string like alt.2600.414.314159 (where 2600, and 414 are dirs, and 314159 is the file) looking for a dot with a number immediately following. In the normal case, such a sequence would indicate the start of the filename, and expire would then use the string up to that point to compare with whatever it compares to. That obviously messes up here, since the group name it would get for "alt.2600.414" would incorrectly be "alt". This is hypothetical. I have not looked at the code, but just wanted to share a few thoughts on where your troubles might be and why. ... JG
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads