Article View: news.software.nntp
Article #83626Re: Watermarks upside down
From: Julien ÉLIE
Date: Thu, 04 Nov 2010 21:33
Date: Thu, 04 Nov 2010 21:33
123 lines
6002 bytes
6002 bytes
Hi John,
> Too bad we can't fix what is broken first though. Constant upgrades fix nothing.
> They just introduce more bugs.
Aren't more bugs fixed that introduced?
> It's much cheaper to fix a vehicle than to junk it and buy a new one.
> Would anyone tear down their house and build a new one when only a window pane was
> broken, or a door was stuck?
Yet, I perfectly know how to fix it. See these two patches, 20 months ago:
http://inn.eyrie.org/trac/changeset/8373
http://inn.eyrie.org/trac/changeset/8426
The issue is in innd/ng.c:
When a newsgroup is empty, the high water mark should be one less
than the low water mark according to RFC 3977.
"ctlinnd renumber" must not assume the previous high water mark
in the active file was right.
+
Check whether the high water mark is not inferior to the
low water mark of a newsgroup when running "ctlinnd lowmark".
Thanks to Steve Crook for the bug report.
Discussed with Steve in March 2009 (thread named "Errors in active file"):
https://groups.google.com/group/news.software.nntp/msg/9db52d24187563f0?hl=fr
https://groups.google.com/group/news.software.nntp/msg/876cf925dc8de76c?hl=fr
https://groups.google.com/group/news.software.nntp/msg/35e968c63075a39d?hl=fr
https://groups.google.com/group/news.software.nntp/msg/efcb53d80d1d0987?hl=fr
Quotes:
%%%%%%%%%%%%%%%%%%%
/usr/local/news/db/active:25492: `0000000000' < '0000000002'.
/usr/local/news/db/active:25742: `0000000093' < '0000000095'.
/usr/local/news/db/active:25939: `0000000000' < '0000000002'.
/usr/local/news/db/active:26257: `0000000160' < '0000000162'.
%%%%%%%%%%%%%%%%%%%
What I suspect is that expireover returns a wrong low water mark for
a few newsgroups.
You should do:
* apply to your INN the two patches I have just provided;
* run one day news.daily with "expireover lowmark" so as to put the right
low mark from the overview;
* run the following day news.daily with "expireover" only so as to put
the right high mark for empty newsgroups;
* and finally "expireover lowmark" again.
Then see if there are still errors. I do not see otherwise what keeps
resetting your high water marks to 0. And is it for empty groups only?
%%%%%%%%%%%%%%%%%%%
Hi Julien,
It's looking good!
As expected there are lots of log messages such as:
Apr 21 08:38:22 drooper innd: SERVER renumber xs4all.kabel hi from 0 to 2
Running inncheck now produces no errors.
%%%%%%%%%%%%%%%%%%%
>>> Once this is figured out, then the question becomes why did this just recently
>>> start?
>>
>> I do not know exactly what went wrong on a few of your INN 2.4.x servers.
>
> If the reason for the problem is never found, then there's no reason to believe it
> won't reappear in a newer version.
It won't! :-)
I was speaking about the exact reason of why it recently started on your
news server. I don't know. I can only guess. Either you never saw it
before, or a few groups recently became empty...
>> However, I can tell you that INN 2.5.x fixed several issues regarding
>> the overview, ctlinnd lowmark, and how water marks for empty newsgroups
>> are handled in both the overview and the active file.
>
> The 2.5.2 servers have not (yet) experienced this particular problem. I'll keep my
> fingers crossed -- if that really will do any good. ;-)
No need to cross your fingers!
The issue is fixed.
Regarding this very bug, I only made a patch for the INN 2.5 branch.
I did not look at the 2.4 branch, so there is no patch provided, and
I do not plan on making one. (Maybe these two would work out of the box,
but use at your own risks.)
You now know everything about the bug you have just experienced with
INN 2.4.5.
Have a nice week-end,
--
Julien ÉLIE
« -- Alors j'ai eu une idée géniale : ramener à César un des
Gaulois irréductibles de la région !
-- Mais, préfet, ces Gaulois irréductibles ont un grand défaut !
-- Ah ? Lequel ?
-- C'est qu'ils sont irréductibles justement ! » (Astérix)
Technical Details
Message-ID:
<iav8rt$3rl$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!news3.google.com!feeder.news-service.com!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-2-50.w83-114.abo.wanadoo.fr!not-for-mailReferences:
<iakcpm$not$1@n102.xanadu-bbs.net> <iakhd5$fu$1@news.trigofacile.com> <iakp6g$r36$1@n102.xanadu-bbs.net> <iapp8f$sqj$1@n102.xanadu-bbs.net> <iapuq8$5kg$1@news.trigofacile.com> <iaq41a$vi8$1@n102.xanadu-bbs.net> <ias7kl$ibc$1@n102.xanadu-bbs.net> <ias9d5$ov9$1@news.trigofacile.com> <iav6fe$ck9$1@n102.xanadu-bbs.net>Show Full Headers
Complete Article Headers
Message-ID: <iav8rt$3rl$1@news.trigofacile.com> Subject: Re: Watermarks upside down Date: Thu, 4 Nov 2010 22:33:46 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <iakcpm$not$1@n102.xanadu-bbs.net> <iakhd5$fu$1@news.trigofacile.com> <iakp6g$r36$1@n102.xanadu-bbs.net> <iapp8f$sqj$1@n102.xanadu-bbs.net> <iapuq8$5kg$1@news.trigofacile.com> <iaq41a$vi8$1@n102.xanadu-bbs.net> <ias7kl$ibc$1@n102.xanadu-bbs.net> <ias9d5$ov9$1@news.trigofacile.com> <iav6fe$ck9$1@n102.xanadu-bbs.net> 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!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!news3.google.com!feeder.news-service.com!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-2-50.w83-114.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 123 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=response Content-Transfer-Encoding: 8bit Injection-Date: Thu, 4 Nov 2010 21:33:49 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="aaubervilliers-151-1-2-50.w83-114.abo.wanadoo.fr:83.114.1.50"; logging-data="3957"; mail-complaints-to="abuse@trigofacile.com" In-Reply-To: <iav6fe$ck9$1@n102.xanadu-bbs.net> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18263 X-Original-Bytes: 5758