alertmanager/silence
Ethan Hunter 3e6356b4c9
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>
2024-08-21 17:10:15 +01:00
..
silencepb Update github.com/gogo/protobuf to v1.3.2 (#2478) 2021-02-09 16:49:07 +01:00
silence.go bugfix: fix leaking of Silences matcherCache entries (#3930) 2024-08-21 17:10:15 +01:00
silence_bench_test.go Remove Id return from silences.Set(*pb.Silence) 2024-06-20 15:47:49 +01:00
silence_test.go bugfix: fix leaking of Silences matcherCache entries (#3930) 2024-08-21 17:10:15 +01:00