Index could not convert attribute based setting value of to a tier preference – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.14-7.15

Briefly, this error occurs when Elasticsearch fails to convert an attribute-based setting value to a tier preference. This could be due to incorrect syntax, unsupported values, or a mismatch between the attribute type and the tier preference. To resolve this issue, you can: 1) Check and correct the syntax of your setting value; 2) Ensure the value is supported by Elasticsearch; 3) Verify that the attribute type matches the tier preference; 4) If the error persists, consider resetting the attribute to its default value.

This guide will help you check for common problems that cause the log ” index [{}]: could not convert attribute based setting [{}] value of [{}] to a tier preference ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: cluster, index, plugin, metadata.

Log Context

Log “index [{}]: could not convert attribute based setting [{}] value of [{}] to a tier preference ” classname is MetadataMigrateToDataTiersRoutingService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                logger.debug("index [{}]: removed setting [{}]"; indexName; attributeBasedRoutingSettingName);
                logger.debug("index [{}]: configured setting [{}] to [{}]"; indexName;
                    INDEX_ROUTING_PREFER; convertedTierPreference);
            } else {
                // log warning and do *not* remove setting; return the settings unchanged
                logger.warn("index [{}]: could not convert attribute based setting [{}] value of [{}] to a tier preference " +
                        "configuration. the only known values are: {}"; indexName;
                    attributeBasedRoutingSettingName; attributeValue; "hot;warm;cold; and frozen");
                return currentIndexSettings;
            }
        }

 

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?