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:35:04 UTC
[2/2] phoenix git commit: PHOENIX-4389 Flapping tests
SystemTablePermissionsIT and MigrateSystemTablesToSystemNamespaceIT
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/d46d4e56
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/d46d4e56
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/d46d4e56
Branch: refs/heads/master
Commit: d46d4e564d94077b637ad8f34d8785a4ac3486a5
Parents: 4e0c0a3
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:33:15 2017 -0800
----------------------------------------------------------------------
.../end2end/MigrateSystemTablesToSystemNamespaceIT.java | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/phoenix/blob/d46d4e56/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());