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-16358 Backup create command: log success/failure with backup id (Vladimir Rodionov)
Date Fri, 05 Aug 2016 18:10:36 GMT
Repository: hbase
Updated Branches:
  refs/heads/HBASE-7912 541740d48 -> 0bdde8328


HBASE-16358 Backup create command: log success/failure with backup id (Vladimir Rodionov)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/0bdde832
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/0bdde832
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/0bdde832

Branch: refs/heads/HBASE-7912
Commit: 0bdde8328bb82ad95049c2137741cb3889ca6f0a
Parents: 541740d
Author: tedyu <yuzhihong@gmail.com>
Authored: Fri Aug 5 11:10:25 2016 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Fri Aug 5 11:10:25 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/backup/impl/BackupCommands.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/0bdde832/hbase-client/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupCommands.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupCommands.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupCommands.java
index 63f7a55..618b0be 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupCommands.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupCommands.java
@@ -194,8 +194,10 @@ public final class BackupCommands {
         request.setBackupType(BackupType.valueOf(args[1].toUpperCase()))
         .setTableList(tables != null?Lists.newArrayList(BackupClientUtil.parseTableNames(tables)):
null)
         .setTargetRootDir(args[2]).setWorkers(workers).setBandwidth(bandwidth);
-        backupAdmin.backupTables(request);
+        String backupId = backupAdmin.backupTables(request);
+        System.out.println("Backup session "+ backupId+" finished. Status: SUCCESS");
       } catch (IOException e) {
+        System.out.println("Backup session finished. Status: FAILURE");
         throw e;
       }
     }


Mime
View raw message