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

Check reserved state in Metadata.isGlobalStateEquals #92124

Merged
merged 5 commits into from
Dec 7, 2022

Conversation

grcevski
Copy link
Contributor

@grcevski grcevski commented Dec 5, 2022

This fixes a bug where we didn't properly check for the reserved state in global state changes. The bug manifests itself as transient reserved state between node restarts, unless another field in the Metadata is set that causes a global state update.

I noticed this bug when debugging the issue with role mappings (#91939)

TODO:

  • Add integration test that ensures reserved state is there across restarts

This fixes a bug where we didn't properly check for
the reserved state in global state changes. The bug
manifests itself as transient reserved state between
node restarts.
@grcevski grcevski added >bug :Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team auto-backport Automatically create backport pull requests when merged v8.6.1 v8.7.0 labels Dec 5, 2022
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@elasticsearchmachine
Copy link
Collaborator

Hi @grcevski, I've created a changelog YAML for you.

Copy link
Contributor

@jdconrad jdconrad left a comment

Choose a reason for hiding this comment

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

LGTM!

@grcevski grcevski merged commit 7acf909 into elastic:main Dec 7, 2022
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.6 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 92124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged backport pending >bug :Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team v8.6.1 v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants