🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by T. William Wells Sun, 19 Jul 1998 00:00
bogus overview! file in 2.0 and later
#29904
Author: T. William Wells
Date: Sun, 19 Jul 1998 00:00
16 lines
1312 bytes
Periodically, one of the servers I manage creates an overview!
file, presumably because innd has decided that it's time to flush
some buffers. This leads to the obvious problem of what to do with
said file. It isn't documented whether I can run overchan on this
file while overchan is already running -- and in any case, if this
sort of thing happens, there ought to be some standard way of
dealing with the file. In previous versions of inn, I'd decided to
run overchan independently of innd; not only did that get rid of
an unnecessary innd fork, it prevented this from being a problem.

That's not the only problem with this file, though. Whatever inn
is doing, it is _not_ flushing from the start of a line. I'll
often see the first bit of the file start in the middle of a token
or in the xrefs.

Re: bogus overview! file in 2.0 and later
#29922
Author: Rahul Dhesi
Date: Mon, 20 Jul 1998 00:00
40 lines
2312 bytes
In <6ov2j6$r10$1@holly.csv.warwick.ac.uk> Jon.Harley@warwick.ac.uk (Jon
Harley) writes:

>bill@twwells.com (T. William Wells) writes:
>>Periodically, one of the servers I manage creates an overview!
>>file, presumably because innd has decided that it's time to flush
>>some buffers. This leads to the obvious problem of what to do with
>>said file. It isn't documented whether I can run overchan on this
>>file while overchan is already running

>Yes, you can. Each overchan locks an overview index file before
>writing to it.

I was under the impression that the article numbers in .overview files
must be in increasing order, otherwise either the nnrp server, or the
overview expiration, will not work properly.  Granted, this requirement
doesn't seem to be documented.  Presumably if you feed the overchan!
file to overchan and later manually 'sort -n' the updated .overview file
(with file locking) you should be ok.

>Standard or not, I have a crontab entry like this which deals
>with it:

>0 1,7,13,19 * * * /bin/mv /news/spool/outgoing/overview! /tmp/missed-over 2>/dev/null && /news/bin/overchan /tmp/missed-over

And you haven't observed any problems due to article numbers not being
sorted?

>That's bad news because it'll mean that article doesn't get indexed;
>I haven't seen that problem myself.

Not a big problem -- the nnrp server also reads the spool directory and
fills in any missing overview entries.  At least, it used to do wo with
inn 1.x.  I wonder if it also does so in inn 2.x?

So many questions, so little documentation...
-- 
Rahul Dhesi <dhesi@spams.r.us.com>

Re: bogus overview! file in 2.0 and later
#29923
Author: Jon Harley
Date: Mon, 20 Jul 1998 00:00
40 lines
2459 bytes
bill@twwells.com (T. William Wells) writes:
>Periodically, one of the servers I manage creates an overview!
>file, presumably because innd has decided that it's time to flush
>some buffers. This leads to the obvious problem of what to do with
>said file. It isn't documented whether I can run overchan on this
>file while overchan is already running

Yes, you can. Each overchan locks an overview index file before
writing to it.

> -- and in any case, if this
>sort of thing happens, there ought to be some standard way of
>dealing with the file. In previous versions of inn, I'd decided to
>run overchan independently of innd; not only did that get rid of
>an unnecessary innd fork, it prevented this from being a problem.

Standard or not, I have a crontab entry like this which deals
with it:

0 1,7,13,19 * * * /bin/mv /news/spool/outgoing/overview! /tmp/missed-over 2>/dev/null && /news/bin/overchan /tmp/missed-over

>That's not the only problem with this file, though. Whatever inn
>is doing, it is _not_ flushing from the start of a line. I'll
>often see the first bit of the file start in the middle of a token
>or in the xrefs.

That's bad news because it'll mean that article doesn't get indexed;
I haven't seen that problem myself. But overchan does check the
validity of its input and should just report an error for that
line and continue.


