manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r916654 - /incubator/lcf/trunk/modules/connectors/livelink/connector/org/apache/lcf/crawler/connectors/livelink/LivelinkConnector.java
Date Fri, 26 Feb 2010 12:02:19 GMT
Author: kwright
Date: Fri Feb 26 12:02:19 2010
New Revision: 916654

URL: http://svn.apache.org/viewvc?rev=916654&view=rev
Log:
Fix for bug discovered at MetaCarta: Some Livelink systems return 103102 errors, not 103101
errors, when a deleted document is accessed.

Modified:
    incubator/lcf/trunk/modules/connectors/livelink/connector/org/apache/lcf/crawler/connectors/livelink/LivelinkConnector.java

Modified: incubator/lcf/trunk/modules/connectors/livelink/connector/org/apache/lcf/crawler/connectors/livelink/LivelinkConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/livelink/connector/org/apache/lcf/crawler/connectors/livelink/LivelinkConnector.java?rev=916654&r1=916653&r2=916654&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/livelink/connector/org/apache/lcf/crawler/connectors/livelink/LivelinkConnector.java
(original)
+++ incubator/lcf/trunk/modules/connectors/livelink/connector/org/apache/lcf/crawler/connectors/livelink/LivelinkConnector.java
Fri Feb 26 12:02:19 2010
@@ -2641,20 +2641,10 @@
           Logging.connectors.debug("Livelink: Status retrieved for "+Integer.toString(vol)+":"+Integer.toString(id)+":
status="+Integer.toString(status));
         }
 
-        if (status == 103101)
+        // Treat both 103101 and 103102 as 'object not found'.
+        if (status == 103101 || status == 103102)
           return;
 
-        // Status 103102 indicates that we could not retrieve the object contents, even though
we could find the object.  I think it is safe to treat this as a
-        // ServiceInterruption.
-        if (status == 103102)
-        {
-          Logging.connectors.warn("Livelink: Interpreting LAPI error 103102 while fetching
object "+Integer.toString(vol)+":"+Integer.toString(id)+" as a service interruption - retrying.");
-          long currentTime = System.currentTimeMillis();
-          throw new ServiceInterruption("Service interruption fetching object "+Integer.toString(vol)+":"+Integer.toString(id),
-            new LCFException("Could not read object "+Integer.toString(vol)+":"+Integer.toString(id)),currentTime+60000L,
-            currentTime+600000L,-1,false);
-        }
-
         // This error means we don't have permission to get the object's status, apparently
         if (status < 0)
         {



Mime
View raw message