HBASE-19445 PerformanceEvaluation NPE processing split policy option

This commit is contained in:
Andrew Purtell 2017-12-06 14:08:55 -08:00
parent 52ffa68f8b
commit 57df73ac68
1 changed files with 1 additions and 1 deletions

View File

@ -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;