From 17c8cdf63c27425633f96031fca325abb87f7ddf Mon Sep 17 00:00:00 2001 From: Viraj Jasani Date: Thu, 9 Feb 2023 11:03:20 -0800 Subject: [PATCH] HDFS-16907. ADDENDUM: Remove unused variables from testDataNodeMXBeanLastHeartbeats. (#5373) Signed-off-by: Ayush Saxena --- .../hadoop/hdfs/server/datanode/TestDataNodeMXBean.java | 4 ---- 1 file changed, 4 deletions(-) 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 ad4c892b22..28330139bc 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 void testDataNodeMXBeanLastHeartbeats() throws Exception { 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);