From dc860015232bf2055619d8c72abcb0161ba0bd57 Mon Sep 17 00:00:00 2001 From: Dima Spivak Date: Tue, 14 Oct 2014 12:03:04 -0700 Subject: [PATCH] HBASE-12252 IntegrationTestBulkLoad fails with illegal partition error Signed-off-by: stack --- .../apache/hadoop/hbase/mapreduce/IntegrationTestBulkLoad.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c6f014c47f2..9dac95b3f07 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); } }