From 64d2ebf9f39762f69e7da8227213bb1699dd9fb6 Mon Sep 17 00:00:00 2001 From: tedyu Date: Fri, 22 Dec 2017 18:40:03 +0100 Subject: [PATCH] HBASE-19514 TestJMXListener now uses random port Signed-off-by: Jan Hentschel --- .../src/test/java/org/apache/hadoop/hbase/TestJMXListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/TestJMXListener.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/TestJMXListener.java index 8bb58698bc0..907973904a0 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/TestJMXListener.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/TestJMXListener.java @@ -45,7 +45,7 @@ import org.junit.rules.ExpectedException; public class TestJMXListener { private static final Log LOG = LogFactory.getLog(TestJMXListener.class); private static HBaseTestingUtility UTIL = new HBaseTestingUtility(); - private static int connectorPort = 61120; + private static int connectorPort = UTIL.randomFreePort(); @BeforeClass public static void setupBeforeClass() throws Exception {