Feature states can only be used when all nodes in cluster are version – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7.13-7.13

Briefly, this error occurs when you’re trying to use the feature_states API on an Elasticsearch cluster where not all nodes are running the same version. This API is version-specific and requires all nodes to be on the same version. To resolve this issue, you can either upgrade all nodes to the required version or refrain from using the feature_states API until all nodes are on the same version. Alternatively, you can isolate the nodes running the different version and run the API on the homogeneous cluster.

This guide will help you check for common problems that cause the log ” feature_states can only be used when all nodes in cluster are version [ ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: cluster, version.

Log Context

Log “feature_states can only be used when all nodes in cluster are version [” class name is SnapshotsService.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 }
 } else {
 featureStatesSet = Collections.emptySet();
 }
 } else if (requestedStates.isEmpty() == false) {
 listener.onFailure(new SnapshotException(snapshot; "feature_states can only be used when all nodes in cluster are version ["
 + FEATURE_STATES_VERSION + "] or higher; but at least one node in this cluster is on version ["
 + initialMinNodeVersion + "]"));
 return;
 } else {
 featureStatesSet = Collections.emptySet();

 

 [ratemypost]