You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2014/10/14 23:04:35 UTC
git commit: HBASE-12252 IntegrationTestBulkLoad fails with illegal
partition error
Repository: hbase
Updated Branches:
refs/heads/master 43e596bec -> dc8600152
HBASE-12252 IntegrationTestBulkLoad fails with illegal partition error
Signed-off-by: stack <st...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/dc860015
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/dc860015
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/dc860015
Branch: refs/heads/master
Commit: dc860015232bf2055619d8c72abcb0161ba0bd57
Parents: 43e596b
Author: Dima Spivak <ds...@cloudera.com>
Authored: Tue Oct 14 12:03:04 2014 -0700
Committer: stack <st...@apache.org>
Committed: Tue Oct 14 14:04:19 2014 -0700
----------------------------------------------------------------------
.../org/apache/hadoop/hbase/mapreduce/IntegrationTestBulkLoad.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/dc860015/hbase-it/src/test/java/org/apache/hadoop/hbase/mapreduce/IntegrationTestBulkLoad.java
----------------------------------------------------------------------
diff --git a/hbase-it/src/test/java/org/apache/hadoop/hbase/mapreduce/IntegrationTestBulkLoad.java b/hbase-it/src/test/java/org/apache/hadoop/hbase/mapreduce/IntegrationTestBulkLoad.java
index c6f014c..9dac95b 100644
--- a/hbase-it/src/test/java/org/apache/hadoop/hbase/mapreduce/IntegrationTestBulkLoad.java
+++ b/hbase-it/src/test/java/org/apache/hadoop/hbase/mapreduce/IntegrationTestBulkLoad.java
@@ -524,7 +524,7 @@ public class IntegrationTestBulkLoad extends IntegrationTestBase {
LinkChain linkChain,
int numPartitions) {
int hash = linkKey.getChainId().hashCode();
- return hash % numPartitions;
+ return Math.abs(hash % numPartitions);
}
}