HBASE-19445 PerformanceEvaluation NPE processing split policy option
This commit is contained in:
parent
00750fe79a
commit
3e7b90ac6d
|
@ -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