hello
We haven’t experienced this issue before, but recently we noticed that the primary shards of rollover-created indices are allocated normally, while the replica shards always remain in an UNASSIGNED state. We created a test index to verify this, and the same issue occurred—only the replica shards are not being allocated.
Below is the allocation explain output for the replica shard of the test index:
"index": "test-index-replica",
"shard": 0,
"primary": false,
"current_state": "unassigned",
"unassigned_info": {
"reason": "INDEX_CREATED",
"at": "2025-06-23T",
"last_allocation_status": "no_attempt"
},
"can_allocate": "yes",
"allocate_explanation": "Elasticsearch can allocate the shard.",
"target_node": {
"id": "4haAS8CuT-6xhgA",
"name": "data5",
"transport_address": "IP:9300",
"attributes": {
"transform.config_version": "10.0.0",
"xpack.installed": "true",
"ml.config_version": "12.0.0"
},
"roles": [
"data",
"data_cold",
"data_content",
"data_frozen",
"data_hot",
"data_warm",
"ingest",
"remote_cluster_client",
"transform"
]
},
"node_allocation_decisions": [
{
"node_id": "4haAS8CuT-6xhgA",
"node_name": "data5",
"transport_address": "IP:9300",
"node_attributes": {
"transform.config_version": "10.0.0",
"xpack.installed": "true",
"ml.config_version": "12.0.0"
},
"roles": [
"data",
"data_cold",
"data_content",
"data_frozen",
"data_hot",
"data_warm",
"ingest",
"remote_cluster_client",
"transform"
],
"node_decision": "yes",
"weight_ranking": 3
}
]
However, if we manually route the replica shard to the target node as shown below, it gets allocated successfully:
POST /_cluster/reroute
{
"commands": [
{
"allocate_replica": {
"index": "test-index-replica",
"shard": 0,
"node": "data5"
}
}
]
}
There is no disk watermark issue or capacity limitation on the target node.(The node has 1TB of free disk space available.)
Also, there are no ongoing recovery or balancing operations, and there are no pending tasks.
Our Elasticsearch cluster is running version 8.14.3.
We would appreciate any assistance or guidance to resolve this issue.
Thank you.