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) #41123

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
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

@benwtrent benwtrent merged commit 05cf539 into elastic:7.x Apr 11, 2019
@benwtrent benwtrent deleted the fix/bug-41090-7.x branch April 11, 2019 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants