Fix ITRealtimeIndexTaskTest Flakiness (#7232)

* Testing sleep change before posting events

* Added comment
This commit is contained in:
Justin Borromeo 2019-03-11 20:25:24 -07:00 committed by Fangjin Yang
parent 5e7cbe39fa
commit 0df8ee3f79
1 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,10 @@ public abstract class AbstractITRealtimeIndexTaskTest extends AbstractIndexerTes
LOG.info("indexerSpec: [%s]\n", task);
taskID = indexer.submitTask(task);
// sleep for a while to let peons finish starting up
TimeUnit.SECONDS.sleep(5);
// this posts 22 events, one every 4 seconds
// each event contains the current time as its timestamp except
// the timestamp for the 14th event is early enough that the event should be ignored