1
0
Pārlūkot izejas kodu

HDFS-14025. TestPendingReconstruction.testPendingAndInvalidate fails. Contributed by Ayush Saxena.

Inigo Goiri 6 gadi atpakaļ
vecāks
revīzija
936fc3f3c2

+ 2 - 0
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestPendingReconstruction.java

@@ -441,6 +441,8 @@ public class TestPendingReconstruction {
       // 1. create a file
       Path filePath = new Path("/tmp.txt");
       DFSTestUtil.createFile(fs, filePath, 1024, (short) 3, 0L);
+      DFSTestUtil.waitForReplication(cluster.getFileSystem(), filePath,
+          (short) 3, 10000);
 
       // 2. disable the heartbeats
       for (DataNode dn : cluster.getDataNodes()) {