MAPREDUCE-7162. TestEvents#testEvents fails. Contributed by Zhaohui Xin.
(cherry picked from commit 1aad99a718
)
This commit is contained in:
parent
eb43772896
commit
5e2f123748
|
@ -94,6 +94,7 @@ public class EventWriter {
|
||||||
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue