hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-15928 hbase backup delete command does not remove backup root dir from hdfs
Date Wed, 01 Jun 2016 19:54:08 GMT
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 <yuzhihong@gmail.com>
Authored: Wed Jun 1 12:54:02 2016 -0700
Committer: tedyu <yuzhihong@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() + ".");


Mime
View raw message