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:04 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 9bdb81f0a -> e87a69d9c


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/e87a69d9
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e87a69d9
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e87a69d9

Branch: refs/heads/master
Commit: e87a69d9c0237fb8b1f5a1f22f699e4cc83c61c4
Parents: 9bdb81f
Author: tedyu <yuzhihong@gmail.com>
Authored: Wed Jan 21 12:30:51 2015 -0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Wed Jan 21 12:30:51 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/e87a69d9/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 52424b3..193b4ee 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
@@ -1789,7 +1789,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;
@@ -1879,6 +1879,11 @@ public class PerformanceEvaluation extends Configured implements Tool
{
         opts = calculateRowsAndSize(opts);
         break;
       }
+
+      // Not matching any option or command.
+      System.err.println("Error: Wrong option or command: " + cmd);
+      args.add(cmd);
+      break;
     }
     return opts;
   }
@@ -1916,10 +1921,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