manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1741619 - in /manifoldcf/trunk: CHANGES.txt connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java
Date Fri, 29 Apr 2016 12:25:48 GMT
Author: kwright
Date: Fri Apr 29 12:25:47 2016
New Revision: 1741619

URL: http://svn.apache.org/viewvc?rev=1741619&view=rev
Log:
Fix for CONNECTORS-1305.

Modified:
    manifoldcf/trunk/CHANGES.txt
    manifoldcf/trunk/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java

Modified: manifoldcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/CHANGES.txt?rev=1741619&r1=1741618&r2=1741619&view=diff
==============================================================================
--- manifoldcf/trunk/CHANGES.txt (original)
+++ manifoldcf/trunk/CHANGES.txt Fri Apr 29 12:25:47 2016
@@ -2,6 +2,11 @@ ManifoldCF Change Log
 $Id$
 
 ======================= 2.5-dev =====================
+
+CONNECTORS-1305: Skip documents that get server-side resource
+problems in JCIFS connector.
+(Konstantin Avdeev, Karl Wright)
+
 CONNECTORS-1189: Fix SearchBlox's test cases so that they don't depend on JDK hash order.
 (Naveen.A.N, Ahmet Arslan)
 

Modified: manifoldcf/trunk/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java?rev=1741619&r1=1741618&r2=1741619&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java
(original)
+++ manifoldcf/trunk/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java
Fri Apr 29 12:25:47 2016
@@ -1075,6 +1075,14 @@ public class SharedDriveConnector extend
               errorDesc = "Not found: "+se.getMessage();
               activities.noDocument(documentIdentifier, versionString);
             }
+            else if (se.getMessage().indexOf("0xC0000205") != -1)
+            {
+              Logging.connectors.warn("JCIFS: Out of resources exception reading document/directory
"+documentIdentifier+" - skipping");
+              // We call the delete even if it's a directory; this is harmless and it cleans
up the jobqueue row.
+              errorCode = se.getClass().getSimpleName().toUpperCase(Locale.ROOT);
+              errorDesc = "Resources: "+se.getMessage();
+              activities.noDocument(documentIdentifier, versionString);
+            }
             else if (se.getMessage().indexOf("is denied") != -1)
             {
               Logging.connectors.warn("JCIFS: Access exception reading document/directory
"+documentIdentifier+" - skipping");



Mime
View raw message