Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply cluster states in system context #53819

Conversation

DaveCTurner
Copy link
Contributor

Today cluster states are sometimes (rarely) applied in the default context
rather than system context, which means that any appliers which capture their
contexts cannot do things like remote transport actions when security is
enabled.

There are at least two ways that we end up applying the cluster state in the
default context:

  1. locally applying a cluster state that indicates that the master has failed
  2. the elected master times out while waiting for a response from another node

This commit ensures that cluster states are always applied in the system
context.

Mitigates #53751
Rework of #53785

@DaveCTurner DaveCTurner added WIP :Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v7.7.0 v7.6.2 labels Mar 19, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Cluster Coordination)

Copy link
Contributor Author

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

This reworks #53785 for the 7.x branch since the backport of the original PR highlighted a problem with deprecation warning headers.

@DaveCTurner
Copy link
Contributor Author

Closing this as it's not a good long-term solution and the preferred short-term solution is #53838.

@DaveCTurner DaveCTurner deleted the 2020-03-19-system-context-in-applier-7x branch March 20, 2020 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. WIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants