🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #72447

Re: Rebuilding overview for single group ?

#72447
From: Christian Kratzer
Date: Thu, 13 Oct 2005 08:12
65 lines
3844 bytes
Hi,

Russ Allbery <rra@stanford.edu> wrote:
> Christian Kratzer <ck+usenet@cksoft.de> writes:
> 
>> we have a situation with inn 2.4.1 a couple of groups where the IDX file
>> of the overview has exploded to a huge size.  Is there any way we could
>> just rebuild the IDX file from the DAT file.
> 
> Unfortunately, there is information in the IDX file that is not in the DAT
> file.  The DAT file contains only the information sent to clients on XOVER
> commands, and the IDX file contains the additional meta-information used
> by INN (article token, arrival time, that sort of thing).

thanks for clarification. I thought there was something like that.

I managed to further trace the cause of our problem yesterday.  
We have some peers that send us multiple (more than 3) xref headers from which 
inn only seeems to strip the first one.  These foreing xref headers have
huge article numbers in relation to ours.

This was not yet a problem but we had some filesystem trouble lately
that killed us some overview files. We subsequently rebuild all of 
overview from spool using makehistory.

It seems that while rebuilding history the other servers xref headers 
also got evaluated and we had an explosion in article numbers.  

Our DAT files now contain overview for articles numbers in the range of our
active file only.  The IDX files contain a huge gap and and then the other
servers numbers.  This is why some of our IDX files are huge in relation
to the DAT files.

>> expireover is already unable to mmap the IDX file.
> 
>>   news@news: {105} ll control.cancel.*
>>   -rw-rw-r--  1 news  news   203287956 Oct 10 09:52 control.cancel.DAT
>>   -rw-rw-r--  1 news  news  2031908920 Oct 10 09:52 control.cancel.IDX
>>   news@news: {106} 
> 
> For control.cancel, I'd just not allow clients to read the group.  It's
> not particularly useful for them to do so.  That doesn't help for the
> other groups, though.

We seem to have several options now:

1.  rebuild overview from spool once more after hacking inn to only 
    respect our own overview records.     Else the problem would just
    repeat itself again.

2.  hack up something to truncate and fix the IDX files.  
    Not too comfortable with this option though.

3.  Do something to filter away forein xref headers in the future.

I think we will go for option 1 after I find the correct place to hack
in inn.

Greetings
Christian

-- 
Christian Kratzer                       ck+usenet@cksoft.de
CK Software GmbH                        http://www.cksoft.de/
Phone: +49 7452 889 135                 Fax: +49 7452 889 136
Technical Details
Message-ID: <dil4t2$27q$1@news.germany.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!multikabel.net!feed20.multikabel.net!news.germany.com!not-for-mail
References: <did720$lvl$1@news.germany.com> <87fyr9f7l0.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <dil4t2$27q$1@news.germany.com>
Subject: Re: Rebuilding overview for single group ?
Date: Thu, 13 Oct 2005 08:12:18 +0000
From: Christian Kratzer <ck+usenet@cksoft.de>
References: <did720$lvl$1@news.germany.com> <87fyr9f7l0.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!multikabel.net!feed20.multikabel.net!news.germany.com!not-for-mail
Newsgroups: news.software.nntp
Organization: Customers of Headlight GmbH
Lines: 65
Sender: Christian Kratzer <ck@news.germany.com>
NNTP-Posting-Host: news
X-Trace: news.germany.com 1129191138 2298 62.111.101.2 (13 Oct 2005 08:12:18
 GMT)
X-Complaints-To: usenet@news.germany.com
NNTP-Posting-Date: Thu, 13 Oct 2005 08:12:18 +0000 (UTC)
User-Agent: tin/1.7.7-20041215 ("Scalpay") (UNIX) (FreeBSD/6.0-CURRENT (i386))