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

Clarify the null check for retention leases #114979

Merged

Conversation

arteam
Copy link
Contributor

@arteam arteam commented Oct 17, 2024

MetadataStateFormat.FORMAT.loadLatestState can actually return null when the state directory hasn't been
initialized yet, so we have to keep the null check when loading retention leases during the initialization of the engine.

See #39359

`MetadataStateFormat.FORMAT.loadLatestState` can actually
return null when the state directory hasn't been
initialized yet, so we have to keep the null check when
loading retention leases during the initialization of
the engine.
@arteam arteam added >non-issue :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. and removed :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. labels Oct 17, 2024
@arteam arteam marked this pull request as ready for review October 18, 2024 12:16
@elasticsearchmachine elasticsearchmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Oct 18, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

@arteam arteam merged commit 79cfcec into elastic:main Oct 24, 2024
16 checks passed
@arteam arteam deleted the replicaion-tracker-retention-leases-null-check branch October 24, 2024 19:26
georgewallace pushed a commit to georgewallace/elasticsearch that referenced this pull request Oct 25, 2024
`MetadataStateFormat.FORMAT.loadLatestState` can actually return null when the state directory hasn't been
initialized yet, so we have to keep the null check when loading retention leases during the initialization of the engine.

See elastic#39359
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Nov 4, 2024
`MetadataStateFormat.FORMAT.loadLatestState` can actually return null when the state directory hasn't been
initialized yet, so we have to keep the null check when loading retention leases during the initialization of the engine.

See elastic#39359
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. >non-issue Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants