From b796388431674e630cb5cde09b62f2b668488351 Mon Sep 17 00:00:00 2001 From: Dimitrios Athanasiou Date: Thu, 27 Apr 2017 16:36:39 +0100 Subject: [PATCH] [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 --- .../elasticsearch/xpack/ml/job/persistence/JobDataDeleter.java | 1 - 1 file changed, 1 deletion(-) diff --git a/plugin/src/main/java/org/elasticsearch/xpack/ml/job/persistence/JobDataDeleter.java b/plugin/src/main/java/org/elasticsearch/xpack/ml/job/persistence/JobDataDeleter.java index 010121f2725..c3a65113e7b 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/ml/job/persistence/JobDataDeleter.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/ml/job/persistence/JobDataDeleter.java @@ -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);