From 762a56cc64bc07d57f94e253920534b8e049f238 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 --- .../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 46e4f1a1c0..b07c6762f7 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 @@ synchronized void write(HistoryEvent event) throws IOException { wrapper.setType(event.getEventType()); wrapper.setEvent(event.getDatum()); writer.write(wrapper, encoder); - encoder.flush(); if (this.jsonOutput) { out.writeBytes("\n"); }