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] checking if p-tasks metadata is null before updating state (#41091) #41124

Merged
merged 1 commit into from
Apr 11, 2019

Conversation

benwtrent
Copy link
Member

If PersistentTasksCustomMetaData.TYPE is null, we would put a null value in the cluster state, which will fail the submitStateUpdateTask.

This does a null check to verify it is non-null before adding it to the metadata. All of the other methods in the class that interact with a PersistentTasksCustomMetaData already do a null check

closes #41090

forward port of: #41091

…tic#41091)

* [ML] checking if p-tasks metadata is null before updating state

* Adding test that validates fix

* removing debug println
@benwtrent benwtrent added >bug :ml Machine learning v8.0.0 labels Apr 11, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

Copy link
Contributor

@droberts195 droberts195 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 36c29d3 into elastic:master Apr 11, 2019
@benwtrent benwtrent deleted the fix/bug-41090-master branch April 11, 2019 18:54
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
…tic#41091) (elastic#41124)

* [ML] checking if p-tasks metadata is null before updating state

* Adding test that validates fix

* removing debug println
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.

Error upgrading from (<= 6.5) to 6.7.x
5 participants