Repository: phoenix Updated Branches: refs/heads/4.x-HBase-1.2 f4e1c7e0d -> a052d5d7e
PHOENIX-4979 Fix IndexToolForPartialBuildWithNamespaceEnabledIT for branches <= HBase 1.2 Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/a052d5d7 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/a052d5d7 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/a052d5d7 Branch: refs/heads/4.x-HBase-1.2 Commit: a052d5d7ea612246887b2dd2b8ea331d24d03626 Parents: f4e1c7e Author: Vincent Poon <vincentp...@apache.org> Authored: Tue Oct 16 17:41:26 2018 -0700 Committer: Vincent Poon <vincentp...@apache.org> Committed: Wed Oct 17 11:39:11 2018 -0700 ---------------------------------------------------------------------- .../apache/phoenix/end2end/IndexToolForPartialBuildIT.java | 4 +++- .../IndexToolForPartialBuildWithNamespaceEnabledIT.java | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/a052d5d7/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolForPartialBuildIT.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolForPartialBuildIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolForPartialBuildIT.java index 85209b2..51ccabd 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolForPartialBuildIT.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolForPartialBuildIT.java @@ -107,7 +107,9 @@ public class IndexToolForPartialBuildIT extends BaseOwnClusterIT { @BeforeClass public static void doSetup() throws Exception { Map<String, String> serverProps = getServerProperties(); - setUpTestDriver(new ReadOnlyProps(serverProps.entrySet().iterator()), ReadOnlyProps.EMPTY_PROPS); + Map<String, String> clientProps = Maps.newHashMapWithExpectedSize(2); + clientProps.put(HConstants.HBASE_CLIENT_RETRIES_NUMBER, "2"); + setUpTestDriver(new ReadOnlyProps(serverProps.entrySet().iterator()), new ReadOnlyProps(clientProps.entrySet().iterator())); } @Parameters(name="localIndex = {0}") http://git-wip-us.apache.org/repos/asf/phoenix/blob/a052d5d7/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolForPartialBuildWithNamespaceEnabledIT.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolForPartialBuildWithNamespaceEnabledIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolForPartialBuildWithNamespaceEnabledIT.java index a8c1f1e..aae51ca 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolForPartialBuildWithNamespaceEnabledIT.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolForPartialBuildWithNamespaceEnabledIT.java @@ -21,6 +21,7 @@ import java.util.Arrays; import java.util.Collection; import java.util.Map; +import org.apache.hadoop.hbase.HConstants; import org.apache.phoenix.query.QueryServices; import org.apache.phoenix.util.ReadOnlyProps; import org.junit.BeforeClass; @@ -46,13 +47,15 @@ public class IndexToolForPartialBuildWithNamespaceEnabledIT extends IndexToolFor serverProps.put(QueryServices.IS_NAMESPACE_MAPPING_ENABLED, "true"); Map<String, String> clientProps = Maps.newHashMapWithExpectedSize(1); clientProps.put(QueryServices.IS_NAMESPACE_MAPPING_ENABLED, "true"); + clientProps.put(HConstants.HBASE_CLIENT_RETRIES_NUMBER, "2"); setUpTestDriver(new ReadOnlyProps(serverProps.entrySet().iterator()), new ReadOnlyProps(clientProps.entrySet().iterator())); } @Parameters(name="localIndex = {0} , isNamespaceEnabled = {1}") public static Collection<Boolean[]> data() { - return Arrays.asList(new Boolean[][] { - { false, true},{ true, false } + return Arrays.asList(new Boolean[][] { + { false, true}, + { true, true } }); }