Apache Nutch is an extensible and scalable web crawler
NUTCH-2947 Fetcher: keep state of empty but stateful fetch queues - also keep state if `fetcher.exceptions.per.queue.delay` > 0.0
Sebastian Nagel8cfa53f7db59
diff --git a/src/java/org/apache/nutch/fetcher/FetchItemQueues.java b/src/java/org/apache/nutch/fetcher/FetchItemQueues.javaindex 9de978e12..9dfbeb277 100644--- a/src/java/org/apache/nutch/fetcher/FetchItemQueues.java+++ b/src/java/org/apache/nutch/fetcher/FetchItemQueues.java@@ -187,8 +187,10 @@ public class FetchItemQueues {if (!feederAlive) {// no more fetch items addedit.remove();- } else if (maxExceptionsPerQueue > -1 && fiq.exceptionCounter.get() > 0) {+ } else if ((maxExceptionsPerQueue > -1 || exceptionsPerQueueDelay > 0)+ && fiq.exceptionCounter.get() > 0) {// keep queue because the exceptions counter is bound to it+ // and is required to skip or delay items on this queue} else if (fiq.nextFetchTime.get() > System.currentTimeMillis()) {// keep queue to have it blocked in case new fetch items of this queue// are added by the QueueFeeder