🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #91295

Re: expireover issue after move to ovsqlite

#91295
From: Julien ÉLIE
Date: Mon, 11 Dec 2023 20:50
54 lines
2716 bytes
Hi Jesse,

>>> $ echo fr.soc.politique | expireover -f - -Z tmp/lowmark
>>> expireover: can't expire fr.soc.politique
> 
> I don't need to expire this group, but found it odd that the error was
> produced from the daily expireover, but only for this one group.
> 
> I can dump the contents with ovsqlite-util and, while I didn't examine all 4+
> million lines, everything looks normal.

That's indeed very odd, either a bug or a corruption of some data.

This error appears when the expire_one() function in 
storage/ovsqlite/ovsqlite.c returns false.

If you wish and have a bit of time to investigate, is it possible to 
rebuild INN with additional logs at each "return false"?
For instance, changing:

     if (!write_request())
         return false;

to:

     if (!write_request()) {
         syswarn("first write_request failed");
         return false;
     }

and so on...
There are 20 occurrences.

In the for loop, you may want to add the processed article number:

     if (!unpack_now(response, &expires, sizeof expires)) {
         syswarn("unpack_now expires failed for %lu", artnum);
         return false;
     }


Once the culprit is found, additional investigations will have to be 
done, with again additional more precise logs, so it will take more time.
Tell me if you want to.
Also, for the changes of the 20 occurrences, do you want to do that 
yourself or should I send you the modified ovsqlite.c file to your 
e-mail address?

-- 
Julien ÉLIE

« Mon grand-père buvait un litre de whisky par jour et il est mort à 103
   ans. À l'incinération, on a cru que le feu ne s'arrêterait jamais. »
   (Sloppy White)
Technical Details
Message-ID: <ul7sn9$3k8q$2@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-mail
References: <ukqs97$5vq$1@nnrp.usenet.blueworldhosting.com> <ul403j$14p6$1@news.trigofacile.com> <ul5a0b$25t0$1@nnrp.usenet.blueworldhosting.com>

Show Full Headers
Complete Article Headers
Message-ID: <ul7sn9$3k8q$2@news.trigofacile.com>
Subject: Re: expireover issue after move to ovsqlite
Date: Mon, 11 Dec 2023 21:50:49 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <ukqs97$5vq$1@nnrp.usenet.blueworldhosting.com> <ul403j$14p6$1@news.trigofacile.com> <ul5a0b$25t0$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: Mon, 11 Dec 2023 20:50:49 -0000 (UTC)
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:BdXPMxQnlqBbovAlQWPqjkgw+Tc= sha256:fXhbVh8mUft+Ze92GDyDIpwqzLYdyCGpL+AjYVWx100=
In-Reply-To: <ul5a0b$25t0$1@nnrp.usenet.blueworldhosting.com>