Skip to content

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

@AthenaEryma

Description

@AthenaEryma

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Data Management/ILM+SLMDO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead.>bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions