🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50151

Re: Article numbering on NNTP servers

#50151
From: Russ Allbery
Date: Fri, 26 Jan 2001 01:48
50 lines
3206 bytes
Marcus Moennig <minibbjd@gmx.net> writes:

> This goes on and on through the lifetime of the server, so is there a
> limit where the numbering starts with one again?

Yes; it's unlikely to be reached any time soon, even in control.cancel,
however.  But yes, sooner or later there would need to be a flag day that
will confuse all of the clients that were reading that group.

> I understand that is not the case, it will simply go on and on.

No.  Article numbers may not exceed an unsigned 32-bit integer; that's
part of the protocol spec.

> What might be a real-world problem is a server crash. An offline
> newsreader logged into the server yesterday and saved a list of headers
> to disk. Over night the server crashed, all articles are lost and admins
> start sucking in articles again. Will they restart numbering with one?

Usually.

> The newsreader logs in a day after and requests an article by article
> number that it saved the day before. Of course an article with that
> number is no longer there.

The news reader should detect that something weird happened when it sends
a GROUP command and discovers that the list of numbers is way off from
what it expects.  rn varients at this point print an error message and
then discard their "already read" information for that group, which is
probably the best thing to do in that situation.

> When retrieving article bodies for known headers by article number,
> should it check the returned message has the correct MessageId?

No.  This is almost certainly unnecessary; if the article numbering
changes, it will change by a lot, in practice.

> Even this wouldn't solve the problem completely, e.g. if a low volume
> group has article 1 to 10 which is copied to local disk by the
> newsreader, then the server has a disk crash, after a month it has 10
> new (different) articles 1 to 12 and the newsreader connects again
> doesn't even notice that there was a problem. It would get articles 11
> to 12, but ignore the other 10 _new_ articles.

Yup.  I think this is unlikely enough that people pretty much just ignore
the problem.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Technical Details
Message-ID: <ylsnm76q2r.fsf@windlord.stanford.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!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!sunqbc.risq.qc.ca!logbridge.uoregon.edu!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
References: <36916.96891amb@40tude.com>

Show Full Headers
Complete Article Headers
Message-ID: <ylsnm76q2r.fsf@windlord.stanford.edu>
Subject: Re: Article numbering on NNTP servers
Date: Fri, 26 Jan 2001 01:48:43 +0000
From: Russ Allbery <rra@stanford.edu>
References: <36916.96891amb@40tude.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!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!sunqbc.risq.qc.ca!logbridge.uoregon.edu!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 49
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 980473724 28277 171.64.13.23 (26 Jan 2001 01:48:44 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)