🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50162

Re: Article numbering on NNTP servers

#50162
From: Juergen Helbing
Date: Fri, 26 Jan 2001 07:00
80 lines
4031 bytes
"Marcus Moennig" <minibbjd@gmx.net> wrote:

>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? 

I've written a small news-server myself - based on Win32.
Due to the notorious tendency of Win to crash I did add  
special recovery features: The high-number per group is stored
twice (in the group list - and in a special file) - with crash recovery.

This topic is not too important from an admins view who deals
with millions of articles. But users are very confused when they
are missing five articles in a low volume group.

>How should a newsreader deal with these situations?

Most popular news-readers are ignoring the problem and simply 
wait for a high number which is greater than the last stored one.

Users (who wonder about an empty group) can intervent in
two ways:  They can either "catch up" with the group - this resets all
high counters for one/many/all groups to the actual high value. Then 
at least all new messages are fetched from now one.
The second is to "Reload all headers" (almost limited to 300/1000/nnnn).
Of course a good new-reader show repair its xover->articlenumber list.

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

I have seen a lot of wierd behavior of a few servers: If you fetch
old articles which has been expired, then you sometimes get a 
wrong article. This is a malfunction of a server - but I think that a 
client should always react "defensively".
So it might be a good idea to ALWAYS check the msgid after downloading
an article.

>And when selecting a group should it check everytime that the highest 
>article number returned after the GROUP ... command is not smaller 
>than it was the last time?

I did implement a warning when a high number is lower than before
- and I tried download the entire xover again automatically whenever
the new high number is lower than the last low-number.

However this caused new problems because some servers
reduce their high number if the highest messages are cancelled.
So the situation happens more often than some believe.

>Any ideas, suggestions, explanation of main stream solutions to these 
>problems would be appreciated.

It seems that most news-reader writers are using the actually modern
theory: "Dont bother the user with error-messages - it just confused them".
I dont subscribe to this - but you can choose the same strategy
(it reduces the amount of coding for exceptional situations ;-)

You have two extreme choices:
1 - Ignore high mark decreases - and offer the user the functions to "catch up"
and "reload all".
2 - Reload entire message list (and repair internal article numbering) in case
of high mark decreases.

(I'm using -2- and issue only a warning if more than xxx headers must be reloaded)


btw.: It took me a lot of time to deal with the "high number problem", too.
But obviously RFC 2980 was written by server programmers who did
not take this too serious. Else there would have been a proposal for
servers/readers for this case.

-- 
CU 

Juergen


Technical Details
Message-ID: <q11280k00@archiver.winews.net>
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!sn-xit-01!supernews.com!news.alt.net!usenet
References: <36916.96891amb@40tude.com>

Show Full Headers
Complete Article Headers
Message-ID: <q11280k00@archiver.winews.net>
Subject: Re: Article numbering on NNTP servers
Date: Fri, 26 Jan 2001 07:00:20 +0000
From: infstar@infostar.de (Juergen Helbing)
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!sn-xit-01!supernews.com!news.alt.net!usenet
Newsgroups: news.software.nntp
Organization: Altopia Corp. - Usenet Access - http://www.altopia.com
Lines: 79
X-Newsreader: MyNews