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

This commit is contained in:
Inigo Goiri 2018-10-24 16:18:27 -07:00
parent 244afaba4a
commit 936fc3f3c2
1 changed files with 2 additions and 0 deletions

View File

@ -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()) {