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

[ML][Transforms] signal listener early on task _stop failure #47954

Conversation

benwtrent
Copy link
Member

If there is some failure in the stop call, we don't handle it. Consequently, the listener could just spin forever waiting for a task to be removed when it never will be.

This adds some logic to signal back to the listener if some node failures or task failures occurred.

This is particularly troublesome on tests where a _stop fails as waitForPersistentTasksCondition is only ever fired on cluster state updates, and if no updates occur, it will simply sit there indefinitely.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml/Transform)

@benwtrent benwtrent changed the title [ML][Transforms] signal listner early on task _stop failure [ML][Transforms] signal listener early on task _stop failure Oct 11, 2019
Copy link
Contributor

@hendrikmuhs hendrikmuhs left a comment

Choose a reason for hiding this comment

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

LGTM

@benwtrent benwtrent merged commit 46a5164 into elastic:master Oct 14, 2019
@benwtrent benwtrent deleted the feature/ml-transforms-return-to-listner-on-failure branch October 14, 2019 14:10
benwtrent added a commit to benwtrent/elasticsearch that referenced this pull request Oct 14, 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