Skip to content

Conversation

@benwtrent
Copy link
Member

Backports the following commits to 7.x:

If a `max` value in a given composite aggregation bucket is the same as the current after page floor, the datafeed could cancel processing composite aggregation pages too early.

It will see that `max` timestamp aligned with the interval and stop processing. This is a bug. There may be still other terms
to process within that `date_histogram` bucket in subsequent pages as the order of the buckets are done by term NOT by max timestamp.

This commit corrects this to verify that if the process is canceled, the datafeed continues to finish out the current date_histogram bucket, regardless if the first timestamp seen after cancelling aligns with the current page or not.

closes elastic#71212
@benwtrent benwtrent added :ml Machine learning backport labels Apr 2, 2021
@elasticmachine elasticmachine added the Team:ML Meta label for the ML team label Apr 2, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@benwtrent
Copy link
Member Author

@elasticmachine update branch

@benwtrent benwtrent merged commit 4c04803 into elastic:7.x Apr 5, 2021
@benwtrent benwtrent deleted the backport/7.x/pr-71221 branch April 5, 2021 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :ml Machine learning Team:ML Meta label for the ML team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants