OpenSearch/x-pack/plugin/ml
Dimitris Athanasiou 79e414df86
[ML] Fix datafeed skipping first bucket after lookback when aggs are … (#39859) (#39958)
The problem here was that `DatafeedJob` was updating the last end time searched
based on the `now` even though when there are aggregations, the extactor will
only search up to the floor of `now` against the histogram interval.
This commit fixes the issue by using the end time as calculated by the extractor.

It also adds an integration test that uses aggregations. This test would fail
before this fix. Unfortunately the test is slow as we need to wait for the
datafeed to work in real time.

Closes #39842
2019-03-13 09:09:07 +02:00
..
cpp-snapshot Add cache cleaning task for ML snapshot (#37505) 2019-01-19 16:16:58 -08:00
licenses [ML] Rename log structure to file structure (#33421) 2018-09-06 09:13:08 +01:00
qa [ML] Fix datafeed skipping first bucket after lookback when aggs are … (#39859) (#39958) 2019-03-13 09:09:07 +02:00
src [ML] Fix datafeed skipping first bucket after lookback when aggs are … (#39859) (#39958) 2019-03-13 09:09:07 +02:00
build.gradle Converting randomized testing to create a separate unitTest task instead of replacing the builtin test task (#36311) 2018-12-19 08:25:20 +02:00