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-16620 Fix backup command-line tool usability issues - fixes compilation error
Date Sat, 17 Sep 2016 00:04:56 GMT
Repository: hbase
Updated Branches:
  refs/heads/HBASE-7912 759a2c17a -> fef921860


HBASE-16620 Fix backup command-line tool usability issues - fixes compilation error


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

Branch: refs/heads/HBASE-7912
Commit: fef92186079dbe52c8031291180e08ab08c1301f
Parents: 759a2c1
Author: tedyu <yuzhihong@gmail.com>
Authored: Fri Sep 16 17:04:52 2016 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Fri Sep 16 17:04:52 2016 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/backup/BackupDriver.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/fef92186/hbase-server/src/main/java/org/apache/hadoop/hbase/backup/BackupDriver.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/backup/BackupDriver.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/backup/BackupDriver.java
index 4e668ce..2430ce5 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/backup/BackupDriver.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/backup/BackupDriver.java
@@ -112,8 +112,8 @@ public class BackupDriver extends AbstractHBaseTool {
     }   
     try {
       command.execute();
-    } catch(IOException e) {
-      if(e.getMessage().equals(BackupCommands.IGNORE)){
+    } catch (IOException e) {
+      if (e.getMessage().equals(BackupCommands.INCORRECT_USAGE)){
         return -1;
       }
       throw e;


Mime
View raw message