Migrate to data tiers API can configure data_content/data_hot for partially mounted indices #97898
Labels
>bug
:Data Management/ILM+SLM
Index and Snapshot lifecycle management
Team:Data Management
Meta label for data/management team
v7.17.13
v8.9.1
v8.10.0
Elasticsearch Version
7.17, 8.x
Installed Plugins
No response
Java Version
bundled
OS Version
Darwin
Problem Description
The migrate to data tiers API can sometimes configure an illegal value for the
_tier_preference
setting for partially mounted indices.This can happen if two conditions are met:
_tier_preference
configureddata
custom attribute name for any allocation filtering, but either uses some other node attribute name or none at all)In this case this piece of code kicks in to configure a default tier preference https://github.com/elastic/elasticsearch/blob/main/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/cluster/metadata/MetadataMigrateToDataTiersRoutingService.java#L534
This is wrong, and we should configure the
MountSearchableSnapshotRequest.Storage.defaultDataTiersPreference
as the tier preference.Relates to #84758
Steps to Reproduce
partial-test
_tier_preference
usingLogs (if relevant)
No response
The text was updated successfully, but these errors were encountered: