OpenSearch/plugin
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
..
bwc Relax remote check for bwc project checkouts (elastic/x-pack-elasticsearch#3924) 2018-02-13 14:54:38 -06:00
core Remove license key leniency (elastic/x-pack-elasticsearch#4277) 2018-04-03 13:45:07 -04:00
deprecation Decouple XContentBuilder from BytesReference (elastic/x-pack-elasticsearch#4119) 2018-03-14 13:48:05 -06:00
graph [TEST] Add deterministic routing of docs to shards to prevent 2018-02-19 15:46:51 +00:00
logstash [Logstash][Monitoring] Fix Registered Usage and Add Tests (elastic/x-pack-elasticsearch#4075) 2018-03-08 14:53:05 -08:00
ml Adjust to Nullable moving into core (elastic/x-pack-elasticsearch#4275) 2018-04-03 07:56:21 -06:00
monitoring [TEST][Monitoring] Remove Unneeded Assert (elastic/x-pack-elasticsearch#4284) 2018-04-03 15:28:48 -04:00
rollup [Rollup] Delegate GetJobs to master (elastic/x-pack-elasticsearch#4247) 2018-03-30 06:24:29 -07:00
security Adjust to Nullable moving into core (elastic/x-pack-elasticsearch#4275) 2018-04-03 07:56:21 -06:00
sql Adjust to Nullable moving into core (elastic/x-pack-elasticsearch#4275) 2018-04-03 07:56:21 -06:00
src/test Watcher: Execute Watch API returns better error message (elastic/x-pack-elasticsearch#4228) 2018-04-04 09:37:13 +02:00
upgrade Disable security for trial licenses by default (elastic/x-pack-elasticsearch#4120) 2018-03-21 21:09:44 -06:00
watcher Watcher: Prevent watch acknowledgement while watch is executing (elastic/x-pack-elasticsearch#4224) 2018-04-04 10:15:20 +02:00
build.gradle Disable security for trial licenses by default (elastic/x-pack-elasticsearch#4120) 2018-03-21 21:09:44 -06:00