HDFS-10270. TestJMXGet:testNameNode() fails. Contributed by Gergely Novák

This commit is contained in:
Kihwal Lee 2016-04-13 11:22:36 -05:00
parent 903428bf94
commit d2f3bbc290
1 changed files with 0 additions and 3 deletions

View File

@ -111,9 +111,6 @@ public class TestJMXGet {
jmx.getValue("NumLiveDataNodes"))); jmx.getValue("NumLiveDataNodes")));
assertGauge("CorruptBlocks", Long.parseLong(jmx.getValue("CorruptBlocks")), assertGauge("CorruptBlocks", Long.parseLong(jmx.getValue("CorruptBlocks")),
getMetrics("FSNamesystem")); getMetrics("FSNamesystem"));
DFSTestUtil.waitForMetric(jmx, "NumOpenConnections", numDatanodes);
assertEquals(numDatanodes, Integer.parseInt(
jmx.getValue("NumOpenConnections")));
cluster.shutdown(); cluster.shutdown();
MBeanServerConnection mbsc = ManagementFactory.getPlatformMBeanServer(); MBeanServerConnection mbsc = ManagementFactory.getPlatformMBeanServer();