-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: fix leaking of Silences matcherCache entries (#3930)
* fix leaking of matcher cache entries Signed-off-by: Ethan Hunter <ehunter@hudson-trading.com> * improve clock logic in TestSilenceGCOverTime Signed-off-by: Ethan Hunter <ehunter@hudson-trading.com> * remove TestSilencesGc Signed-off-by: Ethan Hunter <ehunter@hudson-trading.com> * make table driven test more idiomatic Signed-off-by: Ethan Hunter <ehunter@hudson-trading.com> * replace test with one suggested by grobinson-grafana Signed-off-by: Ethan Hunter <ehunter@hudson-trading.com> * replace require.Len with require.Empty where needed Signed-off-by: Ethan Hunter <ehunter@hudson-trading.com> --------- Signed-off-by: Ethan Hunter <ehunter@hudson-trading.com> Co-authored-by: gotjosh <josue.abreu@gmail.com>
- Loading branch information
1 parent
76527e9
commit 3e6356b
Showing
2 changed files
with
130 additions
and
24 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