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-12886 Correct tag option name in PerformanceEvaluation (Jerry He)
Date Wed, 21 Jan 2015 20:31:53 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.0 56447043c -> 42289778b


HBASE-12886 Correct tag option name in PerformanceEvaluation (Jerry He)


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

Branch: refs/heads/branch-1.0
Commit: 42289778b0c7b7bfa2853e40b2a7f18ab0d0ec80
Parents: 5644704
Author: tedyu <yuzhihong@gmail.com>
Authored: Wed Jan 21 12:31:41 2015 -0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Wed Jan 21 12:31:41 2015 -0800

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/PerformanceEvaluation.java    | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/42289778/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java
index 943d67d..53aa05c 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java
@@ -1741,7 +1741,7 @@ public class PerformanceEvaluation extends Configured implements Tool
{
         continue;
       }
 
-      final String noOfTags = "--nooftags=";
+      final String noOfTags = "--numoftags=";
       if (cmd.startsWith(noOfTags)) {
         opts.noOfTags = Integer.parseInt(cmd.substring(noOfTags.length()));
         continue;
@@ -1832,6 +1832,11 @@ public class PerformanceEvaluation extends Configured implements Tool
{
         }
         break;
       }
+
+      // Not matching any option or command.
+      System.err.println("Error: Wrong option or command: " + cmd);
+      args.add(cmd);
+      break;
     }
     return opts;
   }
@@ -1851,10 +1856,11 @@ public class PerformanceEvaluation extends Configured implements Tool
{
       argv.addAll(Arrays.asList(args));
       TestOptions opts = parseOpts(argv);
 
-      // args remainting, print help and exit
+      // args remaining, print help and exit
       if (!argv.isEmpty()) {
         errCode = 0;
         printUsage();
+        return errCode;
       }
 
       // must run at least 1 client


Mime
View raw message