hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From syuanji...@apache.org
Subject [02/14] hbase git commit: HBASE-17773 VerifyReplication tool wrongly emits Invalid arguments error
Date Thu, 16 Mar 2017 17:12:30 GMT
HBASE-17773 VerifyReplication tool wrongly emits Invalid arguments error

Signed-off-by: Guanghao Zhang <zghao@apache.org>


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

Branch: refs/heads/hbase-12439
Commit: fee67bcf1432cd16720fb97a0135bd67b0d2b064
Parents: 31bc94a
Author: Tom Tsuruhara <tomu.tsuruhara@linecorp.com>
Authored: Sat Mar 11 18:20:06 2017 +0900
Committer: Guanghao Zhang <zghao@apache.org>
Committed: Mon Mar 13 17:46:58 2017 +0800

----------------------------------------------------------------------
 .../hbase/mapreduce/replication/VerifyReplication.java      | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/fee67bcf/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplication.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplication.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplication.java
index 145fede..ba5966b 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplication.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplication.java
@@ -463,10 +463,6 @@ public class VerifyReplication extends Configured implements Tool {
           continue;
         }
 
-        if (cmd.startsWith("--")) {
-          printUsage("Invalid argument '" + cmd + "'");
-        }
-
         final String delimiterArgKey = "--delimiter=";
         if (cmd.startsWith(delimiterArgKey)) {
           delimiter = cmd.substring(delimiterArgKey.length());
@@ -483,6 +479,11 @@ public class VerifyReplication extends Configured implements Tool {
           verbose = true;
           continue;
         }        
+
+        if (cmd.startsWith("--")) {
+          printUsage("Invalid argument '" + cmd + "'");
+        }
+
         if (i == args.length-2) {
           peerId = cmd;
         }


Mime
View raw message