HDFS-7572. TestLazyPersistFiles#testDnRestartWithSavedReplicas is flaky on Windows. Contributed by Arpit Agarwal.

(cherry picked from commit dfd2589bcb)
This commit is contained in:
cnauroth 2015-01-05 10:39:15 -08:00
parent 4446512e9e
commit 60418c9b2d
2 changed files with 4 additions and 0 deletions

View File

@ -382,6 +382,9 @@ Release 2.7.0 - UNRELEASED
HDFS-7563. NFS gateway parseStaticMap NumberFormatException
(Yongjun Zhang via brandonli)
HDFS-7572. TestLazyPersistFiles#testDnRestartWithSavedReplicas is flaky on
Windows. (Arpit Agarwal via cnauroth)
Release 2.6.1 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -633,6 +633,7 @@ public class TestLazyPersistFiles extends LazyPersistTestCase {
LOG.info("Restarting the DataNode");
cluster.restartDataNode(0, true);
cluster.waitActive();
triggerBlockReport();
// Ensure that the replica is now on persistent storage.
ensureFileReplicasOnStorageType(path1, DEFAULT);