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

Block readiness on bad initial file settings #107775

Merged

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Apr 23, 2024

If file settings have an update that fails, existing applied file settings continue to work. But if the initial file settings fail to process, readiness should be blocked. This commit adjusts readiness to look for this special initialization case.

relates #107738

If file settings have an update that fails, existing applied file
settings continue to work. But if the initial file settings fail to
process, readiness should be blocked. This commit adjusts readiness to
look for this special initialization case.

relates elastic#107738
@rjernst rjernst added >non-issue :Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown labels Apr 23, 2024
@rjernst rjernst requested a review from mosche April 23, 2024 13:47
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team v8.15.0 labels Apr 23, 2024
@mosche
Copy link
Contributor

mosche commented Apr 24, 2024

Sorry Ryan, I wasn't aware you're also looking into #107744.

I actually considered your approach using min long as marker for no version as well, but wasn't confident enough until thoroughly going through the code. After looking at all usages of -1 / 0 (see PR) I'm much more positive on that approach 👍 Some related tests are failing, but should be simple to fix.

Copy link
Contributor

@mosche mosche left a comment

Choose a reason for hiding this comment

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

lgtm

@rjernst rjernst merged commit 658c014 into elastic:main Apr 26, 2024
14 checks passed
@rjernst rjernst deleted the readiness/file_based_settings_resiliency3 branch April 26, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown >non-issue Team:Core/Infra Meta label for core/infra team v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants