HBASE-17803 PE always re-creates table when we specify the split policy
This commit is contained in:
parent
b299c1388c
commit
23abc90068
|
@ -325,7 +325,7 @@ public class PerformanceEvaluation extends Configured implements Tool {
|
||||||
// recreate the table when user has requested presplit or when existing
|
// recreate the table when user has requested presplit or when existing
|
||||||
// {RegionSplitPolicy,replica count} does not match requested.
|
// {RegionSplitPolicy,replica count} does not match requested.
|
||||||
if ((exists && opts.presplitRegions != DEFAULT_OPTS.presplitRegions)
|
if ((exists && opts.presplitRegions != DEFAULT_OPTS.presplitRegions)
|
||||||
|| (!isReadCmd && desc != null && desc.getRegionSplitPolicyClassName() != opts.splitPolicy)
|
|| (!isReadCmd && desc != null && !desc.getRegionSplitPolicyClassName().equals(opts.splitPolicy))
|
||||||
|| (!isReadCmd && desc != null && desc.getRegionReplication() != opts.replicas)) {
|
|| (!isReadCmd && desc != null && desc.getRegionReplication() != opts.replicas)) {
|
||||||
needsDelete = true;
|
needsDelete = true;
|
||||||
// wait, why did it delete my table?!?
|
// wait, why did it delete my table?!?
|
||||||
|
|
Loading…
Reference in New Issue