HBASE-12252 IntegrationTestBulkLoad fails with illegal partition error
Signed-off-by: stack <stack@apache.org>
This commit is contained in:
parent
43e596becb
commit
dc86001523
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue