OpenSearch/docs/en/rest-api/watcher
Alexander Reelsen 2da6d14859 Watcher: Prevent watch acknowledgement while watch is executing (elastic/x-pack-elasticsearch#4224)
When a watch is acknowledged, while it is also being executed, the
acknowledgment information can get lost. The reason for this is the
fact, that the execution writes the watch status inside of the watch
regardless, if other writes happened inbetween to make sure the
execution state is caught.

This commit checks the current executions in the execution service and
aborts the API call, if the specified watch ID can be found in those.

Note, this does not prevent this issue fully, as a watch could be
triggered, while the acknowledgement update is running, but it does
reduce the surface area of this problem. In order to properly solve
this, indexing the watch status as part of a watch would need to be
changed.

relates elastic/x-pack-elasticsearch#4003

Original commit: elastic/x-pack-elasticsearch@d7e218b2ac
2018-04-04 10:15:20 +02:00
..
ack-watch.asciidoc Watcher: Prevent watch acknowledgement while watch is executing (elastic/x-pack-elasticsearch#4224) 2018-04-04 10:15:20 +02:00
activate-watch.asciidoc Watcher: Never return credentials after watch creation... (elastic/x-pack-elasticsearch#3581) 2018-02-20 10:09:27 +01:00
deactivate-watch.asciidoc Watcher: Never return credentials after watch creation... (elastic/x-pack-elasticsearch#3581) 2018-02-20 10:09:27 +01:00
delete-watch.asciidoc Format Watcher APIs (elastic/x-pack-elasticsearch#2382) 2017-09-14 13:01:47 -07:00
execute-watch.asciidoc Docs: Explain watcher security integration/limitations (elastic/x-pack-elasticsearch#3106) 2017-11-29 14:48:06 +01:00
get-watch.asciidoc Watcher: Never return credentials after watch creation... (elastic/x-pack-elasticsearch#3581) 2018-02-20 10:09:27 +01:00
put-watch.asciidoc Docs: Explain watcher security integration/limitations (elastic/x-pack-elasticsearch#3106) 2017-11-29 14:48:06 +01:00
start.asciidoc Format Watcher APIs (elastic/x-pack-elasticsearch#2382) 2017-09-14 13:01:47 -07:00
stats.asciidoc Format Watcher APIs (elastic/x-pack-elasticsearch#2382) 2017-09-14 13:01:47 -07:00
stop.asciidoc Format Watcher APIs (elastic/x-pack-elasticsearch#2382) 2017-09-14 13:01:47 -07:00