OpenSearch/elasticsearch/x-pack/license-plugin
Simon Willnauer 7be765d2a0 Ensure we have a consistent view on OperationMode in Watcher (elastic/elasticsearch#3507)
Today the operation mode can be set to default for a short amout of
time until it's reset to the actual mode this can cause weird sideeffects
for users if it's read concurrently. Also the test relies on a certain
happens before relationship that is not guaranteed since the operation
mode is set before the listerner is run. This change also rewrites the test
to not use busy waiting but wait for the actual listern to be executed.

Original commit: elastic/x-pack-elasticsearch@a2a42b89e5
2016-09-16 22:10:51 +02:00
..
keys Moved shield, watcher, marvel and license plugin into common x-pack 2015-12-03 16:24:40 +01:00
src Ensure we have a consistent view on OperationMode in Watcher (elastic/elasticsearch#3507) 2016-09-16 22:10:51 +02:00
.gitignore Moved shield, watcher, marvel and license plugin into common x-pack 2015-12-03 16:24:40 +01:00