hadoop git commit: YARN-4814. ATS 1.5 timelineclient impl call flush after every event write. Contributed by Xuan Gong (cherry picked from commit e8fc81f9c812b0c167411de7f1789a9a433a0d57)

2016-03-25 Thread jlowe
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.8 416ea158c -> e06446be7


YARN-4814. ATS 1.5 timelineclient impl call flush after every event write. 
Contributed by Xuan Gong
(cherry picked from commit e8fc81f9c812b0c167411de7f1789a9a433a0d57)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/e06446be
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/e06446be
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/e06446be

Branch: refs/heads/branch-2.8
Commit: e06446be74c01f4e1713cf10de37883346c8ed43
Parents: 416ea15
Author: Jason Lowe 
Authored: Fri Mar 25 20:15:49 2016 +
Committer: Jason Lowe 
Committed: Fri Mar 25 20:20:01 2016 +

--
 .../hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java  | 2 ++
 1 file changed, 2 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/hadoop/blob/e06446be/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java
--
diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java
 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java
index 35d9970..3fa8691 100644
--- 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java
+++ 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java
@@ -379,6 +379,8 @@ public class FileSystemTimelineWriter extends 
TimelineWriter{
   this.stream = createLogFileStream(fs, logPath);
   this.jsonGenerator = new JsonFactory().createJsonGenerator(stream);
   this.jsonGenerator.setPrettyPrinter(new MinimalPrettyPrinter("\n"));
+  this.jsonGenerator.configure(
+  JsonGenerator.Feature.FLUSH_PASSED_TO_STREAM, false);
   this.lastModifiedTime = Time.monotonicNow();
 }
 



hadoop git commit: YARN-4814. ATS 1.5 timelineclient impl call flush after every event write. Contributed by Xuan Gong (cherry picked from commit e8fc81f9c812b0c167411de7f1789a9a433a0d57)

2016-03-25 Thread jlowe
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 8360d98d6 -> 3cea00a29


YARN-4814. ATS 1.5 timelineclient impl call flush after every event write. 
Contributed by Xuan Gong
(cherry picked from commit e8fc81f9c812b0c167411de7f1789a9a433a0d57)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/3cea00a2
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/3cea00a2
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/3cea00a2

Branch: refs/heads/branch-2
Commit: 3cea00a29471b82ca020874ea51324c19b5cdd97
Parents: 8360d98
Author: Jason Lowe 
Authored: Fri Mar 25 20:15:49 2016 +
Committer: Jason Lowe 
Committed: Fri Mar 25 20:19:15 2016 +

--
 .../hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java  | 2 ++
 1 file changed, 2 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/hadoop/blob/3cea00a2/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java
--
diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java
 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java
index 35d9970..3fa8691 100644
--- 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java
+++ 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java
@@ -379,6 +379,8 @@ public class FileSystemTimelineWriter extends 
TimelineWriter{
   this.stream = createLogFileStream(fs, logPath);
   this.jsonGenerator = new JsonFactory().createJsonGenerator(stream);
   this.jsonGenerator.setPrettyPrinter(new MinimalPrettyPrinter("\n"));
+  this.jsonGenerator.configure(
+  JsonGenerator.Feature.FLUSH_PASSED_TO_STREAM, false);
   this.lastModifiedTime = Time.monotonicNow();
 }