🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83063

Re: Moving and adding cycbuff's (inn 2.5)

#83063
From: Julien ÉLIE
Date: Sat, 22 May 2010 19:55
94 lines
5361 bytes
Hi John,

> I need to know the date(s) of the oldest article in each buffer so I can determine 
> the retention time. Like 2.4.5 does.

The functioning has not changed since 2.4.5.


> I would suspect the oldest dates would eventually change after a roll-over (the 
> metacycbuffs are SEQUENTIAL), but it doesn't appear to be happening.
>
> I don't know what the problem is, but take a look at the "oldest" dates in some of 
> these cycbuffs that have rolled over:
>
> Class fasttext for groups matching 
> "news.admin.net-abuse.email,news.admin.net-abuse.sightings,*.jobs*,perl.cpan.testers"
> Buffer fsttx01, size:  2.00 GBytes, position:  80.0 kBytes  2.00 cycles
>  Newest: 2010-04-03 19:05:02,   38 days,  2:10:38 ago
>  Oldest: 2010-04-03  5:20:35,   38 days, 15:55:05 ago
> Buffer fsttx02, size:  2.00 GBytes, position:  80.0 kBytes  2.00 cycles
>  Newest: 2010-04-24 12:15:05,   17 days,  9:00:35 ago
>  Oldest: 2010-04-03 19:05:02,   38 days,  2:10:38 ago
> Buffer fsttx03, size:  2.00 GBytes, position:  1.29 GBytes  1.65 cycles
>  Newest: 2010-05-11 21:15:09,    0 days,  0:00:31 ago
>  Oldest: 2010-04-24 12:15:05,   17 days,  9:00:35 ago
> Buffer fsttx04, size:  2.00 GBytes, position:  80.0 kBytes  1.00 cycles
>  Newest: 2010-04-03  5:20:35,   38 days, 15:55:05 ago
>  Oldest: 2010-04-03  4:37:32,   38 days, 16:38:08 ago

I do not see any contradiction.
Your buffers are sequential so:
   oldest of 04 <= newest of 04 <= oldest of 01 <= newest of 01 <= oldest of 02
<= newest of 02 <= oldest of 03 <= newest of 03.


> Notice the oldest seems to be stuck on 2010-04-03 for cycbuffs fsttx01, fsttx02 
> and fsttx04, which have all gone through at least one cycle, and with fsttx01 and 
> fsttx02 two cycles.
>
> However fsttx03 which also has gone through one complete cycle, shows 2010-04-24 
> as the oldest. Something just doesn't seem right.

What does not seem right?


> Buffer vyfst04, size:   256 MBytes, position:  16.0 kBytes  0.00 cycles
>  Newest: 2010-04-03  2:06:38,   38 days, 19:09:02 ago
>  Oldest: 2010-05-05 22:11:05,    5 days, 23:04:35 ago
>
> Here, vyfst04 has not yet been used, but the oldest date is 2010-05-05.

How did you create it?  Copying another cycbuff?  Or using "dd" as the
man page suggests.
I also suggest you wait for its proper initialization (receiving its
first article).


Note:  I have just tested a new empty but initialized cycbuff and I have:
  Newest: 2010-05-22 21:45:45,    0 days,  0:00:54 ago
  Oldest: 1970-01-01  1:00:00, 14751 days, 19:46:39 ago

So newest is time of creation and oldest is hmm... unset :)
cnfsstat does not find any article.


Maybe what you see is a non-initialization of $oldart (which would
then copy the value of your previous initialized buffer).

Could you try this patch and see whether the oldest article is now undefined?

--- cnfsstat.in (révision 9052)
+++ cnfsstat.in (copie de travail)
@@ -411,6 +415,7 @@

 sub get_cycbuff_info {
     my($buffpath) = $_[0];
+    my $oldart;

     my($CNFSMASIZ)=8;
     my($CNFSNASIZ)=16;



> Chances are that vyfst01 has 2010-04-03 as the oldest because that is the date the 
> server was loaded, but then why does vyfst02 show a later oldest date?

That's normal.  Why shouldn't it?  It is a sequential write.

-- 
Julien ÉLIE

« Boire du café empêche de dormir. Par contre, dormir empêche
  de boire du café. » (Philippe Geluck) 
Technical Details
Message-ID: <ht9cql$m9o$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!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!.POSTED.amontpellier-159-1-8-22.w90-57.abo.wanadoo.fr!not-for-mail
References: <9799e$4bddcc08$bda4895b$11751@news.anarqy.com> <hrko8d$bm1$1@news.trigofacile.com> <bbb46$4bdde672$bda4895b$19062@news.anarqy.com> <hrkp6e$crv$1@news.trigofacile.com> <hrkqpg$nlm$2@n102.xanadu-bbs.net> <hrkrno$fkn$1@news.trigofacile.com> <hrle54$tce$1@n102.xanadu-bbs.net> <hs3gva$641$1@news.trigofacile.com> <hs8hg0$2fk$1@n102.xanadu-bbs.net> <hs9ita$1br$1@news.trigofacile.com> <hsa862$hv3$1@n102.xanadu-bbs.net> <hscdt4$6ga$1@news.trigofacile.com> <hsd5lh$c9a$1@n102.xanadu-bbs.net>

Show Full Headers
Complete Article Headers
Message-ID: <ht9cql$m9o$1@news.trigofacile.com>
Subject: Re: Moving and adding cycbuff's (inn 2.5)
Date: Sat, 22 May 2010 21:55:01 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <9799e$4bddcc08$bda4895b$11751@news.anarqy.com> <hrko8d$bm1$1@news.trigofacile.com> <bbb46$4bdde672$bda4895b$19062@news.anarqy.com> <hrkp6e$crv$1@news.trigofacile.com> <hrkqpg$nlm$2@n102.xanadu-bbs.net> <hrkrno$fkn$1@news.trigofacile.com> <hrle54$tce$1@n102.xanadu-bbs.net> <hs3gva$641$1@news.trigofacile.com> <hs8hg0$2fk$1@n102.xanadu-bbs.net> <hs9ita$1br$1@news.trigofacile.com> <hsa862$hv3$1@n102.xanadu-bbs.net> <hscdt4$6ga$1@news.trigofacile.com> <hsd5lh$c9a$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!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!.POSTED.amontpellier-159-1-8-22.w90-57.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 94
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
 reply-type=response
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 22 May 2010 19:55:01 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="amontpellier-159-1-8-22.w90-57.abo.wanadoo.fr:90.57.195.22";
 logging-data="22840"; mail-complaints-to="abuse@trigofacile.com"
In-Reply-To: <hsd5lh$c9a$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.18197
X-Original-Bytes: 5195