MAPREDUCE-7158. Inefficient Flush Logic in JobHistory EventWriter. (Zichen Sun via wangda)
Change-Id: I99ace87980da03bb35a8012cea7218d602a8817a
(cherry picked from commit 762a56cc64
)
This commit is contained in:
parent
ea753046b0
commit
f214af74b2
|
@ -93,7 +93,6 @@ public class EventWriter {
|
||||||
wrapper.setType(event.getEventType());
|
wrapper.setType(event.getEventType());
|
||||||
wrapper.setEvent(event.getDatum());
|
wrapper.setEvent(event.getDatum());
|
||||||
writer.write(wrapper, encoder);
|
writer.write(wrapper, encoder);
|
||||||
encoder.flush();
|
|
||||||
if (this.jsonOutput) {
|
if (this.jsonOutput) {
|
||||||
out.writeBytes("\n");
|
out.writeBytes("\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue