YARN-4814. ATS 1.5 timelineclient impl call flush after every event write. Contributed by Xuan Gong
(cherry picked from commit e8fc81f9c8
)
This commit is contained in:
parent
8360d98d6a
commit
3cea00a294
|
@ -379,6 +379,8 @@ public class FileSystemTimelineWriter extends TimelineWriter{
|
||||||
this.stream = createLogFileStream(fs, logPath);
|
this.stream = createLogFileStream(fs, logPath);
|
||||||
this.jsonGenerator = new JsonFactory().createJsonGenerator(stream);
|
this.jsonGenerator = new JsonFactory().createJsonGenerator(stream);
|
||||||
this.jsonGenerator.setPrettyPrinter(new MinimalPrettyPrinter("\n"));
|
this.jsonGenerator.setPrettyPrinter(new MinimalPrettyPrinter("\n"));
|
||||||
|
this.jsonGenerator.configure(
|
||||||
|
JsonGenerator.Feature.FLUSH_PASSED_TO_STREAM, false);
|
||||||
this.lastModifiedTime = Time.monotonicNow();
|
this.lastModifiedTime = Time.monotonicNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue