🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #266035

Re: Bug in SLRN trunk: not seen in 1.0.3.

#266035
From: Julien ÉLIE
Date: Tue, 12 Sep 2023 12:09
77 lines
4882 bytes
Hi Russ,

> The basic problem is that from the perspective of slrn it's an
> inconsistency in the overview database (and maybe the active file; I'm not
> sure precisely what the database looks like since it's been a while since
> I've looked at this).

The high water mark never decreases in the active file as this 
information is used by innd to assign the next unused article number.

Though overview data may be handled differently, I think the same rule 
is also followed, and the expiry process does not decrease high water 
marks in overview data, but only updates low water marks, article counts 
and removes old articles.  It is what I have in mind from recent 
investigation in the 4 overview methods when looking at how they handle 
empty newsgroups.
Just to be sure, I have just cancelled an article in a local testing 
group, and will report tomorrow.



> The thing is, slrn doesn't know which way that inconsistency will
> eventually resolve.  We all know that it's probably because the articles
> were deleted and thus this will be resolved by deleting the overview
> records as well, and this isn't done because due to the structure of the
> overview database in the most common configurations deletions are
> expensive and are therefore batched.  But from slrn's perspective, it's
> possible that the articles are going to show up later and make the
> overview correct (and there are indeed some configurations where that can
> possibly happen).  So it's making the conservative decision to keep
> retrying those articles to see if they start working, until the overview
> records are removed.

In order to improve the experience of news clients, wouldn't a 
groupexacthigh parameter in readers.conf be useful in INN?
The idea would be that nnrpd would give a high water mark corresponding 
to an existing article when responding to GROUP, LISTGROUP, LIST ACTIVE 
and LIST COUNTS.


In Kaz's example where ~/.jewsrc has "comp.lang.c: 1-254212" but the 
news server reports that the highest available article number is 254214, 
using "groupexacthigh: 5" in readers.conf would result in the news 
server reporting that the highest available article number is 254212.
It would probe the existence of articles from 254214 to (254214-5), and 
report the highest existing one, or (254214-5), to the client.



In the latest INN 2.7.1 release, a groupexactcount parameter was added 
to report the real article *count* instead of an estimate.  When the 
estimated count of articles is strictly smaller than groupexactcount, 
nnrpd recounts the number of still existing articles, and report the 
exact value.  If groupexactcount is set to 0, nnrpd always recounts.  If 
set to 1, it never recounts.
Though exact article counts are not required by the NNTP protocol, they 
may be useful to distinguish empty newsgroups by reporting an exact 
count of 0 instead of an estimate of 1 (when it happens, the news client 
may show that 1 article is present in the newsgroup, then it tries to 
retrieve the article, and finally does not show anything to the user).
The default value for this parameter is 5.


I suggest a similar parameter for the high water mark, as it also sounds 
useful (independently of whether there is a regression in slrn 1.0.4, 
other news clients may also report that 2 new articles are available in 
comp.lang.c but on entering the group and downloading its real overview 
data, the number of new articles to read becomes 0).

I add the news.software.readers newsgroup in this discussion.  Maybe 
some people have there information about news clients reporting 
available articles, and then nothing when entering the group?

-- 
Julien ÉLIE

« Life is short… so eat dessert first! »
Technical Details
Message-ID: <udpkdo$2sh67$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <20230911185353.581@kylheku.com> <slrnufvq4m.15l9v.rayban@raybanana.net> <20230911214521.831@kylheku.com> <20230911222037.955@kylheku.com> <877cowj6sm.fsf@hope.eyrie.org>

Show Full Headers
Complete Article Headers
Message-ID: <udpkdo$2sh67$1@news.trigofacile.com>
Subject: Re: Bug in SLRN trunk: not seen in 1.0.3.
Date: Tue, 12 Sep 2023 14:09:28 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <20230911185353.581@kylheku.com> <slrnufvq4m.15l9v.rayban@raybanana.net> <20230911214521.831@kylheku.com> <20230911222037.955@kylheku.com> <877cowj6sm.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp,news.software.readers
Organization: Groupes francophones par TrigoFACILE
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 12 Sep 2023 12:09:28 -0000 (UTC)
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
 Gecko/20100101 Thunderbird/102.15.0
Cancel-Lock: sha1:xw5g0wP66HQNY5pwInwZHHD+ELk= sha256:nv7Hl6RBr+BwfYwyVVnAhWKb8Bt6KxeMroDsTKFdQGM=
In-Reply-To: <877cowj6sm.fsf@hope.eyrie.org>