From 23abc90068f0ea75f09c3eecf6ef758f1aee9219 Mon Sep 17 00:00:00 2001 From: CHIA-PING TSAI Date: Sat, 18 Mar 2017 12:20:07 +0800 Subject: [PATCH] HBASE-17803 PE always re-creates table when we specify the split policy --- .../java/org/apache/hadoop/hbase/PerformanceEvaluation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java index f8345b120a6..3addb1a796c 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java @@ -325,7 +325,7 @@ public class PerformanceEvaluation extends Configured implements Tool { // recreate the table when user has requested presplit or when existing // {RegionSplitPolicy,replica count} does not match requested. 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)) { needsDelete = true; // wait, why did it delete my table?!?