diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataNodeMXBean.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataNodeMXBean.java index ad4c892b22f..28330139bc4 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataNodeMXBean.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataNodeMXBean.java @@ -310,10 +310,6 @@ public class TestDataNodeMXBean extends SaslDataTransferTestCase { DataNode datanode = cluster.getDataNodes().get(0); - MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); - ObjectName mxbeanName = new ObjectName( - "Hadoop:service=DataNode,name=DataNodeInfo"); - // Verify and wait until one of the BP service actor identifies active namenode as active // and another as standby. cluster.waitDatanodeConnectedToActive(datanode, 5000);