From 5aba093361dcf6bb642e533700f772b9a94154ad Mon Sep 17 00:00:00 2001 From: Walter Su Date: Mon, 23 Nov 2015 15:35:06 +0800 Subject: [PATCH] HDFS-9428. Fix intermittent failure of TestDNFencing.testQueueingWithAppend. Contributed by Masatake Iwasaki. --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.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 2b56361c7c..c1e45e9a52 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -2353,6 +2353,9 @@ Release 2.8.0 - UNRELEASED HDFS-9024. Deprecate the TotalFiles metric. (Akira Ajisaka via wheat9) + HDFS-9428. Fix intermittent failure of + TestDNFencing.testQueueingWithAppend. (Masatake Iwasaki via waltersu4549) + Release 2.7.3 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java index 9df4399009..74bc73d8e6 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java @@ -456,6 +456,7 @@ public class TestDNFencing { numQueued += numDN * 2; // RBW messages, see comments in case 1 } finally { IOUtils.closeStream(out); + cluster.triggerHeartbeats(); numQueued += numDN; // blockReceived } assertEquals(numQueued, cluster.getNameNode(1).getNamesystem().