🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50546

Re: inn 2.3 storing problem

#50546
From: Charlie Crashingoverview
Date: Sat, 10 Feb 2001 16:48
124 lines
8355 bytes
Whilst mostly asleep, and drifting in and out of a deep alpha-wave
state, I inexplicably managed to drool out the following:

:: a routine crash recovery for me.  However, in checking a few text
:: groups, the last art (in this group, made 40 mins before panic) was
:: missing, and in another, six previously-present articles were replaced
:: by a gap of two, one readable (not crossposted), and three missing.
:: But earlier articles in these text froups seemed readable.
:: 
:: However, alt.binaries.news-swerver-comparison did not fare so well.
:: All articles before the crash were not present in either overview
:: command requests or `head' requests.  The active file indicated they
:: should still be present.  The tradindex .DAT file had all the info.
:: I couldn't clearly see .IDX b0rkenness.
:: 
:: And worse, looking at the other binaries froups, *every* post that
:: had arrived before the crash was unreadable, in groups spanning two

Jeez, if I write like this, it's no wonder that people killfile me
early and often.  Well, now I don't have lack of sleep as an excuse,
but if I remain unintelligible, it's cuz I've gotten an early start
on heavy drinking with some chocolate to geek me up suitably.

Further investigation revealed that *every* binariez cycbuff had its
contents before the first and second crashes rendered disappearable,
while only the text cycbuff permitted its articles to be readable
days into the past.  If it makes any difference, this text cycbuff
is the last match in the storage.conf file.

I had created a set of partial makehistory routines to enable me to
switch from one overview storage method to another without losing the
spool contents, and still being able to recover the important pr0n
froups quickly.  When I used these, the articles that had gone missing
in the afflicted groups suddenly reappeared.

HOWEVER, using my Newsreader of Choice, I was unable to retrieve these
resurrected articles.  As it turns out, the overview data is available
to the reader, and one can retrieve these restored articles by requesting
them by article number.  However, history requests by message ID were
horribly b0rken.

This seems logical when you remember that I have cron running expire
when normal people are sleeping.  I still don't understand how the
overview data from the past managed to disappear, but apparently when
the nightly expire happened before I woke up to try and make sense of
the crash, it consulted the overview data to decide if the history
entry was current or if it had been obsolete.  Therefore, I'm guessing
that all history entries for articles somehow rendered invisible in
overview (while still present in the spools) were rewritten as expired
entries by dropping the storage token.  Thus these articles, even if
they are in spools with weeks of retention, can no longer be retrieved
by message ID, and references headers pointing to them cannot be followed
now.

Presumably it will be a major performance killer for expire to consult
not the overview info, but the spool proper based on the token.  Or if
it is, perhaps either the rewritten overview data missing articles from
history with storage tokens should be verified against the spool proper,
or else when innd starts, and notices that an unclean shutdown happened,
it should send a signal somehow to the expire to follow that would make
it a bit more conservative and less trusting of the overview data after
a crash, probably doing the above.

So it seems that if one runs `makehistory' to recreate overview, if the
articles that had been in history went `missing', there's no simple way
to give back the token they had.  Here is the case I was trying to think
of where a history API that would allow old history entries to be updated
in place, similar to what Heath Kehoe was hoping to do with a BerzerkDB-
based history mechanism.

No, I know damn well that I can run `makehistory' for the text file, as
well as overview.  Yes, it will take about a week now.  Yes, all the
binaries buffers finished already after I recovered them this morning
while out drinking but the comparably-sized text buffer takes far longer
and it's still going, and probably will be next panic.  No, I don't
think that makehistory for other than overview on just one buffer at
a time will give usable results.  No, I don't care for the downtime
I'm sure would be required on this semi-production machine.


:: Or this is a sign for me to leave NOW and head elsewhere and do
:: something else with my life, like drink heavily.

Speaking of drinking heavily, before I went out to do so, I took a
look at *this* newsfroup.  Here is what I see and it's weird, and
that is *before* drinking but still while mostly asleep:

