Thread View: news.software.nntp
10 messages
10 total messages
Started by Marco d'Itri
Mon, 30 Jul 2001 12:50
overview rebuild problem
Author: Marco d'Itri
Date: Mon, 30 Jul 2001 12:50
Date: Mon, 30 Jul 2001 12:50
49 lines
2976 bytes
2976 bytes
Some weeks ago I've built a new server for the purpose of storing the it.* hierarchy forever. It has expire never:never:never for everything but test and control groups, uses timehash, tradindexed and storage class based expiring. xrefslave is true. It gets a feed from my regular spool server and I fed it with innxmit all the articles stored on my old 2.2 server, everything since January. The problem is that when testing it a coworker discovered there are no overview records for older articles. These articles are really in the spool and in the history, because I can request them by Message-ID and both nnrpd and grephistory know about them. I shut down the server and I tried rebuilding the overview database with: makehistory -F -O -x -l 25000 -I -T /tmp but even if the new database is bigger than the old one: root@newsserver:pts/7:/news/archive/spool#du -s old-overview/ overview/ 121380 old-overview 578848 overview root@newsserver:pts/7:/news/archive/spool# there are still missing articles in the overview, and it's not as big as I think it should be (history has 4202469 entries). I sampled some random groups and determined that in the overview database most groups have no entries for articles older than 11 or 14 Jul (I have found a group with entries for 4 Jul), which is about the date I've built the server. I double checked by poking into the .DAT files with less and I can confirm that the older articles are really missing. I haven't run news.daily since rebuilding the overview, I'll try tonight. The old and new servers have different names, and the first field of the Xref headers is different in old and new articles, can this be the cause of the problem? (I don't think it is, because I've seen in the overview articles with the old hostname). I really don't know what to look at, I don't understand why makehistory ignores old articles. -- ciao, | Marco | * The Internet is full. Go away. -- Joel Furr *
Re: overview rebuild problem
Author: Russell Virgililo
Date: Wed, 01 Aug 2001 22:14
Date: Wed, 01 Aug 2001 22:14
11 lines
1628 bytes
1628 bytes
I ran into this EXACT same problem when I upgraded from 2.2.1 to 2.3.2 (for ssl support) and tried to use my old spool. While he investigates the problem, Russ said he would create a tool to inject articles by group on the spool into the overview on the fly, but he is really busy. Now that I hear your testimony, I know the problems I had are internal to INN. If you find a way to "bring back" those old artilces into the overview, please please let me know, my users would be very happy. -Russell
Re: overview rebuild problem
Author: Marco d'Itri
Date: Thu, 02 Aug 2001 00:36
Date: Thu, 02 Aug 2001 00:36
26 lines
2239 bytes
2239 bytes
russ@gatech.edu wrote: >I ran into this EXACT same problem when I upgraded from 2.2.1 to 2.3.2 (for >ssl support) and tried to use my old spool. While he investigates the I did not use the old spool, I innxmit'ed each article from the old machine to the new machine. >problem, Russ said he would create a tool to inject articles by group on the >spool into the overview on the fly, but he is really busy. Now that I hear >your testimony, I know the problems I had are internal to INN. If you find >a way to "bring back" those old artilces into the overview, please please >let me know, my users would be very happy. If you use tradspool, writing a perl script which opens each article and pipes the appropriate data to overchan would be trivial, but I don't know if this would work where makehistory failed. (Russ?) I use timehash instead of tradspool, and I can't think a simple enough way to do this (other than building a huge file with overview data for all groups and split, sort and pipe it to overchan) that will take less time than debugging and fixing makhistory. -- ciao, | Marco | * The Internet is full. Go away. -- Joel Furr *
Re: overview rebuild problem
Author: Russ Allbery
Date: Fri, 03 Aug 2001 01:03
Date: Fri, 03 Aug 2001 01:03
24 lines
2109 bytes
2109 bytes
Marco d'Itri <abuse@1.2.0.1.0.0.1.e.f.f.3.ip6.int> writes:
> russ@gatech.edu wrote:
>> problem, Russ said he would create a tool to inject articles by group
>> on the spool into the overview on the fly, but he is really busy. Now
>> that I hear your testimony, I know the problems I had are internal to
>> INN. If you find a way to "bring back" those old artilces into the
>> overview, please please let me know, my users would be very happy.
> If you use tradspool, writing a perl script which opens each article and
> pipes the appropriate data to overchan would be trivial, but I don't
> know if this would work where makehistory failed. (Russ?)
I think it should. makehistory needs to be a lot smarter than it is right
now. (This summer has been completely insane for me, but I should have a
lot more free time to work on things like this come the beginning of
September.)
--
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.
Re: overview rebuild problem
Author: Marco d'Itri
Date: Fri, 03 Aug 2001 08:07
Date: Fri, 03 Aug 2001 08:07
12 lines
1485 bytes
1485 bytes
rra@stanford.edu wrote: >I think it should. makehistory needs to be a lot smarter than it is right >now. Do you have any idea about why it fails on my setup? I'd like to debug it and fix it, but I have no idea about why it skips older articles. -- ciao, | Marco | * The Internet is full. Go away. -- Joel Furr *
Re: overview rebuild problem
Author: Russ Allbery
Date: Fri, 03 Aug 2001 22:04
Date: Fri, 03 Aug 2001 22:04
38 lines
2812 bytes
2812 bytes
Marco d'Itri <abuse@1.2.0.1.0.0.1.e.f.f.3.ip6.int> writes:
> rra@stanford.edu wrote:
>> I think it should. makehistory needs to be a lot smarter than it is
>> right now.
> Do you have any idea about why it fails on my setup? I'd like to debug
> it and fix it, but I have no idea about why it skips older articles.
The key function is tradspool_next() in storage/tradspool/tradspool.c. In
particular, take a look at the code surrounding the following comment:
/* Skip linked (not symlinked) crossposted articles.
This algorithm is rather questionable; it only works if the first
group/number combination listed in the Xref header is the
canonical path. This will always be true for spools created by
this implementation, but for traditional INN 1.x servers,
articles are expired indepedently from each group and may expire
out of the first listed newsgroup before other groups. This
algorithm will orphan such articles, not adding them to history.
The bit of skipping articles by setting the length of the article
to zero is also rather suspect, and I'm not sure what
implications that might have for the callers of SMnext.
Basically, this whole area really needs to be rethought. */
I think there are more problems than just that, but I haven't been able to
work through what's going on well enough to figure out why other articles
also get skipped.
--
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.
Re: overview rebuild problem
Author: Marco d'Itri
Date: Sat, 04 Aug 2001 00:40
Date: Sat, 04 Aug 2001 00:40
17 lines
1767 bytes
1767 bytes
rra@stanford.edu wrote: > /* Skip linked (not symlinked) crossposted articles. What would happen if I made it skip no article and index crossposted articles n times? Would the next expireover run delete duplicated entries and fix everything? >I think there are more problems than just that, but I haven't been able to Yes, because nearly every article from the old implementation is missing, and most of them are not crossposted. -- ciao, | Marco | * The Internet is full. Go away. -- Joel Furr *
Re: overview rebuild problem
Author: Russ Allbery
Date: Sat, 04 Aug 2001 23:27
Date: Sat, 04 Aug 2001 23:27
23 lines
1996 bytes
1996 bytes
Marco d'Itri <abuse@1.2.0.1.0.0.1.e.f.f.3.ip6.int> writes:
> rra@stanford.edu wrote:
>> /* Skip linked (not symlinked) crossposted articles.
> What would happen if I made it skip no article and index crossposted
> articles n times? Would the next expireover run delete duplicated
> entries and fix everything?
I don't think it would, but I'm honestly not sure. Hm. That's a good
question. That's probably the right way to fix this, in fact.
> Yes, because nearly every article from the old implementation is
> missing, and most of them are not crossposted.
And they all have Xref headers?
--
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.
Re: overview rebuild problem
Author: Marco d'Itri
Date: Sun, 05 Aug 2001 00:56
Date: Sun, 05 Aug 2001 00:56
17 lines
1820 bytes
1820 bytes
rra@stanford.edu wrote: >> Yes, because nearly every article from the old implementation is >> missing, and most of them are not crossposted. >And they all have Xref headers? Yes. This said, my plan is to write a program which will traverse the timehash spool, parse the headers of each article and append to a huge temporary file all the data needed to build overview. Then I'll sort it by article number and feed it to overchan. -- ciao, | Marco | * The Internet is full. Go away. -- Joel Furr *
Re: overview rebuild problem
Author: rmtodd
Date: Sun, 05 Aug 2001 04:42
Date: Sun, 05 Aug 2001 04:42
15 lines
1949 bytes
1949 bytes
Marco d'Itri <abuse@1.2.0.1.0.0.1.e.f.f.3.ip6.int> writes: > rra@stanford.edu wrote: > > > /* Skip linked (not symlinked) crossposted articles. > What would happen if I made it skip no article and index crossposted > articles n times? > Would the next expireover run delete duplicated entries and fix > everything? I believe it would, yes. You'd still get some duplicate entries in history, but those should be pretty harmless. As you say, you would have redundant records taking up space in the overview until such time as you ran expireover again.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads