Article View: news.software.nntp
Article #91051Re: perl-nocem not processing all NoCeMs by same issuer
From: Julien ÉLIE
Date: Sat, 04 Nov 2023 10:53
Date: Sat, 04 Nov 2023 10:53
65 lines
3679 bytes
3679 bytes
Hi Jesse,
>> With ovsqlite, you obtain all these storage tokens with:
>>
>> ovsqlite-util -g -n news.lists.filters | cut -f 5 -d' '
>
> Finally got my history and overview rebuilt with ovsqlite...
Good news :)
> When I use the command above piped to perl-nocem, innd grinds to a halt. It
> seems to process a few nocem articles and then everything stops. No articles
> processed from peers and incoming connections hang, nothing reported in the
> logs except perl-nocem starting. I don't see anything with truss against innd
> or perl-nocem, and as soon as I cancel the command everything springs back to
> life.
I also see the same behaviour, indeed, when thousands of articles are
processed.
After investigation, perl-nocem hangs at the receival of a response from
innd:
foreach (@$ids) {
print NNTP "$_\r\n";
if (($r = <NNTP>) !~ /^289/) {
$r =~ s/\r\n$//;
logmsg("cannot cancel $_: $r", 'err');
goto ERR;
}
}
<NNTP> waits for more bytes.
Yet, innd has properly seen the article, as enabling traces (ctlinnd
trace innd y) shows at debug level:
Nov 4 11:23:53 news innd[1620966]: localhost:46 NCproc state=15 next
"<O9KdnVDIDbin9V"
Nov 4 11:23:53 news innd[1620966]: localhost:46 <
<O9KdnVDIDbin9VP_nZ2dnUU7_83NnZ2d@giganews.com>
and innd logs a response only when I stop perl-nocem:
Nov 4 11:24:01 news innd[1620966]: localhost:46 NCwritereply
26=write(46, "289 Article can", 26)
Nov 4 11:24:01 news innd[1620966]: localhost:46 > 289 Article cancelled OK
As you noted, the behaviour is different when running "perl-nocem <
file" instead of piping the ovsqlite-util result into perl-nocem.
There's no hang in that case.
I am unsure what should be fixed there; innd shouldn't really be
indefinitely blocked in reading in the Unix-domain socket opened by
perl-nocem. Seems like after NCwritedone(), the channel is added to be
read (RCHANadd) but nothing is to be read as perl-nocem did not receive
any response for whatever reason.
--
Julien ÉLIE
« There's a way of transferring funds that is even faster than
electronic banking. It's called marriage. » (Sam Kinison)
Technical Details
Message-ID:
<ui57rq$1kh2p$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<ucv8rp$14t2$1@nnrp.usenet.blueworldhosting.com> <ucvdep$1m48$1@nnrp.usenet.blueworldhosting.com> <ucvecm$1fm4$1@nnrp.usenet.blueworldhosting.com> <ud2u8f$2cj5i$1@news.trigofacile.com> <ui34jh$aqo$1@nnrp.usenet.blueworldhosting.com>Show Full Headers
Complete Article Headers
Message-ID: <ui57rq$1kh2p$1@news.trigofacile.com> Subject: Re: perl-nocem not processing all NoCeMs by same issuer Date: Sat, 4 Nov 2023 11:53:46 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <ucv8rp$14t2$1@nnrp.usenet.blueworldhosting.com> <ucvdep$1m48$1@nnrp.usenet.blueworldhosting.com> <ucvecm$1fm4$1@nnrp.usenet.blueworldhosting.com> <ud2u8f$2cj5i$1@news.trigofacile.com> <ui34jh$aqo$1@nnrp.usenet.blueworldhosting.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.nntp Organization: Groupes francophones par TrigoFACILE Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 4 Nov 2023 10:53:46 -0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105"; logging-data="1721433"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:2mE2RkhmWfOIfj7OY4E/rVqVNA8= sha256:6VA82QSrbW+Ubm6cgDkdtvigSqgpSphAADBi34x0r8U= sha1:xRv4ZV7tBjZw4y3ctUTnZjrfDZ4= sha256:qpRn4lv/GePAY3YXXgSWnZaguDVH9Zvzfe9Y5YvJjnU= In-Reply-To: <ui34jh$aqo$1@nnrp.usenet.blueworldhosting.com>