From c8b6b7ad22c1d315fa94ecb681f868be1df27744 Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Fri, 27 Jul 2012 19:20:00 +0000 Subject: [PATCH] HBASE-5547 Don't delete HFiles when in "backup mode", addendum fixes check for fs.delete() git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1366510 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/hadoop/hbase/master/cleaner/CleanerChore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java index 6d32122967e..8711c82529b 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java @@ -218,7 +218,7 @@ public abstract class CleanerChore extends Chore } // 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."); }