accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1458976 - /accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/gc/SimpleGarbageCollector.java
Date Wed, 20 Mar 2013 17:46:52 GMT
Author: ecn
Date: Wed Mar 20 17:46:52 2013
New Revision: 1458976

URL: http://svn.apache.org/r1458976
Log:
ACCUMULO-1153 do not bother warning about directories we know may not exist

Modified:
    accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/gc/SimpleGarbageCollector.java

Modified: accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/gc/SimpleGarbageCollector.java
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/gc/SimpleGarbageCollector.java?rev=1458976&r1=1458975&r2=1458976&view=diff
==============================================================================
--- accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/gc/SimpleGarbageCollector.java
(original)
+++ accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/gc/SimpleGarbageCollector.java
Wed Mar 20 17:46:52 2013
@@ -654,10 +654,14 @@ public class SimpleGarbageCollector impl
               String parts[] = delete.split("/");
               if (parts.length > 1) {
                 String tableId = parts[1];
+                String tabletDir = parts[2];
                 TableManager.getInstance().updateTableStateCache(tableId);
                 TableState tableState = TableManager.getInstance().getTableState(tableId);
-                if (tableState != null && tableState != TableState.DELETING)
-                  log.warn("File doesn't exist: " + p);
+                if (tableState != null && tableState != TableState.DELETING) {
+                  // clone directories don't always exist
+                  if (!tabletDir.startsWith("c-"))
+                    log.warn("File doesn't exist: " + p);
+                }
               } else {
                 log.warn("Very strange path name: " + delete);
               }



Mime
View raw message