MAPREDUCE-7162. TestEvents#testEvents fails. Contributed by Zhaohui Xin.

This commit is contained in:
Akira Ajisaka 2018-11-27 20:01:11 +09:00
parent 2730ead6b1
commit 1aad99a718
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50

View File

@ -94,6 +94,7 @@ synchronized void write(HistoryEvent event) throws IOException {
wrapper.setEvent(event.getDatum()); wrapper.setEvent(event.getDatum());
writer.write(wrapper, encoder); writer.write(wrapper, encoder);
if (this.jsonOutput) { if (this.jsonOutput) {
encoder.flush();
out.writeBytes("\n"); out.writeBytes("\n");
} }
} }