Apache Nutch is an extensible and scalable web crawler
NUTCH-658 : small fix + renamed status value Exception into AboveExceptionThresholdInQueue
Julien Nioche611980d761c5
diff --git a/src/java/org/apache/nutch/fetcher/Fetcher.java b/src/java/org/apache/nutch/fetcher/Fetcher.javaindex 3d8ded042..412c80321 100644--- a/src/java/org/apache/nutch/fetcher/Fetcher.java+++ b/src/java/org/apache/nutch/fetcher/Fetcher.java@@ -717,7 +717,8 @@ public class Fetcher extends Configured implements Tool,case ProtocolStatus.EXCEPTION:logError(fit.url, status.getMessage());int killedURLs = fetchQueues.checkExceptionThreshold(fit.getQueueID());- reporter.incrCounter("FetcherStatus", "Exceptions", killedURLs);+ if (killedURLs!=0)+ reporter.incrCounter("FetcherStatus", "AboveExceptionThresholdInQueue", killedURLs);/* FALLTHROUGH */case ProtocolStatus.RETRY: // retrycase ProtocolStatus.BLOCKED: