Requested feature states – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7.12-7.13

Briefly, this error occurs when Elasticsearch is asked to perform an operation that requires certain feature states, but those feature states are not currently enabled or available. This could be due to a misconfiguration or a missing plugin. To resolve this issue, you can check your Elasticsearch configuration to ensure that the required feature states are enabled. If they are not, you can enable them. If the feature states are part of a plugin that is not installed, you will need to install the necessary plugin.

This guide will help you check for common problems that cause the log ” requested feature states [ ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: .

Log Context

Log “requested feature states [” class name is RestoreService.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 "] indicates that no feature states should be restored; but other feature states were requested: " + requestedStates);
 }
 if (snapshotFeatureStates.keySet().containsAll(requestedStates) == false) {
 Set nonExistingRequestedStates = new HashSet<>(requestedStates);
 nonExistingRequestedStates.removeAll(snapshotFeatureStates.keySet());
 throw new SnapshotRestoreException(snapshot; "requested feature states [" + nonExistingRequestedStates +
 "] are not present in snapshot");
 }
 featureStatesToRestore = new HashMap<>(snapshotFeatureStates);
 featureStatesToRestore.keySet().retainAll(requestedStates);
 }

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?