[Alerting] Gracefully handle errors when retrieving task document on rule disable #118024
Labels
bug
Fixes for quality problems that affect the customer experience
estimate:medium
Medium Estimated Level of Effort
Feature:Alerting/RulesFramework
Issues related to the Alerting Rules Framework
impact:high
Addressing this issue will have a high level of impact on the quality/strength of our product.
resilience
Issues related to Platform resilience in terms of scale, performance & backwards compatibility
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
v7.16.0
When rules are disabled, active alerts for that rule are auto-resolved to avoid zombie active alerts. I noticed while writing a functional test for another issue that if the task manager doc for the rule is missing, the disable call throws a 404
and does not disable the rule. We may want to handle this case better, as if the task document is missing and we can't disable the rule, we can't then re-enable it to create a new task document.
We should figure out what the expected behavior should be. Maybe only catch 404s and continue disabling the rule and throw other types of errors? Or allow rule to be disabled regardless (possibly leading to zombie active alerts?)
The text was updated successfully, but these errors were encountered: