Browse Source

HADOOP-3080. Removes flush calls from JobHistory. Contributed by Amareshwari Sriramadasu.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@640764 13f79535-47bb-0310-9956-ffa450edef68
Devaraj Das 17 years ago
parent
commit
ff28f858ce
2 changed files with 3 additions and 2 deletions
  1. 3 0
      CHANGES.txt
  2. 0 2
      src/java/org/apache/hadoop/mapred/JobHistory.java

+ 3 - 0
CHANGES.txt

@@ -349,6 +349,9 @@ Trunk (unreleased changes)
     HADOOP-3040. If the input line starts with the separator char, the key
     is set as empty. (Amareshwari Sriramadasu via ddas) 
 
+    HADOOP-3080. Removes flush calls from JobHistory.
+    (Amareshwari Sriramadasu via ddas) 
+
 Release 0.16.2 - Unreleased
 
   BUG FIXES

+ 0 - 2
src/java/org/apache/hadoop/mapred/JobHistory.java

@@ -206,7 +206,6 @@ public class JobHistory {
   static void log(PrintWriter out, RecordTypes recordType, Keys key, 
                   String value){
     out.println(recordType.name() + DELIMITER + key + "=\"" + value + "\""); 
-    out.flush();
   }
   
   /**
@@ -231,7 +230,6 @@ public class JobHistory {
     
     for (PrintWriter out : writers) {
       out.println(buf.toString());
-      out.flush();
     }
   }