After the first crash, one article by Andrew Gierth that I had read
is missing from the index presented to me.  Apparently no new articles
arrived and remained visible, since the .DAT file for tradindex oview
has no entries for Andrew's post as well as a few following.

What is weird is that there are two articles with the proper overview
DAT info, and indeed, when one requests XOVER info, one gets the right
info.  However, when one requests these two articles in this froup by
article number, one gets totally wrong articles, belonging to other
groups entirely.  And these articles do not even have the same number
in their groups.  This is somewhat like the corruption I saw with the
buffindex overview method after a few days without any crashes.  Or
was it ovdb?  I do no remember.  If the latter, then I had to shut
down innd repeatedly with `kill' because of hung processes.

Now here is where my brane goes on strike.  I can accept that the .DAT
overview file failed to be flushed to disk in the 40 minutes from the
time the article arrived to the crash.  However, I still boggle at how
the .DAT data present in the binariez froups fails to be visible, if
the .IDX file might play a part.

But what really disturbs me is how, when presented with the correct
overview data, one can request an article by number in that froup and
pull up a totally different froup's message with no obvious connection.
I guess to try to figure it out, I'd have to ask, is there documented
anywhere just what the steps are in the retrieval of an article by
number or whatever means?  Obviously there are a multitude of different
database files that interact in weird and mysterious ways in the name
of efficiency, but when they are inconsistent, they cause weird and
mysterious failures like this.

I mean, I'm boggling at how requesting an article with proper overview
data using article number can be so messed up.  Any pointers to docs
for the multitude of files, what they do, and all that, will be met
with gratitude and/or slumber.  thanks.  please.

Technical Details
Message-ID: <963rcd$6sg$1@warpednews.warpedworld.tele.dk>
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!supernews.google.com!sn-xit-02!supernews.com!isdnet!195.25.12.36.MISMATCH!oleane.net!oleane!fr.usenet-edu.net!usenet-edu.net!news.tele.dk!bouswma.bungmunch.com.POSTED!suckazoid.netscum.dQ!news.radio.cz!STAVKA.vszbr.cz!not-for-pedophiles
References: <slrn97t2d0.mcd.djurica@damir.globalnet.hr> <20010205.192940.9E9801DE.2Gaa@pierrot.co.uk> <87lmrk40ez.fsf@homer.mathie.cx> <20010210.013729.9E9801DE.pbaa@pierrot.co.uk> <ylr917xneq.fsf@windlord.stanford.edu> <962l9d$1k9$1@news.banga.lt>

Show Full Headers
Complete Article Headers
Message-ID: <963rcd$6sg$1@warpednews.warpedworld.tele.dk>
Subject: Re: inn 2.3 storing problem
Date: Sat, 10 Feb 2001 16:48:14 +0000
From: Charlie Crashingoverview <autocyberretributionmeowbot@pl0nK.invalid>
References: <slrn97t2d0.mcd.djurica@damir.globalnet.hr> <20010205.192940.9E9801DE.2Gaa@pierrot.co.uk> <87lmrk40ez.fsf@homer.mathie.cx> <20010210.013729.9E9801DE.pbaa@pierrot.co.uk> <ylr917xneq.fsf@windlord.stanford.edu> <962l9d$1k9$1@news.banga.lt>
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!supernews.google.com!sn-xit-02!supernews.com!isdnet!195.25.12.36.MISMATCH!oleane.net!oleane!fr.usenet-edu.net!usenet-edu.net!news.tele.dk!bouswma.bungmunch.com.POSTED!suckazoid.netscum.dQ!news.radio.cz!STAVKA.vszbr.cz!not-for-pedophiles
Newsgroups: news.software.nntp
Organization: TDC -- the New Jersey connection -- Roaming Wireless Access
Lines: 123
NNTP-Posting-Host: 2dd950811eed8cd4920adef76f5c8ccd.warpedworld.tele.dk
X-Trace: warpednews.warpedworld.tele.dk 981823694 c4f84de9219546a789d3c6a3174a084e
X-Complaints-To: Department of Ingore-O-Grams <bitbucket@news.inet.tele.dk>
X-Pedophile: BARRY BOUWSMA IS A PEDOPHILE!!!
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300