From 56830c30941e1fb6d3196c2d9f0145b8e7e59885 Mon Sep 17 00:00:00 2001 From: tedyu Date: Tue, 3 Oct 2017 14:07:58 -0700 Subject: [PATCH] HBASE-18928 Backup delete command shows wrong number of deletes requested (Amit Kabra) --- .../org/apache/hadoop/hbase/backup/impl/BackupCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 fb4f095a8bf..102d45d2fcb 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");