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-18741 Remove cancel command from backup code
Date Sat, 02 Sep 2017 14:37:44 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-2 9dd458a8c -> 49986e9df


HBASE-18741 Remove cancel command from backup code

Signed-off-by: tedyu <yuzhihong@gmail.com>


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

Branch: refs/heads/branch-2
Commit: 49986e9dfe343593c35735f5e86412cb5fc842bc
Parents: 9dd458a
Author: Peter Somogyi <psomogyi@cloudera.com>
Authored: Sat Sep 2 12:56:05 2017 +0200
Committer: tedyu <yuzhihong@gmail.com>
Committed: Sat Sep 2 07:37:28 2017 -0700

----------------------------------------------------------------------
 .../hbase/backup/impl/BackupCommands.java       | 27 --------------------
 1 file changed, 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/49986e9d/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 5b91e34..187a014 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
@@ -106,9 +106,6 @@ public final class BackupCommands {
 
   public static final String REPAIR_CMD_USAGE = "Usage: hbase backup repair\n";
 
-  public static final String CANCEL_CMD_USAGE = "Usage: hbase backup cancel <backup_id>\n"
-      + "  backup_id       Backup image id\n";
-
   public static final String SET_CMD_USAGE = "Usage: hbase backup set COMMAND [name] [tables]\n"
       + "  name            Backup set name\n"
       + "  tables          Comma separated list of tables.\n" + "COMMAND is one of:\n"
@@ -221,9 +218,6 @@ public final class BackupCommands {
     case DELETE:
       cmd = new DeleteCommand(conf, cmdline);
       break;
-    case CANCEL:
-      cmd = new CancelCommand(conf, cmdline);
-      break;
     case HISTORY:
       cmd = new HistoryCommand(conf, cmdline);
       break;
@@ -427,8 +421,6 @@ public final class BackupCommands {
         System.out.println(PROGRESS_CMD_USAGE);
       } else if (BackupCommand.DELETE.name().equalsIgnoreCase(type)) {
         System.out.println(DELETE_CMD_USAGE);
-      } else if (BackupCommand.CANCEL.name().equalsIgnoreCase(type)) {
-        System.out.println(CANCEL_CMD_USAGE);
       } else if (BackupCommand.SET.name().equalsIgnoreCase(type)) {
         System.out.println(SET_CMD_USAGE);
       } else {
@@ -739,25 +731,6 @@ public final class BackupCommands {
     }
   }
 
-  // TODO Cancel command
-
-  private static class CancelCommand extends Command {
-
-    CancelCommand(Configuration conf, CommandLine cmdline) {
-      super(conf);
-      this.cmdline = cmdline;
-    }
-
-    @Override
-    public void execute() throws IOException {
-      throw new UnsupportedOperationException("Cancel command is not supported yet.");
-    }
-
-    @Override
-    protected void printUsage() {
-    }
-  }
-
   private static class HistoryCommand extends Command {
 
     private final static int DEFAULT_HISTORY_LENGTH = 10;


Mime
View raw message