🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Chris Sedore Fri, 09 Oct 1998 00:00
xref slaving
#32091
Author: Chris Sedore
Date: Fri, 09 Oct 1998 00:00
14 lines
971 bytes
I'm just about to reimplement xref slaving, and I'm curious how people
handle an out-of-order arrival scenario.  I'm assuming that you basically
live with the fact that a reader could (although the likelyhood is hopefully
quite small) miss an article because the a higher numbered article arrived,
the reader did an xover, got no data for an earlier article that hadn't yet
arrived, and marked it read.

Does this about sum it up?

-Chris



Re: xref slaving
#32078
Author: Matt Dillon
Date: Fri, 09 Oct 1998 00:00
49 lines
2977 bytes
:In article <9079493901219524828-1@dp-news.maxwell.syr.edu>,
:Chris Sedore <cmsedore@maxwell.syr.edu> wrote:
:>I'm just about to reimplement xref slaving, and I'm curious how people
:>handle an out-of-order arrival scenario.  I'm assuming that you basically
:>live with the fact that a reader could (although the likelyhood is hopefully
:>quite small) miss an article because the a higher numbered article arrived,
:>the reader did an xover, got no data for an earlier article that hadn't yet
:>arrived, and marked it read.
:>
:>Does this about sum it up?
:>
:>-Chris

    If the feed from the node mastering the article numbering to the node
    imlpementing the reader 'fans-out' the feed, this is definitely a 
    problem.  I get around it in Diablo by not fanning out the feed between
    the master and the reader... I send just one feed and so article numbering
    is maintained.

    In Diablo, if two articles arrive at the reader out of order, the reader
    will insert them into the overview out of order (but still maintain the
    correct high water mark).  A reader that reads that group at just the
    wrong time could theoretically miss an article by, as has been mentioned,
    marking it as read when it couldn't find it.

    The only way I can think of to avoid the problem is to have the reader
    side impose a 'active file update delay' in regards to updating the
    high water mark in the active file in the case where it detects that
    an article number has been potentially skipped. So, for example, if you
    receive an article that bumps the high water mark by more then one,
    the reader would then not physically commit the new high water mark to 
    the active file for another N seconds which gives a fractured feed a bit
    more time to fill in the gaps.

    But I also don't think this is a serious problem... and no problem at all
    if you can get away with sending just a single feed to the reader (which
    you can do with Diablo fairly easily).  It wouldn't be hard to implement
    the above code in Diablo, but doing so would be extremely low on my
    priority list.

						-Matt


-- 
    Matthew Dillon  Engineering, HiWay Technologies, Inc. & BEST Internet
                    Communications
    <dillon@best.net> (Please include original email in any response)

Re: xref slaving
#32087
Author: Mark Hittinger
Date: Fri, 09 Oct 1998 00:00
38 lines
2380 bytes
"Chris Sedore" <cmsedore@maxwell.syr.edu> writes:
>I'm just about to reimplement xref slaving, and I'm curious how people
>handle an out-of-order arrival scenario.  I'm assuming that you basically
>live with the fact that a reader could (although the likelyhood is hopefully
>quite small) miss an article because the a higher numbered article arrived,
>the reader did an xover, got no data for an earlier article that hadn't yet
>arrived, and marked it read.
>Does this about sum it up?

Yes, nearly all readers are making the assumption that if no data is available
then the article is "read".

I'd like to see readers mark the article as unread if there was no data 
available.  Such articles can be remembered in the newsrc as unread.  Later
when the lowmark moves above these articles they can be removed from the newsrc
data.  There are a lot of readers to fix.

This would let us thread xref slaving ARTpost() [or equivalents].

Since no readers do this, we could alternatively lie to the readers about the
highwater mark of the group if we know a gap exists.  When the gap is closed
we could move the highwater mark above it (as far as readers were concerned).

For larger slave clusters that are in a load balanced pool we'd need a way
to synchronize the "lie about highwater mark" across a series of hosts that
would potentially have different gaps at any snapshot.  Greco's actived might
be a way to generate a consistent "highwater mark lie" across a cluster of
machines.  Such an "external highwater mark" for the readers could be kept 
below the lowest gap in the cluster.  That way readers would never be able to
screw up and miss an article during these thread races.

Regards,

Mark Hittinger
ICGNetcom/DallasOps
bugs@freebsd.netcom.com

Re: xref slaving
#32095
Author: Chris Sedore
Date: Fri, 09 Oct 1998 00:00
30 lines
1684 bytes
Jeremy wrote in message <6vldu5$p0k$1@news1.exit109.com>...
>Chris Sedore <cmsedore@maxwell.syr.edu> wrote:
>
>> I'm just about to reimplement xref slaving, and I'm curious how people
>> handle an out-of-order arrival scenario.  I'm assuming that you basically
>> live with the fact that a reader could (although the likelyhood is
>> hopefully quite small) miss an article because the a higher numbered
>> article arrived, the reader did an xover, got no data for an earlier
>> article that hadn't yet arrived, and marked it read.
>>
>> Does this about sum it up?
>
>It can actually be a bit more of a pain than that, since INN (at least
>1.7x, I don't know about 2.x) can also write the overviews out of order,
>resulting in them getting sent to clients out of order, which can be a
>problem.


Ack.  I hadn't thought carefully about that issue--I don't write overview
out of order, but my overview caching methodology would need some add-ons to
cover this case.

Maybe slaving (or at least smart slaving) can wait a while yet.

-Chris



Re: xref slaving
#32114
Author: Jeremy
Date: Fri, 09 Oct 1998 00:00
21 lines
1478 bytes
Chris Sedore <cmsedore@maxwell.syr.edu> wrote:

> I'm just about to reimplement xref slaving, and I'm curious how people
> handle an out-of-order arrival scenario.  I'm assuming that you basically
> live with the fact that a reader could (although the likelyhood is
> hopefully quite small) miss an article because the a higher numbered
> article arrived, the reader did an xover, got no data for an earlier
> article that hadn't yet arrived, and marked it read.
> 
> Does this about sum it up?

It can actually be a bit more of a pain than that, since INN (at least
1.7x, I don't know about 2.x) can also write the overviews out of order,
resulting in them getting sent to clients out of order, which can be a
problem.

-- 
Jeremy  |  jeremy@exit109.com
"Never tell me the odds."  --Han Solo

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