accumulo-commits mailing list archives

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

URL: http://svn.apache.org/r1458978
Log:
ACCUMULO-1153 guard against an index-out-of-bounds exception

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=1458978&r1=1458977&r2=1458978&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:50:20 2013
@@ -652,7 +652,7 @@ public class SimpleGarbageCollector impl
                 ++status.current.errors;
               }
               String parts[] = delete.split("/");
-              if (parts.length > 1) {
+              if (parts.length > 2) {
                 String tableId = parts[1];
                 String tabletDir = parts[2];
                 TableManager.getInstance().updateTableStateCache(tableId);



Mime
View raw message