PHOENIX-5012 Don't derive IndexToolIT from ParallelStatsEnabled
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/b296ddc1 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/b296ddc1 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/b296ddc1 Branch: refs/heads/4.x-cdh5.15 Commit: b296ddc19a1533e105e01597a3b761a37922d261 Parents: 1da0ad7 Author: James Taylor <jamestay...@apache.org> Authored: Sat Nov 10 19:04:48 2018 +0000 Committer: Pedro Boado <pbo...@apache.org> Committed: Tue Nov 27 15:11:36 2018 +0000 ---------------------------------------------------------------------- .../src/it/java/org/apache/phoenix/end2end/IndexToolIT.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/b296ddc1/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolIT.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolIT.java index c99f145..e096bb5 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolIT.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolIT.java @@ -58,7 +58,6 @@ import org.apache.phoenix.util.SchemaUtil; import org.apache.phoenix.util.TestUtil; import org.junit.BeforeClass; import org.junit.Test; -import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; @@ -67,8 +66,7 @@ import com.google.common.collect.Lists; import com.google.common.collect.Maps; @RunWith(Parameterized.class) -@Category(NeedsOwnMiniClusterTest.class) -public class IndexToolIT extends ParallelStatsEnabledIT { +public class IndexToolIT extends BaseUniqueNamesOwnClusterIT { private final boolean localIndex; private final boolean transactional; @@ -99,9 +97,13 @@ public class IndexToolIT extends ParallelStatsEnabledIT { @BeforeClass public static void setup() throws Exception { Map<String, String> serverProps = Maps.newHashMapWithExpectedSize(2); + serverProps.put(QueryServices.STATS_GUIDEPOST_WIDTH_BYTES_ATTRIB, Long.toString(20)); + serverProps.put(QueryServices.MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS_ATTRIB, Long.toString(5)); serverProps.put(QueryServices.EXTRA_JDBC_ARGUMENTS_ATTRIB, QueryServicesOptions.DEFAULT_EXTRA_JDBC_ARGUMENTS); Map<String, String> clientProps = Maps.newHashMapWithExpectedSize(2); + clientProps.put(QueryServices.USE_STATS_FOR_PARALLELIZATION, Boolean.toString(true)); + clientProps.put(QueryServices.STATS_UPDATE_FREQ_MS_ATTRIB, Long.toString(5)); clientProps.put(QueryServices.TRANSACTIONS_ENABLED, Boolean.TRUE.toString()); clientProps.put(QueryServices.FORCE_ROW_KEY_ORDER_ATTRIB, Boolean.TRUE.toString()); setUpTestDriver(new ReadOnlyProps(serverProps.entrySet().iterator()),