diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/scm/node/TestQueryNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/scm/node/TestQueryNode.java index 48ab8afa99..e34fd5b9a9 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/scm/node/TestQueryNode.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/scm/node/TestQueryNode.java @@ -116,9 +116,5 @@ public void testStaleNodesCount() throws Exception { nodeCount = scmClient.queryNode(EnumSet.of(DEAD), OzoneProtos.QueryScope.CLUSTER, "").getNodesCount(); assertEquals("Mismatch of expected nodes count", 2, nodeCount); - - cluster.restartDataNode(0); - cluster.restartDataNode(1); - } }