🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Russ Allbery Tue, 12 Sep 2023 16:25
Re: Bug in SLRN trunk: not seen in 1.0.3.
#266041
Author: Russ Allbery
Date: Tue, 12 Sep 2023 16:25
52 lines
3469 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:

> 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 initial number of unread articles is probably based entirely on the
high water mark, but to me the question is why slrn doesn't mark those
articles as read the first time you enter the group and they don't exist.
I am assuming that this is because it sees phantom OVER entries for them,
but then the articles are missing when it goes to retrieve them.  This
could indicate, say, an overchan setup where the overview was written
before the article was written, so it is arguably correct to not mark such
articles as read.

If the OVER command also doesn't return any data for those articles,
though, I think slrn really should just mark them as read and move on.
Articles that are both missing and don't have OVER entries probably have
been deleted.  (Although I guess this could be wrong if somehow the high
water mark got updated before *either* the article was written or the
overview database was updated.  I don't remember if that can happen.)

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

I thought the overview data for the deleted article would be dropped from
the database during nightly expire, so will not appear in the OVER output,
but it's been a while since I looked at it so I could be wrong.  In other
words, I think you're correct that the high water marks would not change,
since that's how INN ensures that it never reuses an article number, but
when you run OVER on the group, I believe the entries for those articles
should be missing.

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

Yes, that would also solve the problem.  It won't avoid the appearance of
three unread articles and then seeing only one unread article the next
time an article arrives that isn't deleted, but I think that's unavoidable
in the protocol.

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Bug in SLRN trunk: not seen in 1.0.3.
#266042
Author: Julien ÉLIE
Date: Tue, 12 Sep 2023 17:54
52 lines
3936 bytes
Hi Russ,

>> 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.
> 
> I thought the overview data for the deleted article would be dropped from
> the database during nightly expire, so will not appear in the OVER output,
> but it's been a while since I looked at it so I could be wrong.  In other
> words, I think you're correct that the high water marks would not change,
> since that's how INN ensures that it never reuses an article number, but
> when you run OVER on the group, I believe the entries for those articles
> should be missing.

The entries for cancelled articles no longer are in the overview data 
returned by an OVER request.  When processing a cancel, the rows are 
deleted in ovdb/ovsqlite database and the index entry is deleted in 
tradindexed.  OVER no longer shows them.
The expiration process will then properly remove the overview data in 
tradindexed.

The use case when the overview data is still present but no longer the 
article, is when using CNFS and the article has been overwritten.  OVER 
will report the article until the next expire run.


>> 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.
> 
> Yes, that would also solve the problem.  It won't avoid the appearance of
> three unread articles and then seeing only one unread article the next
> time an article arrives that isn't deleted, but I think that's unavoidable
> in the protocol.

Ah yes, indeed, there may be gaps in the available article numbers.  The 
problem solved here would be to show unread articles whereas there are 
no new articles to read, but not the exact count of unread articles, 
which is impossible to know from a mere GROUP command.
The client may send a "LISTGROUP latest high-new advertised high" 
command and counts itself, but it will slow down a bit the reading 
experience.

-- 
Julien ÉLIE

« Sum, ergo bibo ; bibo, ergo sum. »
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