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 43e596becb
commit dc86001523
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}