[ML] Delete intervening results after now as well
When we revert to snapshot, if we delete intervening results
we should delete with an open end on the time range for the
case when future data has been posted to the job.
Original commit: elastic/x-pack-elasticsearch@c3f5e8f19eebec2db01d2b25548f662017aa809f
@@ -73,7 +73,6 @@ public class JobDataDeleter {
RangeQueryBuilder timeRange = QueryBuilders.rangeQuery(Result.TIMESTAMP.getPreferredName());
timeRange.gte(cutoffEpochMs);
- timeRange.lt(new Date().getTime());
RepeatingSearchScrollListener scrollSearchListener = new RepeatingSearchScrollListener(index, listener);
