[RAC] Alert ILM policy shouldn't delete old indices after rollover #111029
Labels
bug
Fixes for quality problems that affect the customer experience
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
Theme: rac
label obsolete
v7.15.0
v8.0.0
This bug can be reproduced only after #110788 is merged
π Summary
While testing #110519, we figured out that the default alert ILM policy deletes the old indices after rollover.
Steps to reproduce
POST .alerts-observability.logs.alerts-default/_rollover
GET .alerts-observability.logs.alerts-default
.internal.alerts-observability.logs.alerts-default-000002
.internal.alerts-observability.logs.alerts-default-000002
-> it should be written in the old indexGET .alerts-observability.logs.alerts-default
-> it shouldn'tπ€ Some thoughts
I am putting some thoughts here. I am still wondering what triggered ILM to delete old indices. Was it actually the rollover or the fact that I created a new rule type after rollover? In Scenario 1 of this ticket I also did a rollover, but the old index was not deleted. It is worth reproducing both scenarios to exclude the possibility of something going wrong while testing.
Update
It turns out above scenario is not always reproducible. The ILM policy deletes old indices, but ES might not evaluate the policy immediately, which can make it hard to reproduce the error. This doesn't change the fact that the policy just deleted old indices unconditionally
Solution
We should update default ILM policy https://github.com/elastic/kibana/blob/master/x-pack/plugins/rule_registry/common/assets/lifecycle_policies/default_lifecycle_policy.ts and:
The text was updated successfully, but these errors were encountered: