HDFS-10816. TestComputeInvalidateWork#testDatanodeReRegistration fails due to race between test and replication monitor. Contributed by Eric Badger.
(cherry picked from commit e2ea601231
)
This commit is contained in:
parent
9854682ea4
commit
1d3fa87011
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue