From 60418c9b2d5424337d1ba74e199a2993ca0c14a1 Mon Sep 17 00:00:00 2001 From: cnauroth Date: Mon, 5 Jan 2015 10:39:15 -0800 Subject: [PATCH] HDFS-7572. TestLazyPersistFiles#testDnRestartWithSavedReplicas is flaky on Windows. Contributed by Arpit Agarwal. (cherry picked from commit dfd2589bcb0e83f073eab30e32badcf2e9f75a62) --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../server/datanode/fsdataset/impl/TestLazyPersistFiles.java | 1 + 2 files changed, 4 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index b0dcef52ed7..c0296fb80cc 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -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 diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java index 49d3c6d92ef..ad2197a631b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java @@ -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);