-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Omit loading IndexMetaData when inspecting shards #50214
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
Omit loading IndexMetaData when inspecting shards #50214
Conversation
Pinging @elastic/es-distributed (:Distributed/Allocation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks nice from a quick read, just two questions for my understanding before I go through it again please :)
server/src/main/java/org/elasticsearch/gateway/TransportNodesListGatewayStartedShards.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
server/src/main/java/org/elasticsearch/gateway/TransportNodesListGatewayStartedShards.java
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/gateway/TransportNodesListGatewayStartedShards.java
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/indices/store/TransportNodesListShardStoreMetaData.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/indices/store/TransportNodesListShardStoreMetaData.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, LGTM. I asked for a couple of time bomb asserts to ensure we clean up the BWC.
server/src/main/java/org/elasticsearch/gateway/TransportNodesListGatewayStartedShards.java
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/indices/store/TransportNodesListShardStoreMetaData.java
Show resolved
Hide resolved
Loading shard state information during shard allocation sometimes runs into a situation where a data node does not know yet how to look up the shard on disk if custom data paths are used. The current implementation loads the index metadata from disk to determine what the custom data path looks like. This PR removes this dependency, simplifying the lookup. Relates #48701
Loading shard state information during shard allocation sometimes runs into a situation where a data node does not know yet how to look up the shard on disk if custom data paths are used. The current implementation loads the index metadata from disk to determine what the custom data path looks like. This PR removes this dependency, simplifying the lookup. Relates elastic#48701
Loading shard state information during shard allocation sometimes runs into a situation where a data node does not know yet how to look up the shard on disk if custom data paths are used. The current implementation loads the index metadata from disk to determine what the custom data path looks like. This PR removes this dependency, simplifying the lookup.
Relates #48701 but this PR is against master, as it has direct benefits even without the changes in #48701.