From a206399afd242463d96410681f01c4b4aa225f17 Mon Sep 17 00:00:00 2001 From: Tsz-wo Sze Date: Wed, 26 Mar 2014 17:03:05 +0000 Subject: [PATCH] HDFS-6115. Call flush() for every append on block scan verification log. Contributed by Vinayakumar B git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1581936 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hdfs/server/datanode/fsdataset/impl/RollingLogsImpl.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 767f1d9467e..54aaac8a5ee 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -703,6 +703,9 @@ Release 2.4.0 - UNRELEASED HDFS-6130. NPE when upgrading namenode from fsimages older than -32. (wheat9) + HDFS-6115. Call flush() for every append on block scan verification log. + (Vinayakumar B via szetszwo) + BREAKDOWN OF HDFS-5698 SUBTASKS AND RELATED JIRAS HDFS-5717. Save FSImage header in protobuf. (Haohui Mai via jing9) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/RollingLogsImpl.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/RollingLogsImpl.java index ec7376b17d7..ed6bcaffdb2 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/RollingLogsImpl.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/RollingLogsImpl.java @@ -55,6 +55,7 @@ class RollingLogsImpl implements RollingLogs { + " is not yet opened."); } out.print(csq); + out.flush(); } return this; }