You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ch...@apache.org on 2016/09/07 05:48:29 UTC

hbase git commit: HBASE-16562 ITBLL should fail to start if misconfigured

Repository: hbase
Updated Branches:
  refs/heads/master b6ba13c37 -> 78af20944


HBASE-16562 ITBLL should fail to start if misconfigured


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

Branch: refs/heads/master
Commit: 78af20944cbe2a65148da1457f1de87cff884858
Parents: b6ba13c
Author: chenheng <ch...@apache.org>
Authored: Tue Sep 6 11:02:18 2016 +0800
Committer: chenheng <ch...@apache.org>
Committed: Wed Sep 7 11:29:54 2016 +0800

----------------------------------------------------------------------
 .../hadoop/hbase/test/IntegrationTestBigLinkedList.java  | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/78af2094/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedList.java
----------------------------------------------------------------------
diff --git a/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedList.java b/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedList.java
index 135bea7..41aa128 100644
--- a/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedList.java
+++ b/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedList.java
@@ -676,6 +676,17 @@ public class IntegrationTestBigLinkedList extends IntegrationTestBase {
         Integer width = (args.length < 4) ? null : Integer.parseInt(args[3]);
         Integer wrapMultiplier = (args.length < 5) ? null : Integer.parseInt(args[4]);
         Integer numWalkers = (args.length < 6) ? null : Integer.parseInt(args[5]);
+
+        long wrap = (long)width*wrapMultiplier;
+        if (wrap < numNodes && numNodes % wrap != 0) {
+          /**
+           *  numNodes should be a multiple of width*wrapMultiplier.
+           *  If numNodes less than wrap, wrap will be set to be equal with numNodes,
+           *  See {@link GeneratorMapper#setup(Mapper.Context)}
+           * */
+          System.err.println(USAGE);
+          return 1;
+        }
         return run(numMappers, numNodes, tmpOutput, width, wrapMultiplier, numWalkers);
       } catch (NumberFormatException e) {
         System.err.println("Parsing generator arguments failed: " + e.getMessage());