hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1366510 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java
Date Fri, 27 Jul 2012 19:20:00 GMT
Author: tedyu
Date: Fri Jul 27 19:20:00 2012
New Revision: 1366510

URL: http://svn.apache.org/viewvc?rev=1366510&view=rev
Log:
HBASE-5547 Don't delete HFiles when in "backup mode", addendum fixes check for fs.delete()


Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java?rev=1366510&r1=1366509&r2=1366510&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java
(original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java
Fri Jul 27 19:20:00 2012
@@ -218,7 +218,7 @@ public abstract class CleanerChore<T ext
     }
     // delete this file if it passes all the cleaners
     LOG.debug("Removing:" + filePath + " from archive");
-    if (this.fs.delete(filePath, false)) {
+    if (!this.fs.delete(filePath, false)) {
       LOG.warn("Attempted to delete:" + filePath
           + ", but couldn't. Run cleaner chain and attempt to delete on next pass.");
     }



Mime
View raw message