You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2016/06/01 19:54:08 UTC
hbase git commit: HBASE-15928 hbase backup delete command does not
remove backup root dir from hdfs
Repository: hbase
Updated Branches:
refs/heads/HBASE-7912 486fc54c6 -> 8a2b95cfc
HBASE-15928 hbase backup delete command does not remove backup root dir from hdfs
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/8a2b95cf
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/8a2b95cf
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/8a2b95cf
Branch: refs/heads/HBASE-7912
Commit: 8a2b95cfceabc46326a1ffcb50efe3d3e31a8ed1
Parents: 486fc54
Author: tedyu <yu...@gmail.com>
Authored: Wed Jun 1 12:54:02 2016 -0700
Committer: tedyu <yu...@gmail.com>
Committed: Wed Jun 1 12:54:02 2016 -0700
----------------------------------------------------------------------
.../java/org/apache/hadoop/hbase/backup/util/BackupClientUtil.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/8a2b95cf/hbase-client/src/main/java/org/apache/hadoop/hbase/backup/util/BackupClientUtil.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/backup/util/BackupClientUtil.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/backup/util/BackupClientUtil.java
index 5ce50e5..422432d 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/backup/util/BackupClientUtil.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/backup/util/BackupClientUtil.java
@@ -232,7 +232,7 @@ public final class BackupClientUtil {
LOG.debug(tableDir.toString() + " is empty, remove it.");
}
}
-
+ outputFs.delete(new Path(targetDir), true);
} catch (IOException e1) {
LOG.error("Cleaning up backup data of " + backupContext.getBackupId() + " at "
+ backupContext.getTargetRootDir() + " failed due to " + e1.getMessage() + ".");