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-18928 Backup delete command shows wrong number of deletes requested (Amit Kabra)
Date Tue, 03 Oct 2017 21:08:34 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-2 73414ab27 -> 7b8969412


HBASE-18928 Backup delete command shows wrong number of deletes requested (Amit Kabra)


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

Branch: refs/heads/branch-2
Commit: 7b8969412e7fe19410006340810d72925e850443
Parents: 73414ab
Author: tedyu <yuzhihong@gmail.com>
Authored: Tue Oct 3 14:08:28 2017 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Tue Oct 3 14:08:28 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/7b896941/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupCommands.java
----------------------------------------------------------------------
diff --git a/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupCommands.java
b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupCommands.java
index fb4f095..102d45d 100644
--- a/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupCommands.java
+++ b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupCommands.java
@@ -571,7 +571,7 @@ public final class BackupCommands {
       System.arraycopy(args, 1, backupIds, 0, backupIds.length);
       try (BackupAdminImpl admin = new BackupAdminImpl(conn);) {
         int deleted = admin.deleteBackups(backupIds);
-        System.out.println("Deleted " + deleted + " backups. Total requested: " + args.length);
+        System.out.println("Deleted " + deleted + " backups. Total requested: " + (args.length
-1));
       } catch (IOException e) {
         System.err
             .println("Delete command FAILED. Please run backup repair tool to restore backup
system integrity");


Mime
View raw message