Skip to content

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

@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