Author: kwright
Date: Tue Mar 20 02:53:14 2012
New Revision: 1302762
URL: http://svn.apache.org/viewvc?rev=1302762&view=rev
Log:
Fix for CONNECTORS-429.
Modified:
incubator/lcf/trunk/CHANGES.txt
incubator/lcf/trunk/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java
Modified: incubator/lcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/CHANGES.txt?rev=1302762&r1=1302761&r2=1302762&view=diff
==============================================================================
--- incubator/lcf/trunk/CHANGES.txt (original)
+++ incubator/lcf/trunk/CHANGES.txt Tue Mar 20 02:53:14 2012
@@ -3,9 +3,13 @@ $Id$
======================= 0.5-dev =====================
+CONNECTORS-429: Check for the 'no process at end of pipe' condition
+in the JCIFS connector.
+(T.Akagi, Karl Wright)
+
CONNECTORS-428: Include LICENSE.txt file mention of the IPA license
for Japanese PDF documentation fonts.
-(Karl Wright
+(Karl Wright)
CONNECTORS-425: Elastic Search documentation missing images
(Piergiorgio Lucidi)
Modified: incubator/lcf/trunk/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java?rev=1302762&r1=1302761&r2=1302762&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java
(original)
+++ incubator/lcf/trunk/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java
Tue Mar 20 02:53:14 2012
@@ -1194,6 +1194,13 @@ public class SharedDriveConnector extend
throw new ServiceInterruption("Timeout or other service interruption: "+se.getMessage(),se,currentTime
+ 300000L,
currentTime + 3 * 60 * 60000L,-1,false);
}
+ else if(se.getMessage().indexOf("No process is on the other end of the pipe") != -1)
+ {
+ Logging.connectors.warn("JCIFS: 'No process is on the other end of the pipe' response
when "+activity+" for "+documentIdentifier+": retrying...",se);
+ // 'No process is on the other end of the pipe' skip the document and keep going
+ throw new ServiceInterruption("Timeout or other service interruption: "+se.getMessage(),se,currentTime
+ 300000L,
+ currentTime + 3 * 60 * 60000L,-1,false);
+ }
else if (se.getMessage().indexOf("cannot find") != -1 || se.getMessage().indexOf("cannot
be found") != -1)
{
return;
|