Article View: news.software.nntp
Article #91444tradspool and crosspost expiry (was Re: INN expiring from overview but not history or disk)
From: John Goerzen
Date: Wed, 17 Jan 2024 01:33
Date: Wed, 17 Jan 2024 01:33
162 lines
7318 bytes
7318 bytes
In reading some more docs, I have a clue, but it is not an answer.
The expireover manpage documents these options:
-e Remove articles from the news spool and all overview databases as
soon as they expire out of any newsgroup to which they are posted,
rather than retain them until they expire out of all newsgroups. -e
and -k cannot be used at the same time. This flag is ignored if
groupbaseexpiry is false.
-k Retain all overview information for an article, as well as the
article itself, until it expires out of all newsgroups to which it
was posted. This can cause articles to stick around in a newsgroup
for longer than the expire.ctl rules indicate, when they're
crossposted. -e and -k cannot be used at the same time. This flag
is ignored if groupbaseexpiry is false.
It doesn't state which is the default. However, some anecdotal inspection
suggests that every post that seems to be mysteriously present was crossposted
into newsgroups with longer expiry times (the default on this server is never,
which I only override for ones that are using excessive disk)
So now I have a ton of questions:
- Since a tradspool article is hardlinked into every newsgroup it is posted to,
how does -e even know where to remove it from? Same for ctlinnd cancel and
such. It would have to rm/unlink it from multiple places if crossposted.
- Part of the reason I picked tradspool was to have more fine-grained control
over expiry. I had thought that it would simply unlink a crossposted article
from any group whose rules would expire it. It sounds like it's
all-or-nothing, and perhaps -k is the default.
- It seems odd that there's no medium between -e and -k that means "just unlink
it from groups as it comes up for expiry there." Or am I missing something?
Thanks,
John
On 2024-01-16, John Goerzen <jgoerzen@complete.org> wrote:
> Hello,
>
> On my private INN leaf system, I am running INN 2.7.1 with groupbaseexpiry=true,
> ovmethod=ovdb, hismethod=hisv6, and tradspool.
>
> I am having an issue where the news.daily job is:
>
> * For SOME articles, correctly expiring them from all places
>
> * For others, even in the same group, removing them from lownumber in active
> (and presumably also overview) but leaving them on disk (and sometimes in
> history).
>
> I noticed this when doing a routine examination of what was using space on this
> system, which is getting a full text-only feed.
>
> I picked the group at the top of the storage space list under alt. (Please do
> not derail; this group was picked solely by its disk space usage, and is not one
> I read anyhow; this is a purely technical question)
>
> news:~/articles/alt/atheism$ ls | wc -l
> 118089
> news:~/articles/alt/atheism$ grep ^alt.atheism\ /var/lib/news/active
> alt.atheism 0000289856 0000288979 y
>
> According to active, there are 877 articles in that group. But according to ls,
> over 100,000.
>
> I added a specific like to expire.ctl for this hierarchy for testing:
>
> alt.atheism.*:A:5:5:5
> alt.atheism:A:5:5:5
>
> My expire.log shows:
>
> expireover start Tue Jan 16 04:18:25 CST 2024: ( -z/var/log/news/expire.rm -Z/var/log/news/expire.lowmark)
> Article lines processed 9050290
> Articles dropped 16771
> Overview index dropped 17663
> expireover end Tue Jan 16 04:37:41 CST 2024
> lowmarkrenumber begin Tue Jan 16 04:37:41 CST 2024: (/var/log/news/expire.lowmark)
> lowmarkrenumber end Tue Jan 16 04:37:41 CST 2024
> expirerm start Tue Jan 16 04:37:41 CST 2024
> expirerm end Tue Jan 16 04:38:02 CST 2024
> expire begin Tue Jan 16 04:38:32 CST 2024: (-v1)
> Article lines processed 8051376
> Articles retained 5934390
> Entries expired 2116986
> expire end Tue Jan 16 04:52:01 CST 2024
> all done Tue Jan 16 04:52:01 CST 2024
>
> Well that's weird. My expire.list file does have some alt/atheism/* files in
> it, and THOSE files are gone. But:
>
> news:~/articles/alt/atheism$ ls -ltr | head
> total 584041
> -rw-rw-r-- 4 news news 5967 Aug 30 2021 1
> -rw-rw-r-- 4 news news 2612 Aug 30 2021 2
> -rw-rw-r-- 4 news news 2609 Aug 30 2021 3
> -rw-rw-r-- 4 news news 3596 Aug 30 2021 16
> -rw-rw-r-- 4 news news 3511 Aug 30 2021 24
> -rw-rw-r-- 4 news news 4217 Aug 30 2021 25
> -rw-rw-r-- 4 news news 3303 Aug 30 2021 27
> -rw-rw-r-- 4 news news 2362 Aug 30 2021 28
> -rw-rw-r-- 4 news news 3994 Aug 30 2021 32
>
> Clearly something isn't right here.
>
> Looking at the message-IDs from these, for some of them (for instance, the very
> oldest in the list) grephistory doesn't show any entries. For others -- such as
> this one from February 2023, nearly a year ago:
>
> news:~/articles/alt/atheism$ grephistory -l 'c0eeuhhbc3ebr3t8vlvfu4ftd4bdbb49u7@4ax.com'
> [43098AA196CF303E586EDE4477A98426] 1676098879~-~1676097578 @0500000002F00000000000030D4000000000@
>
> And those dates match. But this is clearly outside what is listed in active.
>
> ovdb seems to match active:
>
> news:~/articles/alt/atheism$ ovdb_stat -c alt.atheism
> alt.atheism: counted: low: 288979, high: 289856, count: 878
> news:~/articles/alt/atheism$ ovdb_stat -g alt.atheism
> alt.atheism: groupstats: low: 288979, high: 289856, count: 878, flag: y
> news:~/articles/alt/atheism$ ovdb_stat -i alt.atheism
> alt.atheism: flags: none
> alt.atheism: gid: 752; Stored in: ov00027
> alt.atheism: last expired: 2024-01-16 04:20:27 CST
> alt.atheism: by process id: 138688
>
> Even expire.list is weird:
>
> alt/atheism/288826
> alt/atheism/288827
> alt/atheism/288828
> alt/atheism/288829
> alt/atheism/288830
> alt/atheism/288833
> alt/atheism/288834
> alt/atheism/288835
> alt/atheism/288836
> alt/atheism/288840
> alt/atheism/288842
>
> I don't know how to explain those gaps; 288831 and 288832 do exist on disk and
> should be expired, for instance.
>
> I believe this is happening in a number of other groups as well. That is, it's
> not specific to this one. This is just the biggest example.
>
> So my questions are:
>
> 1) Why is this happening?
>
> 2) Once I fix #1, how can I fix it? I could brute force a 'find . -mtime +x
> -delete' but that might not leave the history in a consistent state.
>
> I am using the default cronjob for calling news.daily expireover lowmark delayrm.
>
> Thanks,
>
> John
Technical Details
Message-ID:
<slrnuqebiq.borl.jgoerzen@slrnh.complete.org>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:
<slrnuqdfcq.9bhe.jgoerzen@slrnh.complete.org>Show Full Headers
Complete Article Headers
Message-ID: <slrnuqebiq.borl.jgoerzen@slrnh.complete.org> Subject: tradspool and crosspost expiry (was Re: INN expiring from overview but not history or disk) Date: Wed, 17 Jan 2024 01:33:14 +0000 From: John Goerzen <jgoerzen@complete.org> References: <slrnuqdfcq.9bhe.jgoerzen@slrnh.complete.org> 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: Alexandria NNCP news system Injection-Date: Wed, 17 Jan 2024 01:33:14 -0000 (UTC) Injection-Info: alexnews.alexandria.complete.org; User-Agent: slrn/1.0.3 (Linux)