-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[da-vinci][server] Alert on failed ingestions for both incomplete and…
… completed partitions (#727) Problem: The "ingestion_task_errored_gauge" metric checks ingestion errors for partitions which explicitly reports ERROR to ZK. However, for COMPLETED partition, ERROR will not be reported in order to protect read path, but ingestion will stop without any alerts until we see a high lag after rolling bounce or users notice data staleness/inconsistency. Fix: Added a new set to track the partition IDs whose ingestion has failed and stopped. Life cycles of the partitions IDs in the set: 1. When a partition encounters exceptions, update both the partition-to-exception list and failed-partitions set; 2. When an unsubscribe action is triggered by Helix for the failed partition, remove it from both the partition-to-exception list and failed-partitions set; 3. When an unsubscribe action is triggered by internal logic, remove the partition from the partition-to-exception list (stop logging) but keep it in the failed-partitions set (keep alerting); 4. When an subscribe action happens for the failed partition, regardless of who triggers it, remove it from both trackings, since ingestion will start over again.
- Loading branch information
1 parent
0a04e37
commit f27bcc1
Showing
6 changed files
with
99 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters