diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestComputeInvalidateWork.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestComputeInvalidateWork.java index c33161fc942..2e2e039161a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestComputeInvalidateWork.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestComputeInvalidateWork.java @@ -63,6 +63,7 @@ public class TestComputeInvalidateWork { namesystem = cluster.getNamesystem(); bm = namesystem.getBlockManager(); nodes = bm.getDatanodeManager().getHeartbeatManager().getDatanodes(); + BlockManagerTestUtil.stopReplicationThread(bm); assertEquals(nodes.length, NUM_OF_DATANODES); }