πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83627

Re: Watermarks upside down

#83627
From: John F. Morse
Date: Thu, 04 Nov 2010 23:13
224 lines
9542 bytes
Hi Julien,

Julien Γ‰LIE wrote:
> 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?


I have no way to numerate them. Do you? ;-)

I do know that 2.4.3 seemed to purr along year after-year, while 2.4.5 
has had issues surface.

Then 2.5.2 has even more problems, but so far, they all seem to be the 
configuration build for Debian, which are editable after finding all of 
them. In fairness, I'll state that 2.5.2 is running on Squeeze, which is 
still considered the "Testing" branch.

I have not discovered any "bugs" in 2.5.2 that I could attribute to your 
fine work though. :-)


>> 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.
> %%%%%%%%%%%%%%%%%%%


If only you would have posted that instead of "A bug, or probably 
several bugs." ;-)

Or if my limited brain memory would have remembered the discussion back 
in March, 2009. :-(


>>>> 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...


That is/was my concern -- what actually started it.

I did nothing to change the two servers. The groups with active file 
errors are not the same on the two servers. The servers with larger hard 
drives do not generate any error messages, and the CNFS groups haven't 
yet rolled over since loaded months ago from old servers that had very 
old articles. They are empty.

My only thought was maybe some articles were posted to them, then NoCeM 
deleted the articles (they can't be canceled by other control messages).

There may be some bad code used by the NoCeM process in the local cancel 
routine. Who knows?


>>> 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.)


I may try this later, when I find my round-tuit.

Although I will probably devote all of my time to 2.5.2 and the new 
servers. Not much point in beating a dead horse. ;-)

The old Optima5 2.4.5 reader server has a bad hard drive, giving errors 
for a few addresses, so it isn't going to last long anyway.

Stuff like this:

Expire messages:
expireover start Thu Nov  4 00:01:11 CDT 2010: ( -z/var/log/news/expire.rm -Z/var/log/news/expire.lowmark)
expireover: tradindexed: cannot append 347 of data for 114 to /var/spool/news/overview/a/p/e/alt.politics.equality.DAT: Bad address
expireover: can't expire alt.politics.equality
expireover: tradindexed: cannot append 1064 of data for 388753 to /var/spool/news/overview/c/o/l/a/comp.os.linux.advocacy.DAT: Bad address
expireover: can't expire comp.os.linux.advocacy
    Article lines processed    46031
    Articles dropped               0
    Overview index dropped         0
expireover end Thu Nov  4 01:16:18 CDT 2010
lowmarkrenumber begin Thu Nov  4 01:16:18 CDT 2010: (/var/log/news/expire.lowmark)
lowmarkrenumber end Thu Nov  4 01:16:19 CDT 2010
expire begin Thu Nov  4 01:16:49 CDT 2010: (-v1)
    Article lines processed  7118014
    Articles retained        7080635
    Entries expired            37379
expire end Thu Nov  4 01:26:36 CDT 2010
	all done Thu Nov  4 01:26:36 CDT 2010



> You now know everything about the bug you have just experienced with
> INN 2.4.5.


Thanks for this additional information.


> Have a nice week-end,


Thanks. Americans still have to make it through Friday. :-(

I've been reading in the news that France is increasing the hours per 
week for workers. This has understandably upset most people. Caused a 
lot of problems with fuel depots, etc.

Here in the USA, the usual workweek has been 40 hours for many years. 
Eight hours per day, Monday through Friday. Many people work additional 
overtime, either "forced" by their company, or because ends aren't 
meeting in their budgets.

Of course I'm retired, so I have no place to go outside to work, and 
everything I do is for myself (non-paid!). ;-)

A weekend day is like any other day of the week, except my wife will 
usually spend Friday evening and Saturday with her daughters -- usually 
in a mall, shopping. I get more done because I'm not, er, "interrupted" 
as often. ;-)

So I guess my weekends are all good. Or at least usually more productive.

You have a good one too, and thanks again for the information.


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID: <iaveme$epc$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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder1.xlned.com!news.netcologne.de!newsfeed-fusi2.netcologne.de!news.mixmin.net!optima2.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
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> <iav8rt$3rl$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <iaveme$epc$1@n102.xanadu-bbs.net>
Subject: Re: Watermarks upside down
Date: Thu, 04 Nov 2010 18:13:18 -0500
From: "John F. Morse" <john@example.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> <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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder1.xlned.com!news.netcologne.de!newsfeed-fusi2.netcologne.de!news.mixmin.net!optima2.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Xanadu BBS
Lines: 224
Reply-To: dont.bother
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: n102.xanadu-bbs.net 1288912398 15148 192.168.89.210 (4 Nov 2010
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Thu, 4 Nov 2010 23:13:18 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.24 (X11/20100317)
In-Reply-To: <iav8rt$3rl$1@news.trigofacile.com>
X-Enigmail-Version: 0.96.0
X-Original-Bytes: 9293