-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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
Copy link
Copy link
Closed
Labels
:Data Management/ILM+SLMDO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead.DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead.>bug
Description
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):
Lines 108 to 110 in 4739058
| 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Data Management/ILM+SLMDO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead.DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead.>bug
Type
Fields
Give feedbackNo fields configured for issues without a type.