I have created a data stream with ILM with phases ranging from Hot to Deleted.
The backing indices are successfully moved into Frozen state but never continue into the Deleted phase.
Why are the indices not moving to deleted state?
Here is the lifecycle policy:
{
"filebeat" : {
"version" : 11,
"modified_date" : "2022-05-11T10:05:49.653Z",
"policy" : {
"phases" : {
"frozen" : {
"min_age" : "70m",
"actions" : {
"searchable_snapshot" : {
"snapshot_repository" : "filebeat",
"force_merge_index" : true
}
}
},
"warm" : {
"min_age" : "30m",
"actions" : {
"set_priority" : {
"priority" : 50
}
}
},
"cold" : {
"min_age" : "50m",
"actions" : {
"set_priority" : {
"priority" : 0
}
}
},
"hot" : {
"min_age" : "0ms",
"actions" : {
"rollover" : {
"max_size" : "50gb",
"max_age" : "20m"
}
}
},
"delete" : {
"min_age" : "90m",
"actions" : {
"delete" : {
"delete_searchable_snapshot" : true
}
}
}
}
},
"in_use_by" : {
"indices" : [
".ds-filebeat-data-stream2-2022.05.12-000056",
".ds-filebeat-data-stream2-2022.05.12-000055",
".ds-filebeat-data-stream2-2022.05.12-000058",
".ds-filebeat-data-stream2-2022.05.12-000057",
".ds-filebeat-data-stream-2022.05.06-000030",
".ds-filebeat-data-stream2-2022.05.12-000059",
".ds-filebeat-data-stream-2022.05.06-000031"
],
"data_streams" : [
"filebeat-data-stream2",
"filebeat-data-stream"
],
"composable_templates" : [
"filebeat"
]
}
}
}
And here is the example of one backing index that is stuck in Frozen state:
".ds-filebeat-data-stream2-2022.05.11-000009" : {
"index" : ".ds-filebeat-data-stream2-2022.05.11-000009",
"managed" : true,
"policy" : "filebeat",
"lifecycle_date_millis" : 1652279563554,
"age" : "1.26d",
"phase" : "frozen",
"phase_time_millis" : 1652284361763,
"action" : "searchable_snapshot",
"action_time_millis" : 1652284361763,
"step" : "wait-for-index-color",
"step_time_millis" : 1652285568765,
"repository_name" : "filebeat",
"snapshot_name" : "2022.05.11-.ds-filebeat-data-stream2-2022.05.11-000009-filebeat-u3zlsfkdt1kl1jm5yvdtca",
"step_info" : {
"message" : "index is not green; not all shards are active"
},
"phase_execution" : {
"policy" : "filebeat",
"phase_definition" : {
"min_age" : "70m",
"actions" : {
"searchable_snapshot" : {
"snapshot_repository" : "filebeat",
"force_merge_index" : true
}
}
},
"version" : 11,
"modified_date_in_millis" : 1652263549653
}
},