Skip to content
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

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

Closed
amkhar opened this issue Jul 28, 2023 · 1 comment
Assignees
Labels
Cluster Manager enhancement Enhancement or improvement to existing feature or request

Comments

@amkhar
Copy link
Contributor

amkhar commented Jul 28, 2023

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.

@amkhar
Copy link
Contributor Author

amkhar commented Mar 20, 2024

Completed by

Primary batch transport #8218
Replica batch transport #8356

@amkhar amkhar closed this as completed Mar 20, 2024
@amkhar amkhar self-assigned this Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cluster Manager enhancement Enhancement or improvement to existing feature or request
Projects
None yet
Development

No branches or pull requests

3 participants