alertmanager/silence
Fabian Reinartz b6851a5421 silences: fix concurrent cache writes (#561)
This fixes #559 by removing concurrent map writes to the matcher cache.
The cache was guarded by the Silence's main lock, which only used a
read-lock on queries.
The cache's get methods lazily loads data into the cache and thus
causing concurrent writes.

We just change the main lock to always write-lock, as we don't expect
high lock contention at this point and would have it in a dedicated
cache lock anyway.
2016-11-21 11:09:49 +01:00
..
silencepb silence: add protobuf-based silence package. 2016-08-24 17:48:31 +02:00
silence.go silences: fix concurrent cache writes (#561) 2016-11-21 11:09:49 +01:00
silence_test.go silence: add metrics 2016-09-29 09:54:34 +02:00