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

[7.5][Transform] prevent assignment if any node is older than 7.4 #48055

Merged
merged 2 commits into from
Oct 15, 2019

Conversation

hendrikmuhs
Copy link

disable task assignment of transforms if any node uses version 7.2 or 7.2 (mixed cluster).

fixes #48019

Note: not needed for master as the upgrade path is 7.last -> master

@elasticmachine
Copy link
Collaborator

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

node.isDataNode() && node.getVersion().onOrAfter(params.getVersion())
node.isDataNode() &&
// see gh#48019 disable assignment if any node is using 7.2 or 7.3
clusterState.getNodes().getMinNodeVersion().onOrAfter(Version.V_7_4_0) &&
Copy link
Member

Choose a reason for hiding this comment

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

I think this condition should be outside of the selectLeastLoadedNode function.

It is also good to return a new custom assignment explaining why we are not assigning to a node (e.g. Not assigning persistent task as cluster contains nodes with version older than 7.4.0).

@hendrikmuhs hendrikmuhs merged commit b2ce728 into elastic:7.x Oct 15, 2019
hendrikmuhs pushed a commit to hendrikmuhs/elasticsearch that referenced this pull request Oct 16, 2019
disable task assignment of transforms if any node uses version 7.2 or 7.3 (mixed cluster).

fixes elastic#48019
hendrikmuhs pushed a commit that referenced this pull request Oct 17, 2019
disable task assignment of transforms if any node uses version 7.2 or 7.3 (mixed cluster).

fixes #48019
@tomcallahan tomcallahan added v7.4.2 and removed v7.4.1 labels Oct 22, 2019
@jrodewig jrodewig added v7.4.1 and removed v7.4.2 labels Oct 22, 2019
@droberts195 droberts195 added v7.4.2 and removed v7.4.1 labels Oct 30, 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.

6 participants