HDFS-10816. TestComputeInvalidateWork#testDatanodeReRegistration fails due to race between test and replication monitor. Contributed by Eric Badger.

This commit is contained in:
Kihwal Lee 2017-06-05 15:17:43 -05:00 committed by Xiaoyu Yao
parent 2ad147ef29
commit 14f782b6b9
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ public class TestComputeInvalidateWork {
namesystem = cluster.getNamesystem(); namesystem = cluster.getNamesystem();
bm = namesystem.getBlockManager(); bm = namesystem.getBlockManager();
nodes = bm.getDatanodeManager().getHeartbeatManager().getDatanodes(); nodes = bm.getDatanodeManager().getHeartbeatManager().getDatanodes();
BlockManagerTestUtil.stopRedundancyThread(bm);
assertEquals(nodes.length, NUM_OF_DATANODES); assertEquals(nodes.length, NUM_OF_DATANODES);
} }