🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
11 messages
11 total messages Started by Julien ÉLIE Thu, 05 Mar 2009 19:30
Low water mark of an empty newsgroup
#80229
Author: Julien ÉLIE
Date: Thu, 05 Mar 2009 19:30
60 lines
3465 bytes
Hi,

Simple question:  I have a newsgroup with one article.  Its number is 12.
low water mark = high water mark = 12.

I cancel the article.  What are the low/high water mark which SHOULD be given?
My guess is low = 13 and high = 12.  Is it right?
Because the following article will be the 13th.

Or low = 12 and high = 11?

I ask because I am unsure and I do not manage to find an authoritative
answer in RFC 3977.


RFC 3977 about an empty newsgroup:

   o  The high water mark will be one less than the low water mark, and
      the estimated article count will be zero.  Servers SHOULD use this
      method to show an empty group.  This is the only time that the
      high water mark can be less than the low water mark.

[...]

   The successful selection response will return the article numbers of
   the first and last articles in the group at the moment of selection
   (these numbers are referred to as the "reported low water mark" and
   the "reported high water mark") and an estimate of the number of
   articles in the group currently available.

[...]

   Except when the group is empty and all three numbers are zero,
   whenever a subsequent GROUP command for the same newsgroup is issued,
   either by the same client or a different client, the reported low
   water mark in the response MUST be no less than that in any previous
   response for that newsgroup in this session, and it SHOULD be no less
   than that in any previous response for that newsgroup ever sent to
   any client.  Any failure to meet the latter condition SHOULD be
   transient only.  The client may make use of the low water mark to
   remove all remembered information about articles with lower numbers,
   as these will never recur.  This includes the situation when the high
   water mark is one less than the low water mark.

[...]

   Note that a previously valid article number MAY become invalid if the
   article has been removed.  A previously invalid article number MAY
   become valid if the article has been reinstated, but this article
   number MUST be no less than the reported low water mark for that
   group.


Thanks,

-- 
Julien ÉLIE

« Sol lucet omnibus. » 
Re: Low water mark of an empty newsgroup
#80230
Author: Russ Allbery
Date: Thu, 05 Mar 2009 19:37
21 lines
1971 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:

> Simple question:  I have a newsgroup with one article.  Its number is
> 12.  low water mark = high water mark = 12.
>
> I cancel the article.  What are the low/high water mark which SHOULD be
> given?  My guess is low = 13 and high = 12.  Is it right?  Because the
> following article will be the 13th.
>
> Or low = 12 and high = 11?

I think your guess is correct; that will have the correct semantics when
the next article arises.  You should always be able to handle article
arrival by incrementing the high-water mark and leaving the low-water mark
unchanged.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Low water mark of an empty newsgroup
#80232
Author: Ray Banana
Date: Thu, 05 Mar 2009 19:39
16 lines
1882 bytes
Thus spake Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
 
> Simple question:  I have a newsgroup with one article.  Its number is 12.
> low water mark = high water mark = 12.

> I cancel the article.  What are the low/high water mark which SHOULD
> be given? 
> My guess is low = 13 and high = 12.  Is it right?
> Because the following article will be the 13th.

As the high water mark is *never* decreased, the low water mark will be
13 to indicate an empty group.

-- 
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
Re: Low water mark of an empty newsgroup
#80233
Author: Julien ÉLIE
Date: Thu, 05 Mar 2009 19:41
19 lines
1888 bytes
Hi Ray,

> As the high water mark is *never* decreased, the low water mark will be
> 13 to indicate an empty group.

This is not a good argument because RFC 3977 states:

   No similar assumption can be made about the high water mark, as this can
   decrease if an article is removed and then increase again if it is
   reinstated or if new articles arrive.

:)

-- 
Julien ÉLIE

« Être en vacances, c'est n'avoir rien à faire et avoir
  toute la journée pour le faire. » (Robert Orben) 
Re: Low water mark of an empty newsgroup
#80234
Author: Julien ÉLIE
Date: Thu, 05 Mar 2009 19:50
46 lines
3109 bytes
Hi Russ,

>> Simple question:  I have a newsgroup with one article.  Its number is
>> 12.  low water mark = high water mark = 12.
>>
>> I cancel the article.  What are the low/high water mark which SHOULD be
>> given?  My guess is low = 13 and high = 12.  Is it right?  Because the
>> following article will be the 13th.
>>
>> Or low = 12 and high = 11?
>
> I think your guess is correct; that will have the correct semantics when
> the next article arises.

My only concern was that a news client would say "low=13" but there was
no article 13 and marked it as retrieved.  Then comes article 13 and the
news client does not retrieve it because low=13 and high=13 and it thinks
it already has it.
Maybe if a news client does that, then it has a bug.  But I wanted to be sure.


> You should always be able to handle article
> arrival by incrementing the high-water mark and leaving the low-water mark
> unchanged.

That sounds logical.

Then the definition of the "low water mark" in RFC 3977 should perhaps mention
that it is in the case of a non-empty newsgroup:

   The successful selection response will return the article numbers of
   the first and last articles in the group at the moment of selection
   (these numbers are referred to as the "reported low water mark" and
   the "reported high water mark") and an estimate of the number of
   articles in the group currently available.

Otherwise, one cannot define them, and their meaning is said afterwards
in the RFC.

-- 
Julien ÉLIE

« Avec toutes les saletés que les gens jettent dans le fleuve,
  il n'y a plus de poissons ! Tout ce que je pêche depuis ce matin
  sont des amphores vides ! » (Astérix)
