Skip to content

Avoid passing Lucene version to Store#createEmpty. #65783

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

Merged
merged 1 commit into from
Dec 3, 2020

Conversation

jtibshirani
Copy link
Contributor

@jtibshirani jtibshirani commented Dec 2, 2020

Store already holds onto index settings, so it can look up the version directly.
This helps consolidate version checks in a smaller number of places.

Relates to #65399.

Store already holds onto index settings, so it can look up the version directly.
This helps consolidate version checks in a smaller number of places.
@jtibshirani jtibshirani added :Distributed Indexing/Store Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label. >refactoring v7.11.0 v8.0.0 labels Dec 3, 2020
@jtibshirani jtibshirani marked this pull request as ready for review December 3, 2020 00:14
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Dec 3, 2020
@elasticmachine
Copy link
Collaborator

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

Copy link
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

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

LGTM

@jtibshirani jtibshirani merged commit ac18f24 into elastic:master Dec 3, 2020
@jtibshirani jtibshirani deleted the create-empty-store branch December 3, 2020 22:02
jtibshirani added a commit to jtibshirani/elasticsearch that referenced this pull request Dec 3, 2020
Store already holds onto index settings, so it can look up the version directly.
This helps consolidate version checks in a smaller number of places.
jtibshirani added a commit that referenced this pull request Dec 4, 2020
This is a forward-port of a bugfix we found as part of backporting #65783.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Indexing/Store Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label. >refactoring Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v7.11.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants