From 14f782b6b960a818e0927edc7e32eb1fa51a2d08 Mon Sep 17 00:00:00 2001 From: Kihwal Lee Date: Mon, 5 Jun 2017 15:17:43 -0500 Subject: [PATCH] HDFS-10816. TestComputeInvalidateWork#testDatanodeReRegistration fails due to race between test and replication monitor. Contributed by Eric Badger. --- .../hdfs/server/blockmanagement/TestComputeInvalidateWork.java | 1 + 1 file changed, 1 insertion(+) 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 033f4d17215..61e69f3b60b 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.stopRedundancyThread(bm); assertEquals(nodes.length, NUM_OF_DATANODES); }