HBASE-8856 Crash when attempting split with DelimitedKeyPrefixRegionSplitPolicy (Robert Dyer)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1502094 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b93c008efc
commit
afca885131
|
@ -69,7 +69,7 @@ public class DelimitedKeyPrefixRegionSplitPolicy extends IncreasingToUpperBoundR
|
|||
@Override
|
||||
protected byte[] getSplitPoint() {
|
||||
byte[] splitPoint = super.getSplitPoint();
|
||||
if (delimiter != null) {
|
||||
if (splitPoint != null && delimiter != null) {
|
||||
|
||||
//find the first occurrence of delimiter in split point
|
||||
int index = com.google.common.primitives.Bytes.indexOf(splitPoint, delimiter);
|
||||
|
|
Loading…
Reference in New Issue