Thread View: news.software.nntp
9 messages
9 total messages
Started by Paul Tomblin
Sun, 27 Jul 2003 18:40
INN news article numbers resetting after a crash
Author: Paul Tomblin
Date: Sun, 27 Jul 2003 18:40
Date: Sun, 27 Jul 2003 18:40
21 lines
2238 bytes
2238 bytes
I'm running inn 2.3.2 (RedHat RPM). I've noticed this a lot more since I switched from inn 2.2.x with tradspool and actived to 2.3.2 with timecaf, but after a crash, me and my users will complain that they aren't seeing any new news. I'll look in the "news" log file, and use grephistory and sm to see the most recent news articles, and see that they are being assigned numbers that are BEFORE the last read article counts in my .newsrc. And there are holes in article trees on trn. So it's as if those articles that I've already read have vanished, or at least as far as the active file is concerned, and their article numbers are being reused. In the case of one busy newsgroup, fully 50 or 60 articles vanished that way. Is there any way to make everything flush to disk more frequently? The machine is pretty lightly loaded with a very limited feed, so keeping things in memory for performance reasons doesn't make sense. -- Paul Tomblin <ptomblin@xcski.com>, not speaking for anybody "But I heard him exclaim, as he climbed in the night Merry Christmas to all, I have traffic in sight" - Phyllis Moses
Re: INN news article numbers resetting after a crash
Author: Russ Allbery
Date: Sun, 27 Jul 2003 19:20
Date: Sun, 27 Jul 2003 19:20
11 lines
1468 bytes
1468 bytes
Paul Tomblin <ptomblin@xcski.com> writes:
> Is there any way to make everything flush to disk more frequently?
Yup, upgrade to INN 2.4.0.
--
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: INN news article numbers resetting after a crash
Author: Paul Tomblin
Date: Mon, 28 Jul 2003 13:20
Date: Mon, 28 Jul 2003 13:20
19 lines
1973 bytes
1973 bytes
In a previous article, Russ Allbery <rra@stanford.edu> said: >Paul Tomblin <ptomblin@xcski.com> writes: >> Is there any way to make everything flush to disk more frequently? > >Yup, upgrade to INN 2.4.0. Is there a specific fix for this problem, or are you just operating on the general principle that it's better to have the newest version before you start trying to diagnose problems? I don't suppose anybody has rpm-ed 2.4.0 yet, have they? -- Paul Tomblin <ptomblin@xcski.com>, not speaking for anybody "Towards thee I roll, thou all-destroying but unconquering wanker; to the last I grapple with thee; from hell's heart I killfile thee; for hate's sake I spit my last post at thee! All your base are belong to us!"
Re: INN news article numbers resetting after a crash
Author: Jeffrey M. Vinocur
Date: Mon, 28 Jul 2003 14:28
Date: Mon, 28 Jul 2003 14:28
31 lines
2164 bytes
2164 bytes
In article <bg37vd$p66$1@allhats.xcski.com>,
Paul Tomblin <ptomblin@xcski.com> wrote:
>In a previous article, Russ Allbery <rra@stanford.edu> said:
>>Paul Tomblin <ptomblin@xcski.com> writes:
>>> Is there any way to make everything flush to disk more frequently?
>>
>>Yup, upgrade to INN 2.4.0.
>
>Is there a specific fix for this problem, or are you just operating on the
>general principle that it's better to have the newest version before you
>start trying to diagnose problems?
From NEWS:
* The tradindexed overview method has been completely rewritten and
should be considerably more robust in the face of system crashes. A
new utility, tdx-util, is provided to examine the contents of the
overview database, repair inconsistencies, and rebuild the overview
for particular groups from a tradspool news spool. See tdx-util(8)
for more details.
>I don't suppose anybody has rpm-ed 2.4.0 yet, have they?
No idea. The INN developers certainly haven't (and don't plan to).
--
Jeffrey M. Vinocur
jeff@litech.org
Re: INN news article numbers resetting after a crash
Author: Paul Tomblin
Date: Mon, 28 Jul 2003 15:09
Date: Mon, 28 Jul 2003 15:09
19 lines
2250 bytes
2250 bytes
In a previous article, jeff@litech.org (Jeffrey M. Vinocur) said: > * The tradindexed overview method has been completely rewritten and > should be considerably more robust in the face of system crashes. A > new utility, tdx-util, is provided to examine the contents of the > overview database, repair inconsistencies, and rebuild the overview > for particular groups from a tradspool news spool. See tdx-util(8) > for more details. Two problems with that having any relevance to my problem: 1. I'm not using tradspool (although I am using tradindex) 2. The problem appears to indicate that it's the article count in the active file that's getting reset, not the overview. -- Paul Tomblin <ptomblin@xcski.com>, not speaking for anybody "Orcs killed: none. Disappointing. Stubble update: I look rugged and manly. Yes! Keep wanting to drop-kick Gimli. Holding myself back. Still not King." - the very secret diary of Aragorn son of Arathron
Re: INN news article numbers resetting after a crash
Author: Russ Allbery
Date: Mon, 28 Jul 2003 18:06
Date: Mon, 28 Jul 2003 18:06
34 lines
2728 bytes
2728 bytes
Paul Tomblin <ptomblin@xcski.com> writes:
> Two problems with that having any relevance to my problem:
> 1. I'm not using tradspool (although I am using tradindex)
> 2. The problem appears to indicate that it's the article count in the
> active file that's getting reset, not the overview.
The tradindexed overview method in 2.3 (and earlier) was broken with
respect to flushing. There were tons of places that it didn't msync its
index files to disk that it should have, so many that I haven't attempted
a fix for 2.3 after I just completely rewrote the tradindexed overview
backend in 2.4. Those problems affected tradindexed without regard to the
storage mechanism.
The reason why the active file is changing is that after an unclean
shutdown, like a crash, innd runs renumber on startup. Renumber copies
the article numbers from the overview database, which only have whatever
was last synced to disk. Given the way that tradindexed worked in 2.3,
that could be hours-old data.
We've banged on the overview implementation in 2.4 a lot harder, and it
seems to maintain consistency much better. It's still not perfect, and I
have some plans for fixing the last 5% of the problem, but it reduces the
frequency down to where most people will never encounter it.
I wish I had an RPM for you; I suppose it probably doesn't help that
there's a .deb. *wry grin*
--
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: INN news article numbers resetting after a crash
Author: Paul Tomblin
Date: Mon, 28 Jul 2003 18:18
Date: Mon, 28 Jul 2003 18:18
16 lines
1863 bytes
1863 bytes
In a previous article, Russ Allbery <rra@stanford.edu> said: >The reason why the active file is changing is that after an unclean >shutdown, like a crash, innd runs renumber on startup. Renumber copies Ah, that's the missing link. >I wish I had an RPM for you; I suppose it probably doesn't help that >there's a .deb. *wry grin* Sorry, I know there are a million reasons why I should switch to debian, but one dose of gigantic inertia beats all those reasons cold. -- Paul Tomblin <ptomblin@xcski.com>, not speaking for anybody The e-mail of the species is more deadly than the mail.
Re: INN news article numbers resetting after a crash
Author: bill davidsen
Date: Wed, 17 Sep 2003 12:21
Date: Wed, 17 Sep 2003 12:21
28 lines
2728 bytes
2728 bytes
In article <bg3ebd$rds$1@allhats.xcski.com>, Paul Tomblin <ptomblin@xcski.com> wrote: | In a previous article, jeff@litech.org (Jeffrey M. Vinocur) said: | > * The tradindexed overview method has been completely rewritten and | > should be considerably more robust in the face of system crashes. A | > new utility, tdx-util, is provided to examine the contents of the | > overview database, repair inconsistencies, and rebuild the overview | > for particular groups from a tradspool news spool. See tdx-util(8) | > for more details. | | Two problems with that having any relevance to my problem: | 1. I'm not using tradspool (although I am using tradindex) | 2. The problem appears to indicate that it's the article count in the | active file that's getting reset, not the overview. That's probably because the active file is mmap()ed and not getting flushed to disk, so recent changes don't take effect. What changes have you put in the old version which you don't want to migrate to current? Is that more or less work than downloading and installing code that has several years of bug fixes? -- Bill Davidsen <davidsen@tmr.com> CTO, TMR Associates As we enjoy great advantages from inventions of others, we should be glad of an opportunity to serve others by any invention of ours; and this we should do freely and generously. -Benjamin Franklin (who would have liked open source)
Re: INN news article numbers resetting after a crash
Author: Paul Tomblin
Date: Wed, 17 Sep 2003 12:51
Date: Wed, 17 Sep 2003 12:51
26 lines
2586 bytes
2586 bytes
In a previous article, davidsen@tmr.com (bill davidsen) said: >That's probably because the active file is mmap()ed and not getting >flushed to disk, so recent changes don't take effect. Russ said it was because the overview file wasn't getting flushed, and he described an extremely dubious design of the start up where it takes the overview as gospel and uses that to override what's in active. >What changes have you put in the old version which you don't want to >migrate to current? Is that more or less work than downloading and >installing code that has several years of bug fixes? This system is a test bed for another system with several thousand users (but with more reliable power). Both systems use a custom authentication system where after you've authenticated, it replaces the From lines in any of your posts with an official one with your authenticated userid. Don't ask me why, but that was a requirement on the big system. Besides, the original response just said "upgrade to the latest", without any sort of guarantee that it would fix anything. That's why I was reluctant to do so - I wanted to know that this would actually fix something, and not just a fishing expedition. -- Paul Tomblin <ptomblin@xcski.com>, not speaking for anybody To iterate is human; to recurse, is divine.
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