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

Calling some ILM APIs during rolling 6.5 to 6.6/6.7 upgrades causes 6.5 nodes to fail to join the cluster #40565

Closed
gwbrown opened this issue Mar 27, 2019 · 4 comments
Labels
>bug :Data Management/ILM+SLM Index and Snapshot lifecycle management

Comments

@gwbrown
Copy link
Contributor

gwbrown commented Mar 27, 2019

Calling the ILM Start, Stop, or Put Lifecycle APIs in a mixed 6.5 and 6.6/6.7 cluster will cause the 6.5 nodes to fail to join the cluster with this error:

java.lang.IllegalArgumentException: Unknown NamedWriteable [org.elasticsearch.cluster.metadata.MetaData$Custom][index_lifecycle]

The cause of this is that the ILM custom metadata states that the minimum supported version is 6.5.0 (this constant was never updated when ILM was pushed back to 6.6):

public Version getMinimalSupportedVersion() {
return Version.V_6_5_0;
}

This causes the 6.5 nodes to try to read the custom metadata, but because ILM is not present in 6.5, this fails.

A full cluster restart upgrade to the new version appears to be the only way to resolve the issue if a cluster gets into this state.

@gwbrown gwbrown added >bug :Data Management/ILM+SLM Index and Snapshot lifecycle management labels Mar 27, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features

@gwbrown
Copy link
Contributor Author

gwbrown commented Mar 27, 2019

The minimum supported version is also incorrect in 7.0, 7.x, and master, although I don't believe it would cause the same issue, as it states a minimum version that is too high:

public Version getMinimalSupportedVersion() {
return Version.V_7_0_0;
}

@gwbrown
Copy link
Contributor Author

gwbrown commented Mar 28, 2019

Leaving this here so I don't forget: This can also happen with auto-follow patterns as the auto-follow pattern metadata uses this minimum compatability version:

public Version getMinimalSupportedVersion() {
return Version.V_6_5_0.minimumCompatibilityVersion();
}

Which evaluates to 5.6.0.

@gwbrown
Copy link
Contributor Author

gwbrown commented Apr 3, 2019

Fixed by #40569.

@gwbrown gwbrown closed this as completed Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Data Management/ILM+SLM Index and Snapshot lifecycle management
Projects
None yet
Development

No branches or pull requests

2 participants