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

[7.x] [ML] fixes testWatchdog test verifying matcher is interrupted on timeout (#62391) #62447

Merged
merged 1 commit into from
Sep 16, 2020

Conversation

benwtrent
Copy link
Member

Backports the following commits to 7.x:

…out (elastic#62391)

Constructing the timout checker FIRST and THEN registering the watcher allows the test to have a race condition.

The timeout value could be reached BEFORE the matcher is added. To prevent the matcher never being interrupted, a new timedOut value is added to the watcher thread entry. Then when a new matcher is registered, if the thread was previously timedout, we interrupt the matcher immediately.

closes elastic#48861
@benwtrent benwtrent added :ml Machine learning backport labels Sep 16, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml)

@benwtrent benwtrent merged commit 341eeae into elastic:7.x Sep 16, 2020
@benwtrent benwtrent deleted the backport/7.x/pr-62391 branch September 16, 2020 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :ml Machine learning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants