Article View: news.software.nntp
Article #78140Re: inn2_overview_fix (and expire question)
From: Matija Nalis
Date: Tue, 30 Oct 2007 16:10
Date: Tue, 30 Oct 2007 16:10
77 lines
4776 bytes
4776 bytes
On 2007-10-29, Russ Allbery <rra@stanford.edu> wrote:
> Matija Nalis <mnalis-news@voyager.hr> writes:
>> Hi, I've written a tool inn2_overview_fix, which can be found on
>> http://newsfeed.carnet.hr/programs/
>
>> It is tool for checking (and optionally, fixing) out-of-sync errors in
>> inn tradspool with tradindex overviews. It currently compares tradspool
>> files, active(5) ranges, and tradindex overviews and reports any
>> inconsistencies found.
>
> The description seems to indicate that this is trying to do exactly what
> tdx-util -A and -R was written to do. I assume, from the fact that you
> wrote it, that tdx-util was insufficient. Could you provide some more
> information about what it didn't do that you wanted?
It is a perl script with just checks consistency using tradspool as
authorative information, and checking active(5) and tradindex files if
they match (and fixes them with "tdx-util -R" and "ctlinnd renumber" if
it doesn't)
I'm not sure "tdx-utils -A" does all that checks -- it finishes way too
quickly (about 2 minutes here for ~6 million articles in > 22k groups) and
seems to miss some the stuff that looks wrong to me.
I guess it just checks tradindex with active file or something like that
(haven't had time to look into source) ? It does not seem to take tradspool
storage as only authorative source of information (which it is, IMHO).
And issue with just rebuilding all overview records (using "tdx-util -R"
without group specification) was:
1) it is much slower if just few groups are broken (as they usually are)
[and I was under impression it was not safe to run while server is
not throttled]
2) Mostly I'd like just to do the checks from time to time, and send mail
with error instead of rebuilding everything periodically. ("tdx-util -A"
would be great for that, if it did full checks mentioned above).
3) it is one binary, and if it breaks, it could leave all other groups
unchecked (as I unfortunately found out with "makeactive -O" which
silently dies for me in inn2.4.3 without fixing majority of the groups).
It "tdx-util -R" for one group dies silently (like makeactive does), my
script will continue, leaving just that one group broken.
> I'd rather enhance tdx-util to do what you want than have another program
> floating around to do the same thing. Is it mostly just running ctlinnd
> renumber afterwards?
It fixes overview tradindex files being out-of-sync with "tdx-util -R" and
active(5) being out-of-sync with "ctlinnd renumber", yes.
> Note that while it's not heavily tested, tdx-util -R should actually work
> while the server is running, since it locks the relevant overview file.
> It may slow down innd if it tries to write to the same group, of course.
That is good news that I wasn't previously aware of. If it works reliably,
I should be able to avoid throttling the server before running it from the
script.
>> However, while it does update overview and active file to range 4135-4143,
>> it DOES NOT expire article 3989 from tradspool.
>
> It's probably a cross-posted article that's expired out of that group but
> not out of some other group. This is one of the hardest things to get
> right about a tradspool storage format.
You are correct, I somehow missed the crosspost.
Which brings me to the another point - why didn't expire remove that article
from that directory when it expired overview for that directory ? Shouldn't
it be expected behaviour ? After all, the article IS hardlinked in all
directories that message is crossposted to, so shouldn't it be removed from
groups from which it is expired ?
--
Opinions above are GNU-copylefted.
Technical Details
Message-ID:
<slrnfielr9.ioe.mnalis-news@bukavac.carpriv.carnet.hr>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.t-com.hr!newsfeed.CARNet.hr!not-for-mailReferences:
<slrnfi1c8e.8k2.mnalis-news@bukavac.carpriv.carnet.hr> <873avtevy1.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrnfielr9.ioe.mnalis-news@bukavac.carpriv.carnet.hr> Subject: Re: inn2_overview_fix (and expire question) Date: Tue, 30 Oct 2007 16:10:15 +0000 From: Matija Nalis <mnalis-news@voyager.hr> References: <slrnfi1c8e.8k2.mnalis-news@bukavac.carpriv.carnet.hr> <873avtevy1.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.t-com.hr!newsfeed.CARNet.hr!not-for-mail Newsgroups: news.software.nntp Organization: CARNet, Croatia Lines: 77 NNTP-Posting-Host: 161.53.12.138 X-Trace: news1.carnet.hr 1193760615 5700 161.53.12.138 (30 Oct 2007 16:10:15 GMT) X-Complaints-To: abuse@CARNet.hr NNTP-Posting-Date: Tue, 30 Oct 2007 16:10:15 +0000 (UTC) User-Agent: slrn/0.9.8.1pl1 (Debian)