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

View File

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