Skip to content

[Enhancement] Create new transport action for fetching metadata of multiple primary & replica shards #8957

@amkhar

Description

@amkhar

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.

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.

Metadata

Metadata

Assignees

Labels

Cluster ManagerenhancementEnhancement or improvement to existing feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions