[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] Re: How to debug missing (not-fetched)



Reiner Steib schrieb am 2003-08-28:

> On Fri, Aug 15 2003, Matthias Andree wrote:
> 
> > Reiner Steib schrieb am 2003-08-14:
> >
> >> [...]: gnus.gnus-bug: last seen article was 51187, server now has 22998 - 51181
> >> [...]: gnus.gnus-bug: switched upstream servers? 51187 > 51181
> >> [...]: gnus.gnus-bug: considering 28184 articles 22998 - 51181, using XOVER
> >
> > That's rather violent. "Initialfetch" should apply in these cases, but
> > it's not set by default. Try initialfetch=500 or something.
> 
> I added initialfetch after your message.  But now it happened again.

quimby.gnus.org? LarsI's box? Complain to him... even if a spam cancel
removes "the most recent articles" from the group (with the highest
numbers), the high number must not be adjusted downwards.

Seems like your upstream server is hosed and loses messages. If it's
news.gmane.org, get a foulish fish and beat Lars and should he use
tradspooled/tradindexed or something, he'd better update INN (2.3.4 is
the earliest that's good enough to survive a day or two).

> gnus.gnus-bug: switched upstream servers? 51255 > 51248

leafnode tolerates a decrease of 5; see fetchnews.c near line 674 
that reads:

        if (*first > (*last + 5)) {

> gnus.gnus-bug: considering 28251 articles 22998 - 51248, using XOVER
> article 22998 <m0skRHT-00013tC@xxxxxxxxxxxx> rejected by filter (XOVER)
> [...]
> article 51248 <E19sM5j-0006ne-00@xxxxxxxxxxxxxxx> rejected by filter (XOVER)

As to initialfetch, there was a bug. Patch against 20030814a below,
feedback solicited. The patch also doubles the tolerance to 10 articles.

Index: fetchnews.c
===================================================================
RCS file: /var/CVS/leafnode-2/fetchnews.c,v
retrieving revision 1.124
diff -u -r1.124 fetchnews.c
--- fetchnews.c	14 Aug 2003 00:09:07 -0000	1.124
+++ fetchnews.c	28 Aug 2003 16:43:05 -0000
@@ -667,20 +667,25 @@
     }
 
     if (*first > *last + 1) {
+	const long maximum_decrease = 10;
+	
 	ln_log(LNLOG_SINFO, LNLOG_CGROUP,
 	       "%s: last seen %s was %lu, server now has %lu - %lu",
 	       g->name, delaybody_this_group ? "header" : "article",
 	       *first, window, *last);
-	if (*first > (*last + 5)) {
+	if (*first > (*last + maximum_decrease)) {
 	    ln_log(LNLOG_SINFO, LNLOG_CGROUP,
-		   "%s: switched upstream servers? %lu > %lu",
+		   "%s: switched upstream servers? upstream bug? %lu > %lu",
 		   g->name, *first, *last);
 	    *first = window;	/* check all upstream articles again */
+	    if ((initiallimit) && (*last - *first > initiallimit))
+		*first = *last - initiallimit + 1;
 	} else {
 	    ln_log(LNLOG_SINFO, LNLOG_CGROUP,
-		   "%s: rampant spam cancel? %lu > %lu",
+		   "%s: rampant spam cancel? upstream bug? %lu > %lu",
 		   g->name, *first - 1, *last);
-	    *first = *last - 5;	/* re-check last five upstream articles */
+	    *first = *last - maximum_decrease; /* re-check last N
+						  upstream articles */
 	}
     }
     if (initiallimit && (*first == 1) && (*last - *first > initiallimit)) {

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list