phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tdsi...@apache.org
Subject phoenix git commit: PHOENIX-4389 Flapping tests SystemTablePermissionsIT and MigrateSystemTablesToSystemNamespaceIT
Date Wed, 29 Nov 2017 02:45:35 GMT
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.2 17b872cbb -> c9a695a38


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/c9a695a3
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/c9a695a3
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/c9a695a3

Branch: refs/heads/4.x-HBase-1.2
Commit: c9a695a3866b4007f8ec497b3084f45a57f80d10
Parents: 17b872c
Author: Karan Mehta <karanmehta93@gmail.com>
Authored: Tue Nov 28 15:39:03 2017 -0800
Committer: Thomas D'Silva <tdsilva@apache.org>
Committed: Tue Nov 28 18:45:16 2017 -0800

----------------------------------------------------------------------
 .../end2end/MigrateSystemTablesToSystemNamespaceIT.java      | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/c9a695a3/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());


Mime
View raw message