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