OpenSearch/watcher/docs
Martijn van Groningen c916c5e35b watcher: If during startup a watch record couldn't be saved because of a version conflict then overwrite it.
In certain cases this could cause Watcher to prevent from being started (either automatically or manually):
* The watch of the triggered watch doesn't exist
* The execution service rejected the execution the watch. (due to not enough threads in the thread pool)

If a watch record gets overwritten this means it has been executed before when watcher was running, but we were unable to delete the triggered watch. So we executed the a watch twice with the same trigger event. This can happen if watcher was stopped before because of the node running Watcher unexpectedly stopped (master left, power loss etc.)

In stead of failing to write the watch record, we overwrite it set the state 'executed_multiple_times'.

Closes elastic/elasticsearch#695

Original commit: elastic/x-pack-elasticsearch@20f805cb99
2015-11-10 09:24:15 +07:00
..
administering-watcher Watcher Docs: Fixed messed up cross document links. 2015-10-21 14:29:23 -07:00
example-watches Watcher Docs: Fixed messed up cross document links. 2015-10-21 14:29:23 -07:00
how-watcher-works Removed dynamic index names in favour for ES' date math index names. 2015-09-25 15:55:22 +02:00
images Watcher Docs: Reworked HipChat and Slack action docs. Closes elastic/elasticsearch#511, elastic/elasticsearch#570. 2015-09-09 16:49:51 -07:00
managing-watches initial migration of watcher 2015-07-13 12:23:07 +02:00
reference Watcher: Add chained input 2015-10-30 10:22:26 +01:00
administering-watcher.asciidoc Watcher Docs: Reworked HipChat and Slack action docs. Closes elastic/elasticsearch#511, elastic/elasticsearch#570. 2015-09-09 16:49:51 -07:00
customizing-watches.asciidoc Documentation: Repleace search_type=count with size=0 in the docs 2015-10-13 18:24:36 +02:00
example-watches.asciidoc initial migration of watcher 2015-07-13 12:23:07 +02:00
getting-started.asciidoc actual _watcher/stats response 2015-10-13 15:19:03 -07:00
how-watcher-works.asciidoc Documentation: Repleace search_type=count with size=0 in the docs 2015-10-13 18:24:36 +02:00
index.asciidoc Updated docs links to point to master branches 2015-10-28 01:33:59 +01:00
installing-watcher.asciidoc Docs: Added uninstall topics to Watcher & Shield. Closes elastic/elasticsearch#801. 2015-11-05 17:54:35 -08:00
introduction.asciidoc initial migration of watcher 2015-07-13 12:23:07 +02:00
managing-watcher-licenses.asciidoc Docs: Consolidated Watcher 2.0 release notes. Fixed pkg install cmds and subscription links for Watcher & Shield. 2015-10-27 18:01:41 -07:00
managing-watches.asciidoc initial migration of watcher 2015-07-13 12:23:07 +02:00
reference.asciidoc initial migration of watcher 2015-07-13 12:23:07 +02:00
release-notes.asciidoc watcher: If during startup a watch record couldn't be saved because of a version conflict then overwrite it. 2015-11-10 09:24:15 +07:00
troubleshooting.asciidoc initial migration of watcher 2015-07-13 12:23:07 +02:00