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 7dd9a202ac..6c769f90b1 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 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); } } }