HBASE-12252 IntegrationTestBulkLoad fails with illegal partition error

Signed-off-by: stack <stack@apache.org>
This commit is contained in:
Dima Spivak 2014-10-14 12:03:04 -07:00 committed by stack
parent ca26d22b50
commit 9367127155
1 changed files with 1 additions and 1 deletions

View File

@ -524,7 +524,7 @@ public class IntegrationTestBulkLoad extends IntegrationTestBase {
LinkChain linkChain, LinkChain linkChain,
int numPartitions) { int numPartitions) {
int hash = linkKey.getChainId().hashCode(); int hash = linkKey.getChainId().hashCode();
return hash % numPartitions; return Math.abs(hash % numPartitions);
} }
} }