Article View: news.software.nntp
Article #78137Re: inn2_overview_fix (and expire question)
From: Russ Allbery
Date: Mon, 29 Oct 2007 16:18
Date: Mon, 29 Oct 2007 16:18
52 lines
3414 bytes
3414 bytes
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?
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?
> Additional bonus is that it can fix groups while your server is running
> (by just throttling it when needed), thus reducing downtime for your
> users; and that is has hierarchy priorities so it will first fix groups
> that are more important to you.
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.
> All looks great, now active(5) and tradindex overviews are in sync with
> tradspool (all have 3989 + 4135-4143 records)
> However, when cron does its daily run, it runs
> "news.daily expireover lowmark delayrm"
> (expire.ctl has an 1 month expiration for that group.)
> I would expect that news.daily would remove the 3989 article from
> tradspool (as it is several months old) and update overview and active
> file so that they have only range 4135-4143.
> 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.
--
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:
<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!postnews.google.com!news2.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<slrnfi1c8e.8k2.mnalis-news@bukavac.carpriv.carnet.hr>Show Full Headers
Complete Article Headers
Message-ID: <873avtevy1.fsf@windlord.stanford.edu> Subject: Re: inn2_overview_fix (and expire question) Date: Mon, 29 Oct 2007 09:18:14 -0700 From: Russ Allbery <rra@stanford.edu> References: <slrnfi1c8e.8k2.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!postnews.google.com!news2.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 52 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1193674694 2835 171.64.19.147 (29 Oct 2007 16:18:14 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:bmhYLHHp1/S+MEDLB3mLnv87RIY=