You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by td...@apache.org on 2017/11/29 02:34:34 UTC
phoenix git commit: PHOENIX-4389 Flapping tests
SystemTablePermissionsIT and MigrateSystemTablesToSystemNamespaceIT
Repository: phoenix
Updated Branches:
refs/heads/4.13-HBase-0.98 ec452ef84 -> 9ab3bbe61
PHOENIX-4389 Flapping tests SystemTablePermissionsIT and MigrateSystemTablesToSystemNamespaceIT
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/9ab3bbe6
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/9ab3bbe6
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/9ab3bbe6
Branch: refs/heads/4.13-HBase-0.98
Commit: 9ab3bbe61979a321684e24fd94e7ec6f9f6bd265
Parents: ec452ef
Author: Karan Mehta <ka...@gmail.com>
Authored: Tue Nov 28 15:39:03 2017 -0800
Committer: Thomas D'Silva <td...@apache.org>
Committed: Tue Nov 28 18:34:05 2017 -0800
----------------------------------------------------------------------
.../end2end/MigrateSystemTablesToSystemNamespaceIT.java | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/phoenix/blob/9ab3bbe6/phoenix-core/src/it/java/org/apache/phoenix/end2end/MigrateSystemTablesToSystemNamespaceIT.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/MigrateSystemTablesToSystemNamespaceIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/MigrateSystemTablesToSystemNamespaceIT.java
index 91e34be..c36cdd3 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/MigrateSystemTablesToSystemNamespaceIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/MigrateSystemTablesToSystemNamespaceIT.java
@@ -18,6 +18,7 @@ package org.apache.phoenix.end2end;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseTestingUtility;
+import org.apache.hadoop.hbase.HConstants;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.security.UserGroupInformation;
import org.apache.phoenix.coprocessor.MetaDataProtocol;
@@ -87,6 +88,7 @@ public class MigrateSystemTablesToSystemNamespaceIT extends BaseTest {
testUtil = new HBaseTestingUtility();
Configuration conf = testUtil.getConfiguration();
enableNamespacesOnServer(conf);
+ configureRandomHMasterPort(conf);
testUtil.startMiniCluster(1);
}
@@ -289,6 +291,12 @@ public class MigrateSystemTablesToSystemNamespaceIT extends BaseTest {
conf.set(QueryServices.IS_NAMESPACE_MAPPING_ENABLED, Boolean.TRUE.toString());
}
+ // For PHOENIX-4389 (Flapping tests SystemTablePermissionsIT and MigrateSystemTablesToSystemNamespaceIT)
+ private void configureRandomHMasterPort(Configuration conf) {
+ // Avoid multiple clusters trying to bind the master's info port (16010)
+ conf.setInt(HConstants.MASTER_INFO_PORT, -1);
+ }
+
private Properties getClientPropertiesWithSystemMappingEnabled() {
Properties clientProps = new Properties();
clientProps.setProperty(QueryServices.IS_NAMESPACE_MAPPING_ENABLED, Boolean.TRUE.toString());