mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 05:58:44 +00:00
Martijn van Groningen
478d5ecc48
Stop the TriggeredWatchStore and HistoryStore if there are no current executions.
There may be current executions still going on during stopping. We should try to wait for the current executions to have completed. Otherwise we can run into a situation where we didn't delete the watch from the .triggered_watches index, but did insert into the history index. Upon start this can lead to DocumentAlreadyExistsException, because we already stored the history record during shutdown... Introduced `CurrentExecutions` to handle this synchronization. (we always first store the watch record and then remove the triggered watch) Original commit: elastic/x-pack-elasticsearch@89c4a8d8ad
= Elasticsearch Watcher Plugin This plugins adds conditioned scheduled tasks features to elasticsearch - such a task is called a `Watch`. You can build the plugin with `mvn package`. The documentation is put in the `docs/` directory.
Description
Languages
Java
99.5%
Groovy
0.4%