hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bus...@apache.org
Subject [51/60] [abbrv] hbase git commit: HBASE-18928 Backup delete command shows wrong number of deletes requested (Amit Kabra)
Date Fri, 06 Oct 2017 04:15:30 GMT
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/56830c30
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/56830c30
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/56830c30

Branch: refs/heads/HBASE-18467
Commit: 56830c30941e1fb6d3196c2d9f0145b8e7e59885
Parents: c205b5b
Author: tedyu <yuzhihong@gmail.com>
Authored: Tue Oct 3 14:07:58 2017 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Tue Oct 3 14:07:58 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/56830c30/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