manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1655618 - /manifoldcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java
Date Thu, 29 Jan 2015 12:30:10 GMT
Author: kwright
Date: Thu Jan 29 12:30:10 2015
New Revision: 1655618

URL: http://svn.apache.org/r1655618
Log:
First part of CONNECTORS-1154 fix.

Modified:
    manifoldcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java

Modified: manifoldcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java?rev=1655618&r1=1655617&r2=1655618&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java
(original)
+++ manifoldcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java
Thu Jan 29 12:30:10 2015
@@ -959,7 +959,7 @@ public class ThrottledFetcher
     {
       if (statusCode > 0)
       {
-        throwable = new ManifoldCFException("Interrupted: "+e.getMessage(),e);
+        throwable = new ManifoldCFException("Fetch interrupted: "+e.getMessage(),e);
         statusCode = FETCH_INTERRUPTED;
       }
     }
@@ -1079,8 +1079,8 @@ public class ThrottledFetcher
           currentTime + 720L * 60000L,-1,false);
       }
       long currentTime = System.currentTimeMillis();
-      Logging.connectors.debug("Web: IO exception "+activity+" for '"+myUrl+"', retrying");
-      throw new ServiceInterruption("IO exception "+activity+": "+e.getMessage(),e,currentTime+TIME_5MIN,-1L,2,false);
+      Logging.connectors.debug("Web: IO exception ("+e.getClass().getName()+")"+activity+"
for '"+myUrl+"', retrying",e);
+      throw new ServiceInterruption("IO exception ("+e.getClass().getName()+")"+activity+":
"+e.getMessage(),e,currentTime+TIME_5MIN,-1L,2,false);
     }
 
   }



Mime
View raw message