OpenSearch/x-pack/plugin/watcher
Tim Vernum 4aa50ed348
Resolve concurrency with watcher trigger service (#39164)
The watcher trigger service could attempt to modify the perWatchStats
map simultaneously from multiple threads. This would cause the
internal state to become inconsistent, in particular the count()
method may return an incorrect value for the number of watches.

This changes replaces the implementation of the map with a
ConcurrentHashMap so that its internal state remains consistent even
when accessed from mutiple threads.

Backport of: #39092
2019-02-20 19:18:00 +11:00
..
licenses Dependencies: Update javax.mail in watcher to 1.6.2 (#33664) 2018-09-18 10:14:12 +02:00
src Resolve concurrency with watcher trigger service (#39164) 2019-02-20 19:18:00 +11:00
build.gradle Use ILM for Watcher history deletion (#37443) 2019-01-23 10:18:08 -07:00