Re: Low water mark of an empty newsgroup
#80235
Author: Ray Banana
Date: Thu, 05 Mar 2009 19:53
17 lines
2084 bytes
Thus spake Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
 
>> As the high water mark is *never* decreased, the low water mark will be
>> 13 to indicate an empty group.
> This is not a good argument because RFC 3977 states:
>   No similar assumption can be made about the high water mark, as this can
>   decrease if an article is removed and then increase again if it is
>   reinstated or if new articles arrive.
> :)

My statement is correct for INN and this behaviour complies with RFC
3977. It also makes sense, as it allows to handle incoming articles in
one atomic operation. 

-- 
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
Re: Low water mark of an empty newsgroup
#80236
Author: Julien ÉLIE
Date: Thu, 05 Mar 2009 19:59
24 lines
2342 bytes
Hi Ray,

>>> As the high water mark is *never* decreased, the low water mark will be
>>> 13 to indicate an empty group.
>> This is not a good argument because RFC 3977 states:
>>   No similar assumption can be made about the high water mark, as this can
>>   decrease if an article is removed and then increase again if it is
>>   reinstated or if new articles arrive.
>> :)
>
> My statement is correct for INN and this behaviour complies with RFC
> 3977. It also makes sense, as it allows to handle incoming articles in
> one atomic operation.

Yep, INN never decreases high water marks.  I thought you were generally
speaking (in which case, a news server MAY decrease high water marks).

-- 
Julien ÉLIE

« Avec toutes les saletés que les gens jettent dans le fleuve,
  il n'y a plus de poissons ! Tout ce que je pêche depuis ce matin
  sont des amphores vides ! » (Astérix) 
Re: Low water mark of an empty newsgroup
#80237
Author: Ray Banana
Date: Thu, 05 Mar 2009 20:02
20 lines
2364 bytes
Thus spake Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
 
>>>> As the high water mark is *never* decreased, the low water mark will be
>>>> 13 to indicate an empty group.
>>> This is not a good argument because RFC 3977 states:
>>>   No similar assumption can be made about the high water mark, as this can
>>>   decrease if an article is removed and then increase again if it is
>>>   reinstated or if new articles arrive.
>>> :)
>> My statement is correct for INN and this behaviour complies with RFC
>> 3977. It also makes sense, as it allows to handle incoming articles in
>> one atomic operation.
> Yep, INN never decreases high water marks.  I thought you were generally
> speaking (in which case, a news server MAY decrease high water marks).

OK. In that case the answer to your question is "It depends" ;-)

-- 
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
Re: Low water mark of an empty newsgroup
#80238
Author: Julien ÉLIE
Date: Thu, 05 Mar 2009 20:06
23 lines
2071 bytes
Hi Ray,

> OK. In that case the answer to your question is "It depends" ;-)

*grin*

Had RFC 3977 said the low water mark was one more than the high
water mark, it would have been clearer.  Well, at least for me :)

(It actually states the high water mark is one less than the low
water mark.)

The first one seems to imply we increase the usual low water mark
whereas the second sentence seems to imply we decrease the high
water mark.

-- 
Julien ÉLIE

« -- Il a beaucoup de talents...
  -- Il est doué ?
  -- Non il est riche. Il a beaucoup de talents d'or. » (Astérix)
Re: Low water mark of an empty newsgroup
#80240
Author: Russ Allbery
Date: Thu, 05 Mar 2009 20:25
33 lines
2563 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:

> My only concern was that a news client would say "low=13" but there was
> no article 13 and marked it as retrieved.  Then comes article 13 and the
> news client does not retrieve it because low=13 and high=13 and it
> thinks it already has it.  Maybe if a news client does that, then it has
> a bug.  But I wanted to be sure.

News clients should only update their local records based on the
high-water mark, not on the low-water mark.

> That sounds logical.
>
> Then the definition of the "low water mark" in RFC 3977 should perhaps
> mention that it is in the case of a non-empty newsgroup:
>
>   The successful selection response will return the article numbers of
>   the first and last articles in the group at the moment of selection
>   (these numbers are referred to as the "reported low water mark" and
>   the "reported high water mark") and an estimate of the number of
>   articles in the group currently available.
>
> Otherwise, one cannot define them, and their meaning is said afterwards
> in the RFC.

Yeah, there ideally would be a note in there saying that empty groups are
special.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Low water mark of an empty newsgroup
#80242
Author: Julien ÉLIE
Date: Thu, 05 Mar 2009 20:45
31 lines
2420 bytes
Hi Russ,

> News clients should only update their local records based on the
> high-water mark, not on the low-water mark.

OK, thanks.


>> Then the definition of the "low water mark" in RFC 3977 should perhaps
>> mention that it is in the case of a non-empty newsgroup:
>>
>>   The successful selection response will return the article numbers of
>>   the first and last articles in the group at the moment of selection
>>   (these numbers are referred to as the "reported low water mark" and
>>   the "reported high water mark") and an estimate of the number of
>>   articles in the group currently available.
>>
>> Otherwise, one cannot define them, and their meaning is said afterwards
>> in the RFC.
>
> Yeah, there ideally would be a note in there saying that empty groups are
> special.

Oh, I can then provide a new erratum :-->

-- 
Julien ÉLIE

« Avoir un sale caractère n'empêche pas d'être ponctuel :
  on peut être râleur et être à l'heure. » (Philippe Geluck)
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