Article View: news.software.nntp
Article #19722Re: What was the problem with all-numeric group name components?
From: 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
Technical Details
Message-ID:
<5rfpf0$ake$1@earth.execpc.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<827medxlqg.fsf@parrot.eecs.umich.edu>Show Full Headers
Complete Article Headers
Message-ID: <5rfpf0$ake$1@earth.execpc.com> Subject: Re: What was the problem with all-numeric group name components? Date: Sun, 27 Jul 1997 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <827medxlqg.fsf@parrot.eecs.umich.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 259431190 Sender: jgreco@earth.execpc.com Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp