Skip to content

Conversation

@spinscale
Copy link
Contributor

A wrong check in the activate watch API could lead to watches triggering
on wrong nodes. The check was supposed to check if watch execution
was distributed already in 6.x and only if not, then trigger locally.

The check however was broken and triggered the watch only when
distributed watch execution was actually enabled.

Due to another check in the trigger schedule engine, this problem is already solved on 6.3 on all non-data nodes (like client nodes), as no trigger is started there. However this needs to be fixed when you connect to a different data node (different as in where the watcher shard that maintains this watch is not).

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

A wrong check in the activate watch API could lead to watches triggering
on wrong nodes. The check was supposed to check if watch execution
was distributed already in 6.x and only if not, then trigger locally.

The if-condition however was broken and triggered the watch only when
distributed watch execution was actually enabled.
@spinscale spinscale force-pushed the 1805-prevent-activate-watch-api-from-triggering-watches-on-wrong-nodes branch from 28f6c33 to 0440c4c Compare May 15, 2018 13:29
Copy link
Contributor

@hub-cap hub-cap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants