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] Unused state remover should also account for jobs in index #37119

Conversation

dimitris-athanasiou
Copy link
Contributor

The unused state remover was never adjusted to account for jobs stored
in the config index. The result was that when triggered it removed
state for all jobs stored in the config index.
This commit fixes the issue.

Closes #37109

The unused state remover was never adjusted to account for jobs stored
in the config index. The result was that when triggered it removed
state for all jobs stored in the config index.
This commit fixes the issue.

Closes elastic#37109
@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

I know we originally discussed removing the cluster state bit from 7.x, but it shouldn't hurt to leave in 7.x and doing this would avoid a race condition where a full cluster restart upgrade from 6.x is done at the exact moment the nightly maintenance check happens. So it's probably best to forward port to master as-is, then the cluster state bit will eventually get removed when master is for 8.x.

@dimitris-athanasiou
Copy link
Contributor Author

Sounds good. I'll add a TODO.

@dimitris-athanasiou
Copy link
Contributor Author

jenkins please test this

1 similar comment
@dimitris-athanasiou
Copy link
Contributor Author

jenkins please test this

@dimitris-athanasiou
Copy link
Contributor Author

run gradle build tests 1

@dimitris-athanasiou dimitris-athanasiou merged commit c62e022 into elastic:6.x Jan 4, 2019
@dimitris-athanasiou dimitris-athanasiou deleted the unused-state-remover-should-also-account-for-jobs-in-index branch January 4, 2019 10:36
dimitris-athanasiou added a commit that referenced this pull request Jan 4, 2019
The unused state remover was never adjusted to account for jobs stored
in the config index. The result was that when triggered it removed
state for all jobs stored in the config index.
This commit fixes the issue.

Closes #37109
dimitris-athanasiou added a commit that referenced this pull request Jan 4, 2019
The unused state remover was never adjusted to account for jobs stored
in the config index. The result was that when triggered it removed
state for all jobs stored in the config index.
This commit fixes the issue.

Closes #37109
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.

4 participants