Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat big changes in searchCount as significant and persist the document after such changes #44413

Merged
merged 2 commits into from
Jul 16, 2019

Conversation

przemekwitek
Copy link
Contributor

Currently, if the total search time doesn't change because searches are lightning-fast (i.e. take 0ms), the
datafeed timing stats are never persisted. This might have caused DatafeedJobIT.java test failures as the tests expect the searchCount to always increase after datafeed had done its job.

This PR aims to fix that by recognizing changes made to searchCount and persisting the datafeed timing stats should the searchCount changed significantly.

Related to: #44335, #44196

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

Copy link
Member

@davidkyle davidkyle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@przemekwitek przemekwitek merged commit c0559ec into elastic:master Jul 16, 2019
@przemekwitek przemekwitek deleted the datafeed-stats-test-fix branch July 16, 2019 12:12
przemekwitek added a commit to przemekwitek/elasticsearch that referenced this pull request Jul 16, 2019
przemekwitek added a commit that referenced this pull request Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants