Skip to content

Simplify Store$MetadataSnapshot and friends#84357

Merged
DaveCTurner merged 1 commit intoelastic:masterfrom
DaveCTurner:2022-02-24-simplify-store-metadata
Feb 28, 2022
Merged

Simplify Store$MetadataSnapshot and friends#84357
DaveCTurner merged 1 commit intoelastic:masterfrom
DaveCTurner:2022-02-24-simplify-store-metadata

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

TransportNodesListShardStoreMetadata$StoreFilesMetadata and
Store$MetadataSnapshot are both morally-speaking records, and
LoadedMetadata is really the same as MetadataSnapshot. This commit
turns them into real records, gets rid of the unnecessary extra class,
and renames some of the accessors.

Spotted while working on #84034

`TransportNodesListShardStoreMetadata$StoreFilesMetadata` and
`Store$MetadataSnapshot` are both morally-speaking records, and
`LoadedMetadata` is really the same as `MetadataSnapshot`. This commit
turns them into real records, gets rid of the unnecessary extra class,
and renames some of the accessors.

Spotted while working on elastic#84034
@DaveCTurner DaveCTurner added :Distributed/Store Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label. >refactoring v8.2.0 labels Feb 24, 2022
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Feb 24, 2022
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@DaveCTurner
Copy link
Copy Markdown
Member Author

@elasticmachine please run elasticsearch-ci/part-1

@DaveCTurner
Copy link
Copy Markdown
Member Author

@elasticmachine please run elasticsearch-ci/packaging-tests-unix-sample

@arteam arteam self-requested a review February 24, 2022 18:40
Copy link
Copy Markdown
Contributor

@arteam arteam left a comment

Choose a reason for hiding this comment

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

Very nice refactoring! Thanks David!

@DaveCTurner DaveCTurner merged commit 0ba208c into elastic:master Feb 28, 2022
@DaveCTurner DaveCTurner deleted the 2022-02-24-simplify-store-metadata branch February 28, 2022 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Store Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label. >refactoring Team:Distributed Meta label for distributed team. v8.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants