HDFS-16907. ADDENDUM: Remove unused variables from testDataNodeMXBeanLastHeartbeats. (#5373)

Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
Viraj Jasani 2023-02-09 11:03:20 -08:00 committed by GitHub
parent 9e4f50d8a0
commit 17c8cdf63c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -310,10 +310,6 @@ public void testDataNodeMXBeanLastHeartbeats() throws Exception {
DataNode datanode = cluster.getDataNodes().get(0); 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 // Verify and wait until one of the BP service actor identifies active namenode as active
// and another as standby. // and another as standby.
cluster.waitDatanodeConnectedToActive(datanode, 5000); cluster.waitDatanodeConnectedToActive(datanode, 5000);