/Jon
-- 
______________________________________________________________________________
Dr JW Harley               J.W.Harley@warwick.ac.uk                IT Services
Phone: 01203 524217       UNIX/Networking Consultant     University of Warwick
See  http://www.warwick.ac.uk/J.W.Harley/  for fax number, address and PGP key

Re: bogus overview! file in 2.0 and later
#29937
Author: Jon Harley
Date: Tue, 21 Jul 1998 00:00
46 lines
2825 bytes
c.c.eiftj@18.usenet.us.com (Rahul Dhesi) writes:
 Jon.Harley@warwick.ac.uk (Jon Harley) writes:

   bill@twwells.com (T. William Wells) writes:
>>>Periodically, one of the servers I manage creates an overview!
>>>file, presumably because innd has decided that it's time to flush
>>>some buffers. This leads to the obvious problem of what to do with
>>>said file. It isn't documented whether I can run overchan on this
>>>file while overchan is already running

>>Yes, you can. Each overchan locks an overview index file before
>>writing to it.

>I was under the impression that the article numbers in .overview files
>must be in increasing order, otherwise either the nnrp server, or the
>overview expiration, will not work properly.  Granted, this requirement
>doesn't seem to be documented.

That's not the case; in nnrpd, the articles are sorted by number *after*
being read in. expireindex just takes a list of the articles to be removed
from the group, and if you use batch mode (-z) this does need to be
sorted; this may be what you were thinking of.

>  Presumably if you feed the overchan!
>file to overchan and later manually 'sort -n' the updated .overview file
>(with file locking) you should be ok.

No, because in INN2 the .overview files are binary files, not text.

>Not a big problem -- the nnrp server also reads the spool directory and
>fills in any missing overview entries.  At least, it used to do wo with
>inn 1.x.  I wonder if it also does so in inn 2.x?

Yes if you're not using the storage manager, which of course achieves
efficiency gains by not storing all the articles for a group in one
(sometimes huge) directory.


/Jon
-- 
______________________________________________________________________________
Dr JW Harley               J.W.Harley@warwick.ac.uk                IT Services
Phone: 01203 524217       UNIX/Networking Consultant     University of Warwick
See  http://www.warwick.ac.uk/J.W.Harley/  for fax number, address and PGP key

Re: bogus overview! file in 2.0 and later
#29941
Author: Jon Harley
Date: Tue, 21 Jul 1998 00:00
46 lines
2822 bytes
c.c.eiftj@18.usenet.us.com (Rahul Dhesi) writes:
 Jon.Harley@warwick.ac.uk (Jon Harley) writes:

   bill@twwells.com (T. William Wells) writes:
>>>Periodically, one of the servers I manage creates an overview!
>>>file, presumably because innd has decided that it's time to flush
>>>some buffers. This leads to the obvious problem of what to do with
>>>said file. It isn't documented whether I can run overchan on this
>>>file while overchan is already running

>>Yes, you can. Each overchan locks an overview index file before
>>writing to it.

>I was under the impression that the article numbers in .overview files
>must be in increasing order, otherwise either the nnrp server, or the
>overview expiration, will not work properly.  Granted, this requirement
>doesn't seem to be documented.

That's not the case; in nnrpd, the articles are sorted by number *after*
being read in. expireindex just takes a list of the articles to be removed
from the group, and if you use batch mode (-z) this does need to be
sorted; this may be what you were thinking of.

>  Presumably if you feed the overchan!
>file to overchan and later manually 'sort -n' the updated .overview file
>(with file locking) you should be ok.

No, because in INN2 the .overview files are binary files, not text.

>Not a big problem -- the nnrp server also reads the spool directory and
>fills in any missing overview entries.  At least, it used to do wo with
>inn 1.x.  I wonder if it also does so in inn 2.x?

Yes if you're not using the storage manager, which of course achieves
efficiency gains by not storing all the articles for a group in one
(sometimes huge) directory.


/Jon
-- 
______________________________________________________________________________
Dr JW Harley               J.W.Harley@warwick.ac.uk                IT Services
Phone: 01203 524217       UNIX/Networking Consultant     University of Warwick
See  http://www.warwick.ac.uk/J.W.Harley/  for fax number, address and PGP key

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads