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