Skip to content

Commit 17c8cdf

Browse files
authored
HDFS-16907. ADDENDUM: Remove unused variables from testDataNodeMXBeanLastHeartbeats. (apache#5373)
Signed-off-by: Ayush Saxena <[email protected]>
1 parent 9e4f50d commit 17c8cdf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataNodeMXBean.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,6 @@ public void testDataNodeMXBeanLastHeartbeats() throws Exception {
310310

311311
DataNode datanode = cluster.getDataNodes().get(0);
312312

313-
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
314-
ObjectName mxbeanName = new ObjectName(
315-
"Hadoop:service=DataNode,name=DataNodeInfo");
316-
317313
// Verify and wait until one of the BP service actor identifies active namenode as active
318314
// and another as standby.
319315
cluster.waitDatanodeConnectedToActive(datanode, 5000);

0 commit comments

Comments
 (0)