OpenSearch/elasticsearch
Alexander Reelsen bb033f1e00 Watcher: Clear out WatchStore on watch index deletion (elastic/elasticsearch#2807)
If someone deletes the watch index (i.e. by deleting all indices), the watcher
in memory store still contains all the watches and tries to execute watches -
which results in exceptions as the watch itself cannot be updated anymore.

In order to minimize this problem (it cant be get rid of completely), we should
act accordingly if the watch index goes missing (either deleted or closed) and
clear out the memory representation of watches in the watchstore as well as trying
to finish all the current executions.

Closes elastic/elasticsearch#2794

Original commit: elastic/x-pack-elasticsearch@12d98cd566
2016-09-07 15:06:03 +02:00
..
license-tools Build: Add task to build zip of license tools 2016-08-16 14:23:56 -07:00
qa [Monitoring] Use Low Level REST Client for HTTP Exporter 2016-09-05 15:16:03 -04:00
x-dev-tools Fix remaining fractional TimeValue issues with watcher 2016-09-06 09:53:22 -04:00
x-pack Watcher: Clear out WatchStore on watch index deletion (elastic/elasticsearch#2807) 2016-09-07 15:06:03 +02:00
x-pack-transport add a PreBuiltXPackTransportClient 2016-09-01 13:49:10 -04:00
build.gradle add a PreBuiltXPackTransportClient 2016-09-01 13:49:10 -04:00
checkstyle_suppressions.xml Remove suppression and implement hashCode 2016-02-09 21:49:13 -05:00