🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #37863

Re: makehistory finds HALF the articles

#37863
From: Greg Andrews
Date: Mon, 07 Jun 1999 00:00
55 lines
2993 bytes
cengiz@netmar.com writes:
>In a previous article,  <gerg@shell1.ncal.verio.com> writes:
>>On a stardard filesystem, you'd then run a find every night to delete
>>the article files that were missed by expire because they weren't in
>>the restored history file.  After a few days the history database
>>would be back in sync with the contents of the spool.
>
>But if you restore an old history file and do that, then you would
>delete the articles that are NEWER than the history file you restored,
>if I understand you right.
>

Remember that I was describing a standard spool filesystem, not a
CNFS filesystem.

For standard spool filesystems, it definitely doesn't erase the
articles.  The articles are still in the groups, they're still
visible to your users, they're still accounted for in the group's
high-water number in the active file (or they will be after a 20-40
minute renumber), and their threading info is still in the group's
overview data.

Only two things happen when those recent articles go missing from
the history database:  (a) duplicate articles aren't rejected if
they come in through a redundant feed, and (b) the normal expire
won't delete them.

(a) can be taken care of by communicating with your users about the
failure that corrupted your history database and telling them that
they may see some duplicate articles for a few days.  (b) is taken
care of by the extra find processes that I mentioned in my original
post.

The alternative, as you pointed out, is that makehistory takes *days*
to rebuild the database from the spool.  That's the tradeoff.  Be back
running in under 3 hours with some glitches in duplicate rejection and
expiration, or be off-line for several days with a feed that's backlogged
just as long?

  [re CNFS]
>>What happens when the history database doesn't have some portion
>>of the articles in the spool (like 6-8%)?
>
>I dunno.  And don't much care, since makehistory scans the spool to build
>the history database.
>

Actually, if makehistory -ri can be used on a CNFS spool the way I've
used it on a standard spool, you do care.  You care about the difference
between being down 3 hours and being down 14 days (350 hours), don't you?


  -Greg

Technical Details
Message-ID: <7jh0kd$dao$1@shell1.ncal.verio.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <7jgvf5$ebg$1@news.netmar.com>

Show Full Headers
Complete Article Headers
Message-ID: <7jh0kd$dao$1@shell1.ncal.verio.com>
Subject: Re: makehistory finds HALF the articles
Date: Mon, 07 Jun 1999 00:00:00 +0000
From: gerg@shell1.ncal.verio.com (Greg Andrews)
References: <7jgvf5$ebg$1@news.netmar.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 486742138
X-Complaints-To: abuse@verio.net
X-Trace: nuq-read.news.verio.net 928777680 204.247.248.254 (Mon, 07 Jun 1999 17:48:00 GMT)
Organization: The Nerd From B.O.F.H.
NNTP-Posting-Date: Mon, 07 Jun 1999 17:48:00 GMT
Newsgroups: news.software.nntp