🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #66340

Re: INN news article numbers resetting after a crash

#66340
From: Russ Allbery
Date: Mon, 28 Jul 2003 18:06
34 lines
2728 bytes
Paul Tomblin <ptomblin@xcski.com> writes:

> Two problems with that having any relevance to my problem:
> 1. I'm not using tradspool (although I am using tradindex)
> 2. The problem appears to indicate that it's the article count in the
> active file that's getting reset, not the overview.

The tradindexed overview method in 2.3 (and earlier) was broken with
respect to flushing.  There were tons of places that it didn't msync its
index files to disk that it should have, so many that I haven't attempted
a fix for 2.3 after I just completely rewrote the tradindexed overview
backend in 2.4.  Those problems affected tradindexed without regard to the
storage mechanism.

The reason why the active file is changing is that after an unclean
shutdown, like a crash, innd runs renumber on startup.  Renumber copies
the article numbers from the overview database, which only have whatever
was last synced to disk.  Given the way that tradindexed worked in 2.3,
that could be hours-old data.

We've banged on the overview implementation in 2.4 a lot harder, and it
seems to maintain consistency much better.  It's still not perfect, and I
have some plans for fixing the last 5% of the problem, but it reduces the
frequency down to where most people will never encounter it.

I wish I had an RPM for you; I suppose it probably doesn't help that
there's a .deb.  *wry grin*

-- 
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.
Technical Details
Message-ID: <87brvezftx.fsf@windlord.stanford.edu>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <bg16au$20s$1@allhats.xcski.com> <878yqjdbew.fsf@windlord.stanford.edu> <bg37vd$p66$1@allhats.xcski.com> <bg3bu2$95l$1@puck.litech.org> <bg3ebd$rds$1@allhats.xcski.com>

Show Full Headers
Complete Article Headers
Message-ID: <87brvezftx.fsf@windlord.stanford.edu>
Subject: Re: INN news article numbers resetting after a crash
Date: Mon, 28 Jul 2003 11:06:18 -0700
From: Russ Allbery <rra@stanford.edu>
References: <bg16au$20s$1@allhats.xcski.com> <878yqjdbew.fsf@windlord.stanford.edu> <bg37vd$p66$1@allhats.xcski.com> <bg3bu2$95l$1@puck.litech.org> <bg3ebd$rds$1@allhats.xcski.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 33
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1059415578 27575 171.64.19.147 (28 Jul 2003 18:06:18 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Common Lisp, linux)
Cancel-Lock: sha1:O6IKshFNv1EWJrSYUWCvuaFQBOU=