zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject [zookeeper] 02/02: ZOOKEEPER-1815: Tolerate incorrectly set system hostname in tests (3.4)
Date Wed, 20 Feb 2019 12:10:18 GMT
This is an automated email from the ASF dual-hosted git repository.

andor pushed a commit to branch branch-3.4.14
in repository https://gitbox.apache.org/repos/asf/zookeeper.git

commit b56d60b3354854ecb8faa844066fd06e30f46f55
Author: Andor Molnar <andor@apache.org>
AuthorDate: Wed Feb 20 13:01:26 2019 +0100

    ZOOKEEPER-1815: Tolerate incorrectly set system hostname in tests (3.4)
    
    Inspired by the following commit: https://github.com/apache/zookeeper/commit/23852655a6d41f675b8a9cca66387fca9bfe4e12
    
    in order to fix build problems on H31 Jenkins slave. Infra reported that nothing has been
changed in name resolution, but the patch still looks reasonable and hopefully fix the JMX
connection problem.
    
    This "backport" is JMX-only and doesn't try to fully backport the original patch.
    
    Author: Andor Molnar <andor@apache.org>
    
    Reviewers: eolivelli@gmail.com
    
    Closes #824 from anmolnar/ZOOKEEPER-1815_34
---
 zookeeper-server/src/test/java/org/apache/zookeeper/test/JMXEnv.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zookeeper-server/src/test/java/org/apache/zookeeper/test/JMXEnv.java b/zookeeper-server/src/test/java/org/apache/zookeeper/test/JMXEnv.java
index f67c67c..2800635 100644
--- a/zookeeper-server/src/test/java/org/apache/zookeeper/test/JMXEnv.java
+++ b/zookeeper-server/src/test/java/org/apache/zookeeper/test/JMXEnv.java
@@ -50,7 +50,7 @@ public class JMXEnv {
     public static void setUp() throws IOException {
         MBeanServer mbs = MBeanRegistry.getInstance().getPlatformMBeanServer();
         
-        JMXServiceURL url = new JMXServiceURL("service:jmx:rmi://");
+        JMXServiceURL url = new JMXServiceURL("service:jmx:rmi://127.0.0.1");
         cs = JMXConnectorServerFactory.newJMXConnectorServer(url, null, mbs);
         cs.start();
 


Mime
View raw message