HDFS-9428. Fix intermittent failure of TestDNFencing.testQueueingWithAppend. Contributed by Masatake Iwasaki.

(cherry picked from commit 5aba093361)
This commit is contained in:
Walter Su 2015-11-23 15:35:06 +08:00
parent f826195ee5
commit 846de7d842
2 changed files with 4 additions and 0 deletions

View File

@ -1498,6 +1498,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

View File

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