diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestReconstructStripedFile.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestReconstructStripedFile.java index 5b639a75f74..3584f342e8a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestReconstructStripedFile.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestReconstructStripedFile.java @@ -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); } } }