HDFS-15378. TestReconstructStripedFile#testErasureCodingWorkerXmitsWeight is failing on trunk. Contributed by hemanthboyina.

This commit is contained in:
Ayush Saxena 2020-06-27 19:13:01 +05:30
parent bed0a3a374
commit 8db38c98a6

View File

@ -571,7 +571,8 @@ public void stripedBlockReconstruction() throws IOException {
DataNodeFaultInjector.set(oldInjector);
for (final DataNode curDn : cluster.getDataNodes()) {
GenericTestUtils.waitFor(() -> curDn.getXceiverCount() <= 1, 10, 60000);
assertEquals(0, curDn.getXmitsInProgress());
GenericTestUtils.waitFor(() -> curDn.getXmitsInProgress() == 0, 10,
2500);
}
}
}