Author: jnioche
Date: Wed Jan  6 17:08:17 2010
New Revision: 896545

URL: http://svn.apache.org/viewvc?rev=896545&view=rev
Log:
NUTCH-658 : small fix + renamed status value Exception into 
AboveExceptionThresholdInQueue

Modified:
    lucene/nutch/trunk/src/java/org/apache/nutch/fetcher/Fetcher.java

Modified: lucene/nutch/trunk/src/java/org/apache/nutch/fetcher/Fetcher.java
URL: 
http://svn.apache.org/viewvc/lucene/nutch/trunk/src/java/org/apache/nutch/fetcher/Fetcher.java?rev=896545&r1=896544&r2=896545&view=diff
==============================================================================
--- lucene/nutch/trunk/src/java/org/apache/nutch/fetcher/Fetcher.java (original)
+++ lucene/nutch/trunk/src/java/org/apache/nutch/fetcher/Fetcher.java Wed Jan  
6 17:08:17 2010
@@ -717,7 +717,8 @@
               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:          // retry
               case ProtocolStatus.BLOCKED:


Reply via email to