HBASE-19445 PerformanceEvaluation NPE processing split policy option
This commit is contained in:
parent
52ffa68f8b
commit
57df73ac68
|
@ -406,7 +406,7 @@ public class PerformanceEvaluation extends Configured implements Tool {
|
|||
if (opts.replicas != DEFAULT_OPTS.replicas) {
|
||||
desc.setRegionReplication(opts.replicas);
|
||||
}
|
||||
if (opts.splitPolicy != DEFAULT_OPTS.splitPolicy) {
|
||||
if (opts.splitPolicy != null && !opts.splitPolicy.equals(DEFAULT_OPTS.splitPolicy)) {
|
||||
desc.setRegionSplitPolicyClassName(opts.splitPolicy);
|
||||
}
|
||||
return desc;
|
||||
|
|
Loading…
Reference in New Issue