-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
133991: kvclient: fix rangefeed retry reason counters r=stevendanna a=stevendanna Previously, retriable errors would often be recorded in the wrong retry counter because the code that initialised the metrics assumed a stable ordering when iterating a map. Given the amount of work that is about to happen when restarting a rangefeed, I doubt the optimization of a slice lookup vs a map lookup is that important here. Further, we almost surely do not want to panic just because we couldn't find a metric for the reason a node might have sent to us, so now rather than panic'ing we have a fallback counter for unknown error types. Epic: none Release note: Fix bug that could result in incorrect metrics related to retriable rangefeed errors. Co-authored-by: Steven Danna <[email protected]>
- Loading branch information
Showing
4 changed files
with
32 additions
and
31 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