HBASE-17803 PE always re-creates table when we specify the split policy

This commit is contained in:
CHIA-PING TSAI 2017-03-18 12:20:07 +08:00 committed by Chia-Ping Tsai
parent b299c1388c
commit 23abc90068
1 changed files with 1 additions and 1 deletions

View File

@ -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?!?