🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Julien ÉLIE Tue, 12 Sep 2023 12:09
Re: Bug in SLRN trunk: not seen in 1.0.3.
#266035
Author: 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! »
Re: Bug in SLRN trunk: not seen in 1.0.3.
#266034
Author: Retro Guy
Date: Tue, 12 Sep 2023 14:02
64 lines
3704 bytes
Julien_ÉLIE wrote:

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

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

This is how my simple nnrpd server handles this, and clients seem to respond
fine to it. Missing articles (deleted, cancelled, NoCeM) are not listed
and not counted. When the highest article is deleted, it is noted in a file
and not reused.

Here's a sample:

200 Rocksolid Light NNTP Server ready (no posting)
group rocksolid.test.test
211 180 2 214 rocksolid.test.test
quit
205 closing connection - goodbye!

Then, I delete the highest article (214)

200 Rocksolid Light NNTP Server ready (no posting)
group rocksolid.test.test
211 179 2 213 rocksolid.test.test
quit
205 closing connection - goodbye!

Then I post a new article

200 Rocksolid Light NNTP Server ready (no posting)
group rocksolid.test.test
211 180 2 215 rocksolid.test.test
quit
Connection closed by foreign host.

The same counting applies to any nnrpd commands requesting count
infomation. So far I have so far not seen any issues with clients.

-- 
Retro Guy
Re: Bug in SLRN trunk: not seen in 1.0.3.
#266043
Author: Julien ÉLIE
Date: Wed, 13 Sep 2023 10:21
20 lines
2009 bytes
Responding to my previous article:
> 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 expiration process does not decrease high water 
> marks in overview data, but only updates low water marks, article counts 
> and removes old articles.
> Just to be sure, I have just cancelled an article in a local testing 
> group, and will report tomorrow.

I confirm the high water mark does not decrease in the overview data 
after an expiration run.  Same thing as for the active file.
The expiration process properly cleans up the related (hidden) expired 
overview data, as discussed yesterday.

-- 
Julien ÉLIE

« Donec eris felix, multos numerabis amicos. » (Ovide)
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