From abd9d93a5544a3172c9d9a48385c2ce7fc13fa34 Mon Sep 17 00:00:00 2001 From: Wangda Tan Date: Tue, 13 Nov 2018 11:25:41 -0800 Subject: [PATCH] MAPREDUCE-7158. Inefficient Flush Logic in JobHistory EventWriter. (Zichen Sun via wangda) Change-Id: I99ace87980da03bb35a8012cea7218d602a8817a (cherry picked from commit 762a56cc64bc07d57f94e253920534b8e049f238) --- .../java/org/apache/hadoop/mapreduce/jobhistory/EventWriter.java | 1 - 1 file changed, 1 deletion(-) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/jobhistory/EventWriter.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/jobhistory/EventWriter.java index 46e4f1a1c0b..b07c6762f74 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/jobhistory/EventWriter.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/jobhistory/EventWriter.java @@ -93,7 +93,6 @@ public class EventWriter { wrapper.setType(event.getEventType()); wrapper.setEvent(event.getDatum()); writer.write(wrapper, encoder); - encoder.flush(); if (this.jsonOutput) { out.writeBytes("\n"); }