MAPREDUCE-6370. Made the timeline service v2 test driver write event ID. Contributed by Li Lu.

(cherry picked from commit 827633ee9fee26e3e15343cbccb0b7905ae02170)
This commit is contained in:
Zhijie Shen 2015-05-22 00:00:05 -07:00 committed by Sangjin Lee
parent 5088f6c76a
commit 561c746cbe
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ class SimpleEntityWriter extends EntityWriter {
entity.addInfo("PERF_TEST", payLoad);
// add an event
TimelineEvent event = new TimelineEvent();
event.setId("foo_event_id");
event.setTimestamp(System.currentTimeMillis());
event.addInfo("foo_event", "test");
entity.addEvent(event);