Thread View: news.software.nntp
25 messages
25 total messages
Started by Lukas Wunner
Thu, 27 Mar 1997 00:00
Duplicate articles with INN (bug?)
Author: Lukas Wunner
Date: Thu, 27 Mar 1997 00:00
Date: Thu, 27 Mar 1997 00:00
36 lines
2222 bytes
2222 bytes
I am having strange problems here with INN 1.5.1 feeding duplicate articles to downstream UUCP sites. Until recently, I only had a single upstream all.all newsfeed, with incoming articles being relayed to a number of downstream UUCP newsfeeds. Two days ago, a second upstream newsfeed was added. Ever since, UUCP newsfeeding seems to have gone berserk. First of all, I am now feeding 640 MB of news to my downstream newsfeeds (according to news.daily); until two days ago, I only fed 250-350 MBs to my UUCP users. Secondly, one of my users has told me that he is now getting hundreds of duplicate articles from me. Again, my suspicion is that this is related to the second upstream newsfeed I now receive. According to my understanding of how INN works, this should never happen. When being offerend an article by feed #1, INN will take it; now when feed #2 offers this same article as well, INN will look the Message-ID up in the history, it will find the message and signal "no" to the upstream newsfeed. The article will not be received a second time, and it will thusly not be spooled a second time to the downstream newsfeeds. It is a mystery to me why INN shows that strange behaviour described. Can anyone offer help on this topic? I can't think of a logical explanation, really. Any help is greatly appreciated. I am running INN 1.5.1 with Taylor UUCP 1.06.1 on FreeBSD 2.1.6. My upstream newsfeed #1 uses innxmit with streaming, the new newsfeed I installed two days ago uses nntplink. (uhm...could that be related to nntplink by any chance??) Again, thanks in advance, Lukas.
Re: Duplicate articles with INN (bug?)
Author: Lukas Wunner
Date: Fri, 28 Mar 1997 00:00
Date: Fri, 28 Mar 1997 00:00
28 lines
1575 bytes
1575 bytes
lukas@phoenix.tp1.ruhr-uni-bochum.de (Lukas Wunner) writes: >Two days ago, a second upstream newsfeed was added. Ever since, >UUCP newsfeeding seems to have gone berserk. First of all, I am >now feeding 640 MB of news to my downstream newsfeeds (according >to news.daily); [...] The cause for the 640 MB of UUCP traffic has been discovered, so this is a different issue. However, I have found out to my great surprise that there are indeed numerous articles listed several times in my history file: bash$ expand history | cut -d" " -f1 | sort | uniq -c 2 <#1PNWFuO8GA.133@uppssnewspub05.moswest.msn.net> 2 <00029580@ai.inka.de> 2 <000ardg61@merino.satlink.net> 2 <199703211159.a17744@kr.maus.de> [...] There are 4413 duplicate articles in the history! Any ideas? What might be causing this?! I am using INN 1.5.1 under FreeBSD 2.1.6 without MMAP. Thanks for any help, Lukas.
Re: Duplicate articles with INN (bug?)
Author: Nick S Bensema
Date: Sat, 29 Mar 1997 00:00
Date: Sat, 29 Mar 1997 00:00
21 lines
1648 bytes
1648 bytes
In article <5hkgsq$5ah@stronghold.dhp.com>, the one and only real true kibo <kibo@dhp.com> wrote: >-----BEGIN PGP SIGNED MESSAGE----- > >On Sat, 29 Mar 1997 09:24:05 +0100 in article <Pine.BSF.3.95q.970329091054.516B-100000@flaming-bully.bofh.radio.cz> posted to news.software.nntp, Barry Boursyma <boursy@Radio.CZ> wrote: > > > >"boursy" is a registered trademark of kibo. All rights reserved. > > >Cease and desist, asshole, or I'll sue you. "trademark" is a registered trademark of Nick Bensema. All rights reserved. Cease and desist, Grubor, or I'll sue you and then call you a bad word.
Re: Duplicate articles with INN (bug?)
Author: Don Lewis
Date: Sat, 29 Mar 1997 00:00
Date: Sat, 29 Mar 1997 00:00
56 lines
2823 bytes
2823 bytes
In article <5hh1f6$64k$1@sun579.rz.ruhr-uni-bochum.de>,
Lukas Wunner <lukas@tp1.ruhr-uni-bochum.de> wrote:
>lukas@phoenix.tp1.ruhr-uni-bochum.de (Lukas Wunner) writes:
>However, I have found out to my great surprise that there are indeed
>numerous articles listed several times in my history file:
>
>bash$ expand history | cut -d" " -f1 | sort | uniq -c
> 2 <#1PNWFuO8GA.133@uppssnewspub05.moswest.msn.net>
> 2 <00029580@ai.inka.de>
> 2 <000ardg61@merino.satlink.net>
> 2 <199703211159.a17744@kr.maus.de>
>[...]
>
>There are 4413 duplicate articles in the history! Any ideas?
>What might be causing this?! I am using INN 1.5.1 under FreeBSD 2.1.6
>without MMAP.
ACK! I've got 59K message-ID's that are duplicated!
news: {1950} expand history | cut -d" " -f1 | sort | uniq -c | grep -v ' 1 ' | sort -n > /tmp/dup
news: {1951} head /tmp/dup
2 <"16jWNC.A.zJH.4pMMz"@bounty>
2 <"1s2qz.A.M5G.SQ3Kz"@bounty>
2 <"4q2gdB.A.lzH.aD4Kz"@bounty>
2 <"7nqmJD.A.a7H.dJ4Kz"@bounty>
2 <"97-03-17-14:43:59.14*RYS"@NCCIBM1.BITNET>
2 <"BZHPYC.A.P5E.-5gMz"@bounty>
2 <"E2mY8.A.98H.pK4Kz"@bounty>
2 <"FgXP-C.A.pKB.0muLz"@bounty>
2 <"HsfrtD.A.cD.KM4Kz"@bounty>
2 <"Q4RUoB.A.l6H.LJ4Kz"@bounty>
news: {1952} tail /tmp/dup
4 <332e65e2.0@news.alink.com>
4 <333C67E7.51B9@dsv.nl>
4 <MPG.da036ed6548a13e9896c3@news.netus.com>
5 <19970315055301.AAA23144@ladder01.news.aol.com>
5 <19970317190201.OAA27889@ladder01.news.aol.com>
5 <3330855f.101388778@news.demon.co.uk>
5 <5gbplc$he4@krypto.zippo.com>
5 <5glm10$f4r@news1-alterdial.uu.net>
5 <5gupu2$84m$1@boris.eden.com>
5 <858464709.12044@dejanews.com>
news: {1953} wc -l /tmp/dup
59580 /tmp/dup
INN 1.5, FreeBSD 2.1.6, w/o MMAP, with a bunch of feeds. I didn't see
any duplicate article files though. It appears that the duplicate history
entries are added when innd rejects articles with "437 Duplicate article"
responses.
--
Don "Truck" Lewis TDK Semiconductor
Internet: Don.Lewis@tsc.tdk.com 138 New Mohawk Road
Phone: +1 916 478-8284 FAX: +1 916 478-8251 Nevada City, CA 95959
Re: Duplicate articles with INN (bug?)
Author: Barry Boursyma
Date: Sat, 29 Mar 1997 00:00
Date: Sat, 29 Mar 1997 00:00
51 lines
2610 bytes
2610 bytes
On 29 Mar 1997, Don Lewis wrote:
> Lukas Wunner <lukas@tp1.ruhr-uni-bochum.de> wrote:
> >However, I have found out to my great surprise that there are indeed
> >numerous articles listed several times in my history file:
> >bash$ expand history | cut -d" " -f1 | sort | uniq -c
> > 2 <#1PNWFuO8GA.133@uppssnewspub05.moswest.msn.net>
> > 2 <00029580@ai.inka.de>
> >[...]
> >There are 4413 duplicate articles in the history! Any ideas?
> ACK! I've got 59K message-ID's that are duplicated!
And out of a 4 million line history file, I only have 71 duplicates,
no more than two of the same Message-ID. I feel... deprived. This is
with INN 1.5b2 (yeah I know I know, go away) under SGI IRIX 6.2 with MMAP.
However, I am using a couple other machines running a hacked 1.4unoff4 to
funnel all the incoming feeds to four sets of connections to this machine,
and those machines' history files contain no duplicate IDs in spite of
handling multiple incoming feeds on both.
> news: {1950} expand history | cut -d" " -f1 | sort | uniq -c | grep -v
' 1 ' | sort -n > /tmp/dup
> news: {1951} head /tmp/dup
> 2 <"16jWNC.A.zJH.4pMMz"@bounty>
> 2 <"1s2qz.A.M5G.SQ3Kz"@bounty>
[...]
> news: {1952} tail /tmp/dup
> 4 <332e65e2.0@news.alink.com>
> 4 <333C67E7.51B9@dsv.nl>
> 4 <MPG.da036ed6548a13e9896c3@news.netus.com>
> 5 <19970315055301.AAA23144@ladder01.news.aol.com>
> 5 <19970317190201.OAA27889@ladder01.news.aol.com>
[...]
> news: {1953} wc -l /tmp/dup
> 59580 /tmp/dup
> INN 1.5, FreeBSD 2.1.6, w/o MMAP, with a bunch of feeds. I didn't see
> any duplicate article files though. It appears that the duplicate history
> entries are added when innd rejects articles with "437 Duplicate article"
> responses.
Barry Bouwsma http://www.dhp.com/~kibo/bouwsmb0.html
Re: Duplicate articles with INN (bug?)
Author: Steinar Haug
Date: Sat, 29 Mar 1997 00:00
Date: Sat, 29 Mar 1997 00:00
24 lines
1471 bytes
1471 bytes
[Don Lewis] | >There are 4413 duplicate articles in the history! Any ideas? | >What might be causing this?! I am using INN 1.5.1 under FreeBSD 2.1.6 | >without MMAP. | | ACK! I've got 59K message-ID's that are duplicated! Same thing here. 160K message-IDs that are duplicated. Never more than two of each though. | INN 1.5, FreeBSD 2.1.6, w/o MMAP, with a bunch of feeds. I didn't see | any duplicate article files though. It appears that the duplicate history | entries are added when innd rejects articles with "437 Duplicate article" | responses. Solaris 2.5.1, INN 1.5.1, MMAP, lots of feeds. Same apparent problem here: No duplicate files, but duplicate history entries added when innd rejects articles with "437 Duplicate article". Steinar Haug, Nethelp consulting, sthaug@nethelp.no
Re: Duplicate articles with INN (bug?)
Author: Per Hedeland
Date: Sun, 30 Mar 1997 00:00
Date: Sun, 30 Mar 1997 00:00
19 lines
1399 bytes
1399 bytes
In article <5hhpre$60$1@news.gv.tsc.tdk.com> gdonl@tsc.tdk.com (Don Lewis) writes: >ACK! I've got 59K message-ID's that are duplicated! [ snip ] >INN 1.5, FreeBSD 2.1.6, w/o MMAP, with a bunch of feeds. I didn't see >any duplicate article files though. It appears that the duplicate history >entries are added when innd rejects articles with "437 Duplicate article" >responses. Hmmm... INN 1.5 with MMAP, a few patches (mostly stuff that's in 1.5.1, nothing that would seem to be related to this), Solaris 2.5.1, three incoming feeds, thousands of "437 Duplicate article" in /var/log/news/news every day - but not a single duplicate Message-ID in history. --Per Hedeland per@erix.ericsson.se
Re: Duplicate articles with INN (bug?)
Author: Darrell Fuhriman
Date: Sun, 30 Mar 1997 00:00
Date: Sun, 30 Mar 1997 00:00
18 lines
1159 bytes
1159 bytes
weaver@psd.k12.co.us.delete.this.to.email.me (Brian Weaver) writes: > I have you all beat.. I have over a million dups.. > expand history |cut -d" " -f1 |sort|uniq -c|wc -l > 1172502 > > what gives? Correct me if I'm wrong, but doesn't this just count all the lines in the history file (after doing a lot of work)? You need to remove any lines that don't begin with "1". Darrell
Re: Duplicate articles with INN (bug?)
Author: Darrell Fuhriman
Date: Sun, 30 Mar 1997 00:00
Date: Sun, 30 Mar 1997 00:00
19 lines
1207 bytes
1207 bytes
weaver@psd.k12.co.us.delete.this.to.email.me (Brian Weaver) writes: > I have you all beat.. I have over a million dups.. > expand history |cut -d" " -f1 |sort|uniq -c|wc -l > 1172502 > > what gives? Correct me if I'm wrong, but doesn't this just count all the lines in the history file (after doing a lot of work)? You need to remove any lines that don't begin with "1" before doing the wc. (or "egrep -c -v '^ *1'") Darrell
Re: Duplicate articles with INN (bug?)
Author: Lukas Wunner
Date: Sun, 30 Mar 1997 00:00
Date: Sun, 30 Mar 1997 00:00
18 lines
1469 bytes
1469 bytes
weaver@psd.k12.co.us.delete.this.to.email.me (Brian Weaver) writes: >I have you all beat.. I have over a million dups.. >expand history |cut -d" " -f1 |sort|uniq -c|wc -l >1172502 >what gives? You probably have several feeds which offer you dozens over dozens of duplicate articles, and you probably haven't rebuilt the history since a couple of months. Both of which isn't at fault of course, rather, INN is. I've been browsing through the code of innd a little, but to no avail as of yet. I'm not too experienced with the innd source I'm afraid. If anyone has found the bug (and I daresay there *is* a bug), please post it here and cc: to inn-bugs@isc.org. Thanx a lot. Lukas.
Re: Duplicate articles with INN (bug?)
Author: Brian Weaver
Date: Sun, 30 Mar 1997 00:00
Date: Sun, 30 Mar 1997 00:00
20 lines
1101 bytes
1101 bytes
I have you all beat.. I have over a million dups.. expand history |cut -d" " -f1 |sort|uniq -c|wc -l 1172502 what gives? -- ------------------------------------------------------------------------ Brian Weaver weaver@psd.k12.co.us UNIX Guru Poudre School District, Ft. Collins, CO. http://www.psd.k12.co.us I'm not totally worthless, I can still serve as a bad example.
Re: Duplicate articles with INN (bug?)
Author: the one and only real true kibo
Date: Sun, 30 Mar 1997 00:00
Date: Sun, 30 Mar 1997 00:00
85 lines
4167 bytes
4167 bytes
-----BEGIN PGP SIGNED MESSAGE-----
On Sat, 29 Mar 1997 09:24:05 +0100 in article <Pine.BSF.3.95q.970329091054.516B-100000@flaming-bully.bofh.radio.cz> posted to news.software.nntp, Barry Boursyma <boursy@Radio.CZ> wrote:
"boursy" is a registered trademark of kibo. All rights reserved.
Cease and desist, asshole, or I'll sue you.
> On 29 Mar 1997, Don Lewis wrote:
> > Lukas Wunner <lukas@tp1.ruhr-uni-bochum.de> wrote:
> > >However, I have found out to my great surprise that there are indeed
> > >numerous articles listed several times in my history file:
> > >bash$ expand history | cut -d" " -f1 | sort | uniq -c
> > > 2 <#1PNWFuO8GA.133@uppssnewspub05.moswest.msn.net>
> > > 2 <00029580@ai.inka.de>
> > >[...]
> > >There are 4413 duplicate articles in the history! Any ideas?
> > ACK! I've got 59K message-ID's that are duplicated!
> And out of a 4 million line history file, I only have 71 duplicates,
> no more than two of the same Message-ID. I feel... deprived. This is
> with INN 1.5b2 (yeah I know I know, go away) under SGI IRIX 6.2 with MMAP.
> However, I am using a couple other machines running a hacked 1.4unoff4 to
> funnel all the incoming feeds to four sets of connections to this machine,
> and those machines' history files contain no duplicate IDs in spite of
> handling multiple incoming feeds on both.
If your INN accepts forged cancels from crimianls like Chris Lewis of Bell North Research
and the Braver twins, then it's badly broken and you shouldn't be surprised when you
get duplkicate message-ids
or when some hackers get root access at your server.
You must disable cancels immediately or your site will be erased.
> > news: {1950} expand history | cut -d" " -f1 | sort | uniq -c | grep -v
> ' 1 ' | sort -n > /tmp/dup
> > news: {1951} head /tmp/dup
> > 2 <"16jWNC.A.zJH.4pMMz"@bounty>
> > 2 <"1s2qz.A.M5G.SQ3Kz"@bounty>
> [...]
> > news: {1952} tail /tmp/dup
> > 4 <332e65e2.0@news.alink.com>
> > 4 <333C67E7.51B9@dsv.nl>
> > 4 <MPG.da036ed6548a13e9896c3@news.netus.com>
> > 5 <19970315055301.AAA23144@ladder01.news.aol.com>
> > 5 <19970317190201.OAA27889@ladder01.news.aol.com>
> [...]
> > news: {1953} wc -l /tmp/dup
> > 59580 /tmp/dup
> > INN 1.5, FreeBSD 2.1.6, w/o MMAP, with a bunch of feeds. I didn't see
> > any duplicate article files though. It appears that the duplicate history
> > entries are added when innd rejects articles with "437 Duplicate article"
> > responses.
Disable cancels or else.
> Barry Bouwsma http://www.dhp.com/~kibo/bouwsmb0.html
I am the only true <A HREF="http://www.dhp.com/~kibo">Kibo</A>.
Finger me for my PGP public key. Check out my home page for the coolest
way to vote on new newsgroup proposals or to issue Usenet cancels.
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
iQCVAwUBMz3GzqlPvImbzLKZAQEnYgP+Pqsu4PNryuDDb/4x+LwK6b+hwF4czPNt
+KyzYHLSyrhU5474HUfTNQ3S1LzVTAabAXpuskNbdolvS/J18436G+3KzPsTWs0c
ERygSbfFkcte4DfEohevZYIghW4Qsce1jfKgQsrtRy/05Lw2o6HHWHBJ2SwOjjBl
HBXYkmiztm8=
=wYha
-----END PGP SIGNATURE-----
Re: Duplicate articles with INN (bug?)
Author: Brian O'Neill
Date: Mon, 31 Mar 1997 00:00
Date: Mon, 31 Mar 1997 00:00
38 lines
1939 bytes
1939 bytes
Frank Durda IV wrote: > Look in dbz/dbz.c and see what DEFSIZE set to. Then > do wc history > > If the number of entries in history is more than the > value of DEFSIZE, your database is at fault and is corrupted. > You have too many articles for the database as compiled. > > If the entry count is more than 60% of the size of DEFSIZE, lookup > speeds are impacted. > > Bump DEFSIZE up to a nice large prime number, about 2.1 times > larger than your current article count. We use: > > #define DEFSIZE 15000017 /*<2>Went beyond 3 million articles*/ > Now this is interesting. The default is set to 120011, with the note: /* 300007 might be better */ Do we really need to increase this? I have over 3M entries. I don't appear to have a corrupted database. Incidentally, it seems "makehistory -buv" never completes, so I haven't rebuilt my database in quite a while. this is under Digital UNIX 4.0B. It runs, but never seems to get anything accomplished - the /tmp files don't seem to contain anything. -- ====================================================================== Brian O'Neill - Director of Computing, Computer Science (508) 934-3645 University of Massachusetts Lowell <*> oneill@cs.uml.edu "Did I mention that my nose is on fire and that there are 15 badgers living in my pants?" Marcus, Babylon 5
Re: Duplicate articles with INN (bug?)
Author: Dave Barr
Date: Mon, 31 Mar 1997 00:00
Date: Mon, 31 Mar 1997 00:00
12 lines
891 bytes
891 bytes
In article <5hh1f6$64k$1@sun579.rz.ruhr-uni-bochum.de>,
Lukas Wunner <lukas@tp1.ruhr-uni-bochum.de> wrote:
>bash$ expand history | cut -d" " -f1 | sort | uniq -c
Save a process:
awk -F' ' '{ print $1 }' <history | sort | uniq -c
^--tab
--Dave
Re: Duplicate articles with INN (bug?)
Author: Unknown News Administrator
Date: Mon, 31 Mar 1997 00:00
Date: Mon, 31 Mar 1997 00:00
31 lines
1513 bytes
1513 bytes
gdonl@tsc.tdk.com (Don Lewis) writes: >ACK! I've got 59K message-ID's that are duplicated! > 59580 /tmp/dup Is that all? 8-) I've got: 211923 /tmp/dupes >INN 1.5, FreeBSD 2.1.6, w/o MMAP, with a bunch of feeds. I didn't see >any duplicate article files though. It appears that the duplicate history >entries are added when innd rejects articles with "437 Duplicate article" >responses. Is it possible that this is the result of having some combination of WANT_TRASH and REMEMBER_TRASH? They are both set to DO on my system. I'll try setting WANT to DO and REMEMBER to DONT. INN-1.5.1 with apb patch+Solaris 2.5.1 on a SPARC, just about all possible MMAPing (except for innfeed). -- J. Porter Clark, d/b/a +--+ |oo| The Unknown News Administrator | | news@news.msfc.nasa.gov `^^'
Re: Duplicate articles with INN (bug?)
Author: Per Hedeland
Date: Mon, 31 Mar 1997 00:00
Date: Mon, 31 Mar 1997 00:00
55 lines
2768 bytes
2768 bytes
[ Cc'ed to inn-bugs@isc.org ]
In article <5hp2l9$jqa$1@hammer.msfc.nasa.gov> news@news.msfc.nasa.gov
(Unknown News Administrator) writes:
>gdonl@tsc.tdk.com (Don Lewis) writes:
>
>>INN 1.5, FreeBSD 2.1.6, w/o MMAP, with a bunch of feeds. I didn't see
>>any duplicate article files though. It appears that the duplicate history
>>entries are added when innd rejects articles with "437 Duplicate article"
>>responses.
>
>This does indeed seem to be the problem if REMEMBER_TRASH is set to DO.
Agrees with my observation - I have REMEMBER_TRASH set to DONT, and *no*
duplicates in history.
>Below is a patch that reflects all of the changes I have made to my working
>copy of art.c since INN-1.5.1 came out.
...
> 3. Don't write a history record for articles rejected because they
> are duplicates.
I think the bug is actually in this change in art.c/ARTpost() from
1.4unoff4 to 1.5:
if (error != NULL) {
(void)sprintf(buff, "%d %s", NNTP_REJECTIT_VAL, error);
ARTlog(&Data, ART_REJECT, buff);
+ #if defined(DO_REMEMBER_TRASH)
+ if (Mode == OMrunning && !HISwrite(&Data, ""))
+ syslog(L_ERROR, "%s cant write history %s %m",
+ LogName, Data.MessageID);
+ #endif /* defined(DO_REMEMBER_TRASH) */
ARTreject(buff, article);
return buff;
}
- errors detected previous to this point are of the kind that you
*never* want to save the Message-ID, regardless of the setting of
REMEMBER_TRASH - besides duplicates, these are malformed articles (might
have been mangled in transit, and you could get a good version later
from another feed) or Path:-based shunning (the article may have passed
through the shunned site rather than originated there, and you could
similarly get an "untainted" version later).
I.e. I believe the return from the function here, before the "normal"
DO_REMEMBER_TRASH sections, is quite correct and intentional, and that
the added section should just be removed again.
--Per Hedeland
per@erix.ericsson.se
Re: Duplicate articles with INN (bug?)
Author: Steinar Haug
Date: Mon, 31 Mar 1997 00:00
Date: Mon, 31 Mar 1997 00:00
38 lines
1867 bytes
1867 bytes
[Frank Durda IV] | > Same thing here. 160K message-IDs that are duplicated. Never more than | > two of each though. | | | Look in dbz/dbz.c and see what DEFSIZE set to. Then | do wc history | | If the number of entries in history is more than the | value of DEFSIZE, your database is at fault and is corrupted. | You have too many articles for the database as compiled. | | If the entry count is more than 60% of the size of DEFSIZE, lookup | speeds are impacted. As far as I can see DEFSIZE is only used when initializing the database without supplying any info about size. We have around 4.5 million entries in the history database. The first line of history.dir contains: dbz 3 7050193 9 C 4 3 29 4 0 1 2 3 and it's the second number, 7050193, which is used as the table size (line 1225 in dbz.c: cp->tsize = getno(df, &err);). So I don't believe that DEFSIZE is the problem here. | I was once told that the dbz code automatically dealt with growth | beyond the prime, but in my opinion that code, if present, | doesn't work. Looks to me like it *does* work - this database has grown from zero. Steinar Haug, Nethelp consulting, sthaug@nethelp.no
Re: Duplicate articles with INN (bug?)
Author: Unknown News Administrator
Date: Mon, 31 Mar 1997 00:00
Date: Mon, 31 Mar 1997 00:00
169 lines
6486 bytes
6486 bytes
gdonl@tsc.tdk.com (Don Lewis) writes:
>INN 1.5, FreeBSD 2.1.6, w/o MMAP, with a bunch of feeds. I didn't see
>any duplicate article files though. It appears that the duplicate history
>entries are added when innd rejects articles with "437 Duplicate article"
>responses.
This does indeed seem to be the problem if REMEMBER_TRASH is set to DO.
Below is a patch that reflects all of the changes I have made to my working
copy of art.c since INN-1.5.1 came out. It does three things:
1. Some better checking for bad headers. I didn't come up with this
one and can't seem to remember where it came from. INN-workers list,
maybe?
2. Check hop count *before* checking for path exclusion. Mainly done
as an experiment to see if it would produce a noticeable improvement
in performance. It might, if you have newsfeeds entries with H flags
and looonnng lists of path components to exclude. Really can't hurt.
3. Don't write a history record for articles rejected because they
are duplicates.
I would have separated out and cleaned up these patches, but it's been a
busy day.
*** innd/art.c.orig Tue Dec 17 08:40:40 1996
--- innd/art.c Mon Mar 31 12:02:51 1997
***************
*** 689,696 ****
*errorp = "EOF in headers";
return NULL;
case ':':
! if (colon == NULL)
colon = out;
break;
}
if ((*out++ = *in++) == '\n' && !ISWHITE(*in))
--- 689,701 ----
*errorp = "EOF in headers";
return NULL;
case ':':
! if (colon == NULL) {
colon = out;
+ if (start == colon) {
+ *errorp = "Field without name in header";
+ return NULL;
+ }
+ }
break;
}
if ((*out++ = *in++) == '\n' && !ISWHITE(*in))
***************
*** 1590,1598 ****
--- 1595,1608 ----
/* Too small for the site. */
continue;
+ /*
if ((!sp->IgnorePath && ListHas(hops, sp->Name))
|| (sp->Hops && hopcount > sp->Hops)
|| (sp->Groupcount && Groupcount > sp->Groupcount))
+ */
+ if ((sp->Hops && hopcount > sp->Hops)
+ || (!sp->IgnorePath && ListHas(hops, sp->Name))
+ || (sp->Groupcount && Groupcount > sp->Groupcount))
/* Site already saw the article; path too long; or too much
* cross-posting. */
continue;
***************
*** 1738,1743 ****
--- 1748,1754 ----
char ControlWord[SMBUF];
int ControlHeader;
int oerrno;
+ int adupe;
#if defined(DO_PERL)
char *perlrc;
#endif /* DO_PERL */
***************
*** 1767,1774 ****
Data.TimeReceivedLength = strlen(Data.TimeReceived);
/* A duplicate? */
! if (error == NULL && HIShavearticle(Data.MessageID))
error = "Duplicate article";
/* And now check the path for unwanted sites -- Andy */
for( j = 0 ; ME.Exclusions && ME.Exclusions[j] ; j++ ) {
--- 1778,1788 ----
Data.TimeReceivedLength = strlen(Data.TimeReceived);
/* A duplicate? */
! adupe = 0;
! if (error == NULL && HIShavearticle(Data.MessageID)) {
error = "Duplicate article";
+ adupe = 1;
+ }
/* And now check the path for unwanted sites -- Andy */
for( j = 0 ; ME.Exclusions && ME.Exclusions[j] ; j++ ) {
***************
*** 1784,1792 ****
(void)sprintf(buff, "%d %s", NNTP_REJECTIT_VAL, error);
ARTlog(&Data, ART_REJECT, buff);
#if defined(DO_REMEMBER_TRASH)
! if (Mode == OMrunning && !HISwrite(&Data, ""))
! syslog(L_ERROR, "%s cant write history %s %m",
! LogName, Data.MessageID);
#endif /* defined(DO_REMEMBER_TRASH) */
ARTreject(buff, article);
return buff;
--- 1798,1808 ----
(void)sprintf(buff, "%d %s", NNTP_REJECTIT_VAL, error);
ARTlog(&Data, ART_REJECT, buff);
#if defined(DO_REMEMBER_TRASH)
! if (adupe == 0) {
! if (Data.MessageID && Mode == OMrunning && !HISwrite(&Data, ""))
! syslog(L_ERROR, "%s cant write history %s %m",
! LogName, Data.MessageID);
! }
#endif /* defined(DO_REMEMBER_TRASH) */
ARTreject(buff, article);
return buff;
***************
*** 1799,1805 ****
syslog(L_NOTICE, "rejecting[perl] %s %s", HDR(_message_id), buff);
ARTlog(&Data, ART_REJECT, buff);
#if defined(DO_REMEMBER_TRASH)
! if (Mode == OMrunning && !HISwrite(&Data, ""))
syslog(L_ERROR, "%s cant write history %s %m",
LogName, Data.MessageID);
#endif /* defined(DO_REMEMBER_TRASH) */
--- 1815,1821 ----
syslog(L_NOTICE, "rejecting[perl] %s %s", HDR(_message_id), buff);
ARTlog(&Data, ART_REJECT, buff);
#if defined(DO_REMEMBER_TRASH)
! if (Data.MessageID && Mode == OMrunning && !HISwrite(&Data, ""))
syslog(L_ERROR, "%s cant write history %s %m",
LogName, Data.MessageID);
#endif /* defined(DO_REMEMBER_TRASH) */
***************
*** 1843,1849 ****
buff);
ARTlog(&Data, ART_REJECT, buff);
#if defined(DO_REMEMBER_TRASH)
! if (Mode == OMrunning && !HISwrite(&Data, ""))
syslog(L_ERROR, "%s cant write history %s %m",
LogName, Data.MessageID);
#endif /* defined(DO_REMEMBER_TRASH) */
--- 1859,1865 ----
buff);
ARTlog(&Data, ART_REJECT, buff);
#if defined(DO_REMEMBER_TRASH)
! if (Data.MessageID && Mode == OMrunning && !HISwrite(&Data, ""))
syslog(L_ERROR, "%s cant write history %s %m",
LogName, Data.MessageID);
#endif /* defined(DO_REMEMBER_TRASH) */
--
J. Porter Clark, d/b/a
+--+
|oo| The Unknown News Administrator
| | news@news.msfc.nasa.gov
`^^'
Re: Duplicate articles with INN (bug?)
Author: Ian Stirling
Date: Mon, 31 Mar 1997 00:00
Date: Mon, 31 Mar 1997 00:00
26 lines
2237 bytes
2237 bytes
Dave Barr (barr@math.psu.edu) wrote:
: In article <5hh1f6$64k$1@sun579.rz.ruhr-uni-bochum.de>,
: Lukas Wunner <lukas@tp1.ruhr-uni-bochum.de> wrote:
: >bash$ expand history | cut -d" " -f1 | sort | uniq -c
:
: Save a process:
:
: awk -F' ' '{ print $1 }' <history | sort | uniq -c
: ^--tab
Save more
awk -F\\t ' '{a[$1]++}END{for(x in a)if(a[x]!="1")print x " "a[x]}' history
: --Dave
--
Ian Stirling. Currently designing a new PDA, see homepage.
Homepage: http://www.mauve.demon.co.uk/
From "
I teach advanced trig and beginning calculus at VPI. On a recent exam,
I asked students to find the limit of the fraction (sin x)/n, as n
approaches infinity. One unfortunate student canceled the "n"'s, and
found that (sin x)/n = six. "
Re: Duplicate articles with INN (bug?)
Author: Frank Durda IV
Date: Mon, 31 Mar 1997 00:00
Date: Mon, 31 Mar 1997 00:00
46 lines
2215 bytes
2215 bytes
> [Don Lewis]
>There are 4413 duplicate articles in the history! Any ideas?
>What might be causing this?! I am using INN 1.5.1 under FreeBSD 2.1.6
>without MMAP.
>ACK! I've got 59K message-ID's that are duplicated!
> Steinar Haug wrote:
> Same thing here. 160K message-IDs that are duplicated. Never more than
> two of each though.
Look in dbz/dbz.c and see what DEFSIZE set to. Then
do wc history
If the number of entries in history is more than the
value of DEFSIZE, your database is at fault and is corrupted.
You have too many articles for the database as compiled.
If the entry count is more than 60% of the size of DEFSIZE, lookup
speeds are impacted.
Bump DEFSIZE up to a nice large prime number, about 2.1 times
larger than your current article count. We use:
#define DEFSIZE 15000017 /*<2>Went beyond 3 million articles*/
and it took care of the problem for us a long time ago. Don't
set the value insanely high, just high enough so you won't
bump into it anytime soon.
You will have to rebuild your history database and don't
let makehistory use the old .dir file as a template.
I was once told that the dbz code automatically dealt with growth
beyond the prime, but in my opinion that code, if present,
doesn't work.
Frank Durda IV <uhclem@nemesis.lonestar.org>|"I'm sorry Dave, but I have
or uhclem%nemesis@rwsystr.nkn.net | deleted Windows '95 from the entire system."
| - What A. C. Clarke claims he would have
or ...letni!rwsys!nemesis!uhclem | HAL say if he was writing 2001 today.
(c) 1997, ask before reprinting.
Re: Duplicate articles with INN (bug?)
Author: J. Porter Clark
Date: Tue, 01 Apr 1997 00:00
Date: Tue, 01 Apr 1997 00:00
40 lines
2376 bytes
2376 bytes
per@erix.ericsson.se (Per Hedeland) writes: >In article <5hrb48$17p$1@hammer.msfc.nasa.gov> news@news.msfc.nasa.gov >(Unknown News Administrator) writes: >> * newsgroup exclusion from hosts.nntp >Are you thinking of something like articles in "internal" groups leaking >out and coming back in again before being received from an "appropriate" >server? Guess that's worth considering, but not too much:-) - if you >refuse external posts to those groups, it's probably a Really Bad Thing >if they leak, so you'd want to fix that. 2 cases: * The one you mention (and leaks are sometimes awfully hard to fix) * Various mail-to-news gateways. For example, sometimes an article with a Message-ID of <X> will come in on info.* from one feeder and mail.* from another. I might like to exclude mail.* from the second feeder, but if the article is offered by the mail.* feeder first, it will be remembered as being trash and never taken on the info.* feed. This is, of course, a case of two different messages with the same Message-ID, which shouldn't be allowed to happen but does in the real world, unfortunately. >Also it gets a bit messy to carry this through - e.g. currently if you >get an article crossposted to a hosts.nntp-excluded group and another >(existing) one, I believe it will get filed in the latter only - to deal >with the above, you should not file it at all (and not remember it), >which would probably be wrong for some other cases... Ah, well, to heck with it, then... -- J. Porter Clark jpc@drum.msfc.nasa.gov NASA/MSFC Flight Data Systems Branch
Re: Duplicate articles with INN (bug?)
Author: Per Hedeland
Date: Tue, 01 Apr 1997 00:00
Date: Tue, 01 Apr 1997 00:00
35 lines
2080 bytes
2080 bytes
In article <5hrb48$17p$1@hammer.msfc.nasa.gov> news@news.msfc.nasa.gov (Unknown News Administrator) writes: >I believe that the following errors should not be "remembered": > > * mangled articles > * path exclusion from the ME entry (Path:-based shunning) OK... > * newsgroup exclusion from hosts.nntp Are you thinking of something like articles in "internal" groups leaking out and coming back in again before being received from an "appropriate" server? Guess that's worth considering, but not too much:-) - if you refuse external posts to those groups, it's probably a Really Bad Thing if they leak, so you'd want to fix that. Also it gets a bit messy to carry this through - e.g. currently if you get an article crossposted to a hosts.nntp-excluded group and another (existing) one, I believe it will get filed in the latter only - to deal with the above, you should not file it at all (and not remember it), which would probably be wrong for some other cases... > * some others I can't think of right now 8-) Duplicates?:-) Anyway we agree that mangled articles and ME exclusions shouldn't be remembered, and those (and duplicates of course) are the ones that the added section in 1.5 caused to be remembered - non-remembering others would be an enhancement, not a bug fix.:-) --Per Hedeland per@erix.ericsson.se
Re: Duplicate articles with INN (bug?)
Author: Unknown News Administrator
Date: Tue, 01 Apr 1997 00:00
Date: Tue, 01 Apr 1997 00:00
36 lines
2007 bytes
2007 bytes
per@erix.ericsson.se (Per Hedeland) writes: >- errors detected previous to this point are of the kind that you >*never* want to save the Message-ID, regardless of the setting of >REMEMBER_TRASH - besides duplicates, these are malformed articles (might >have been mangled in transit, and you could get a good version later >from another feed) or Path:-based shunning (the article may have passed >through the shunned site rather than originated there, and you could >similarly get an "untainted" version later). I believe that the following errors should not be "remembered": * mangled articles * path exclusion from the ME entry (Path:-based shunning) * newsgroup exclusion from hosts.nntp * some others I can't think of right now 8-) I'm uncertain as to whether error returns from perl-filtering or tcl-filtering should be "remembered." I can think of examples either way. >I.e. I believe the return from the function here, before the "normal" >DO_REMEMBER_TRASH sections, is quite correct and intentional, and that >the added section should just be removed again. Haven't tried it, but I will. -- J. Porter Clark, d/b/a +--+ |oo| The Unknown News Administrator | | news@news.msfc.nasa.gov `^^'
Re: Duplicate articles with INN (bug?)
Author: Richard Todd
Date: Tue, 01 Apr 1997 00:00
Date: Tue, 01 Apr 1997 00:00
33 lines
1799 bytes
1799 bytes
news@news.msfc.nasa.gov (Unknown News Administrator) writes: > I believe that the following errors should not be "remembered": > > * mangled articles Agreed. > * path exclusion from the ME entry (Path:-based shunning) Hmm. I can think of arguments either way for this one. But it doesn't matter a lot, since... > I'm uncertain as to whether error returns from perl-filtering or > tcl-filtering should be "remembered." I can think of examples either > way. And since one can think of reasons why one might want the tcl filter to cause the article to be logged into history or not, this should be a feature *controllable* by the tcl filter. I've got some hacks to the tcl filter code that do this (make the 'remembering' of the article settable by the tcl filter code), but it's a gross hack (right now I'm keying on the presence or absence of a certain key substring in the string returned by the tcl procedure --- I *told* you it was gross). The Right Way would probably be to have a variable that the tcl filter could set and the code in art.c could check afterwards, but that required more delving into the Tcl manual than I wanted to do the night I did this hackery.
Re: Duplicate articles with INN (bug?)
Author: Kjetil Torgrim Homme
Date: Wed, 02 Apr 1997 00:00
Date: Wed, 02 Apr 1997 00:00
18 lines
981 bytes
981 bytes
[Dave Barr]
| > bash$ expand history | cut -d" " -f1 | sort | uniq -c
|
| Save a process:
|
| awk -F' ' '{ print $1 }' <history | sort | uniq -c
| ^--tab
Well, the default delimiter in cut is in fact TAB, so
cut -f1 history | sort | uniq -dc > /tmp/dups
should do the trick.
Kjetil T.
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