-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[Enhancement] Create new transport action for fetching metadata of multiple primary & replica shards #8957
Description
Describe the bug
Original Issue opened : #5098 . This issue is a sub task for the overall project defined #8098.
Description
As part of node drop and joins, we fetch the metadata of unassigned shards on per shard basis.
OpenSearch/server/src/main/java/org/opensearch/gateway/TransportNodesListGatewayStartedShards.java
Lines 151 to 155 in 96630f0
| protected NodeGatewayStartedShards nodeOperation(NodeRequest request) { | |
| try { | |
| final ShardId shardId = request.getShardId(); | |
| logger.trace("{} loading local shard state info", shardId); | |
| ShardStateMetadata shardStateMetadata = ShardStateMetadata.FORMAT.loadLatestState( |
TransportNodesListGatewayStartedShards is a transport call for getting this metadata for a single shard. We need to add a new transport for both primary and replica shards so we can fetch metadata for a batch of shards in one transport call.
Additional context
Please go through the discussion #5098 to understand the overall enhancement approach and check #8098 to see the sub tasks of overall project.