Author: otis
Date: Wed Apr  9 11:51:32 2008
New Revision: 646481

URL: http://svn.apache.org/viewvc?rev=646481&view=rev
Log:
- Log an Exception, esp. since 'it should never happen'

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

Modified: lucene/nutch/trunk/src/java/org/apache/nutch/fetcher/Fetcher2.java
URL: 
http://svn.apache.org/viewvc/lucene/nutch/trunk/src/java/org/apache/nutch/fetcher/Fetcher2.java?rev=646481&r1=646480&r2=646481&view=diff
==============================================================================
--- lucene/nutch/trunk/src/java/org/apache/nutch/fetcher/Fetcher2.java 
(original)
+++ lucene/nutch/trunk/src/java/org/apache/nutch/fetcher/Fetcher2.java Wed Apr  
9 11:51:32 2008
@@ -76,7 +76,7 @@
  * queues may return eligible items or null if for "politeness" reasons this
  * host's queue is not yet ready.
  * 
- * <p>If there are still unfetched items on the queues, but none of the items
+ * <p>If there are still unfetched items in the queues, but none of the items
  * are ready, FetcherThread-s will spin-wait until either some items become
  * available, or a timeout is reached (at which point the Fetcher will abort,
  * assuming the task is hung).
@@ -247,7 +247,7 @@
         it = queue.remove(0);
         inProgress.add(it);
       } catch (Exception e) {
-        
+        LOG.error("Cannot remove FetchItem from queue or cannot add it to 
inProgress queue", e);
       }
       return it;
     }
@@ -471,7 +471,7 @@
               try {
                 Thread.sleep(500);
               } catch (Exception e) {}
-              spinWaiting.decrementAndGet();
+                spinWaiting.decrementAndGet();
               continue;
             } else {
               // all done, finish this thread


Reply via email to