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

(cherry picked from commit 8db38c98a6)
This commit is contained in:
Ayush Saxena 2020-06-27 19:13:01 +05:30 committed by Takanobu Asanuma
parent 650bcaf694
commit 5d1127c8f3
1 changed files with 2 additions and 1 deletions

View File

@ -600,7 +600,8 @@ public class TestReconstructStripedFile {
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);
}
}
}