Thread View: news.software.nn
2 messages
2 total messages
Started by Tom Ivar Helbekkmo
Wed, 28 Mar 1990 23:33
Disappearing DATA files.
Author: Tom Ivar Helbekkmo
Date: Wed, 28 Mar 1990 23:33
Date: Wed, 28 Mar 1990 23:33
46 lines
2769 bytes
2769 bytes
I'm running the newest release of NN here (retrieved and compiled a week ago), and I've run into a strange situation: It seems to me that whenever B news expires the last message in a newsgroup, both data files under .../nn/DATA/ representing that group are removed, and a "database inconsistency" reported. Here's a brief excerpt from the log: M: Mar 22 03:00 (M): Master terminated (hangup) M: Mar 22 03:00 (M): Master started -r0 -e1 -E X: Mar 22 03:00 (M): Expire: 3 art, 2 gr, 3 s (incl. collect) C: Mar 22 03:00 (M): Collect: 48 art, 1 gr, 3 s (incl. expire) M: Mar 22 03:00 (M): Master terminated M: Mar 22 03:00 (M): Master started -r10 -e1 V: Mar 22 03:00 (news): Database inconsistency in group local.news A: Mar 22 03:00 (news): SEND R 512 0 M: Mar 22 03:00 (M): Database validation completed A: Mar 22 03:00 (M): RECV R 512 0 (news Mar 22 03:00) A: Mar 22 03:02 (news): SEND R -1 0 A: Mar 22 03:02 (M): RECV R -1 0 (news Mar 22 03:02) C: Mar 22 03:02 (M): Collect: 63 art, 6 gr, 3 s This happened when I was testing the brand new setup, manually expiring the only posted message in the group in question -- but it has later been seen to happen when the last item in a group is automatically expired as well. When an item is posted to the group again, NN will resurrect it as well. Until then, every nightly expire/rebuild reports the inconsistency. Is this a problem, or should I just not worry about it? While I'm at it, there's another problem I haven't been able to figure out from the source code yet either: Extracting multiple articles by specifying something like "~/src/newstuff/foo_*_of_n.sh" will ask if I want to create the directory, then ask what to extract, and when I hit '*' it will rapidly say it couldn't write each of the articles -- although it has created the directory, and I can see that the filename expansions are working properly. Any hints about where in the source to look for problems? I'm running SCO Unix V/386 3.2.0 with GCC 1.37.1. -tih -- Tom Ivar Helbekkmo, NHH, Bergen, Norway. Telephone: +47-5-959205 tih@barsoom.nhh.no, thelbekk@norunit.bitnet, edb_tom@debet.nhh.no
Re: Disappearing DATA files.
Author: Kim F. Storm
Date: Tue, 03 Apr 1990 22:55
Date: Tue, 03 Apr 1990 22:55
40 lines
2231 bytes
2231 bytes
tih@barsoom.nhh.no (Tom Ivar Helbekkmo) writes:
>I'm running the newest release of NN here (retrieved and compiled a
>week ago), and I've run into a strange situation: It seems to me that
>whenever B news expires the last message in a newsgroup, both data
>files under .../nn/DATA/ representing that group are removed, and a
>"database inconsistency" reported.
That is a genuine bug which has been there since 6.3, but it has not
been triggered until 6.4, because 6.3 didn't actually remove the
INDEX and DATA files when a group became empty as 6.4 does. It is
fixed in the final 6.4 release, but to fix it in the beta, you can
use the following patch to admin.c:
----------------- admin.c ------------
static file_error(gh, d_or_x, write_offset)
group_header *gh;
char d_or_x;
off_t write_offset;
{
FILE *f;
if (write_offset == 0) return 0; <--- add this line
f = open_data_file(gh, d_or_x, OPEN_READ);
---------------------------------------
>Extracting multiple articles by
>specifying something like "~/src/newstuff/foo_*_of_n.sh" will ask if I
>want to create the directory, then ask what to extract, and when I hit
>'*' it will rapidly say it couldn't write each of the articles --
There is some strange intereference between the * in file names and
the save multiple files '*' which I haven't figured out yet. But I
acknowledge the problem (although I'm not sure I can reproduce it).
--
Kim F. Storm storm@texas.dk Tel +45 429 174 00
Texas Instruments, Marielundvej 46E, DK-2730 Herlev, Denmark
No news is good news, but nn is better!
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