This is an automated email from the ASF dual-hosted git repository.
andor pushed a commit to branch branch-3.4
in repository https://gitbox.apache.org/repos/asf/zookeeper.git
The following commit(s) were added to refs/heads/branch-3.4 by this push:
new 9de50d9 ZOOKEEPER-1815: Tolerate incorrectly set system hostname in
tests (3.4)
9de50d9 is described below
commit 9de50d9d29ba336f0558ccc7e28feae32a598abd
Author: Andor Molnar <[email protected]>
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 <[email protected]>
Reviewers: [email protected]
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();