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:24:39 -05:00
parent baff06f019
commit e2ea601231

View File

@ -63,6 +63,7 @@ public void setup() throws Exception {
namesystem = cluster.getNamesystem();
bm = namesystem.getBlockManager();
nodes = bm.getDatanodeManager().getHeartbeatManager().getDatanodes();
BlockManagerTestUtil.stopReplicationThread(bm);
assertEquals(nodes.length, NUM_OF_DATANODES);
}