HDFS-10270. TestJMXGet:testNameNode() fails. Contributed by Gergely Novák
(cherry picked from commit d2f3bbc290
)
This commit is contained in:
parent
c195b1c9fe
commit
4a7e52d302
|
@ -123,9 +123,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();
|
||||||
|
|
Loading…
Reference in New Issue