elastic-recheck/elastic_recheck/tests
Clark Boylan 02d0651f29 Better event checking timeouts
Previously we gave every event a 20 minute timeout. This meant that we
could eventually rollover on the day and start querying against current
indexes for data in older indexes. If this happens every query would
fail because we are looking in the wrong index. Every query failing
means we run the 20 minute timeout every time.

All this results in snowballing never being able to check if events are
indexed.

Address this by using the gerrit eventCreatedOn timestamp to determine
when our timeout is hit. We will timeout 20 minutes from that timestamp
regardless of how long interim processing has taken us. This should over
longer periods of time ensure we query the current index for current
events.

Change-Id: Ic9ed7fefae37d2668de5d89e0d06b8326eadfbb9
2018-11-30 19:34:54 +00:00
..
functional Made elastic-recheck py3 compatible 2018-11-29 20:15:07 +00:00
unit Better event checking timeouts 2018-11-30 19:34:54 +00:00
__init__.py Drop mox usage 2018-08-21 21:40:15 -04:00