-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add batch async shard fetch transport action for replica #8218 #8356
Add batch async shard fetch transport action for replica #8218 #8356
Conversation
Gradle Check (Jenkins) Run Completed with:
|
6db8ba4
to
13c1229
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
131908a
to
9e1f0ac
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
9e1f0ac
to
a1ec82b
Compare
❌ Gradle check result for f05dfc2: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for 62c11d1: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Shivansh Arora <[email protected]>
❌ Gradle check result for 29871bf: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Shivansh Arora <[email protected]>
❌ Gradle check result for 85faccc: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Failing tests:
|
❕ Gradle check result for 85faccc: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
...er/src/main/java/org/opensearch/indices/store/TransportNodesListShardStoreMetadataBatch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/BaseShardResponse.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Aman Khare <[email protected]>
Signed-off-by: Aman Khare <[email protected]>
❌ Gradle check result for 776f625: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for 2cc687f: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Flaky test : testIsolateClusterManagerAndVerifyClusterStateConsensus #12095 |
12115d1
into
opensearch-project:main
…roject#8218 (opensearch-project#8356) * Add batch async shard fetch transport action for replica Signed-off-by: sudarshan baliga <[email protected]> Signed-off-by: Shivansh Arora <[email protected]> Signed-off-by: Aman Khare <[email protected]>
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-8356-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 12115d1ad1feca522373220f5bef367f0c8008aa
# Push it to GitHub
git push --set-upstream origin backport/backport-8356-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.x Then, create a pull request where the |
…roject#8218 (opensearch-project#8356) * Add batch async shard fetch transport action for replica Signed-off-by: Shivansh Arora <[email protected]> (cherry picked from commit 12115d1)
#12770) * Add batch async shard fetch transport action for replica Signed-off-by: Shivansh Arora <[email protected]> (cherry picked from commit 12115d1)
…roject#8218 (opensearch-project#8356) * Add batch async shard fetch transport action for replica Signed-off-by: sudarshan baliga <[email protected]> Signed-off-by: Shivansh Arora <[email protected]> Signed-off-by: Aman Khare <[email protected]>
Description
This pull request is part of the improvement #5098
This PR for adding the transport action for the async fetching of the shard information for batch of replica shards from the nodes in a single request per node. Code is inspired by the existing transport action TransportNodesListShardStoreMetadata.java which fetches just one shard information from the node per request.
Added Transport action TransportNodesBatchListShardStoreMetadata.java for fetching information about batch of replica shards.
Similar pull request for primary shard allocator transport action Added transport action for bulk async shard fetch for primary shards #8218
Tested the changes manually by changing the replica shard allocator in the gateway allocator in my custom branch sudarshan-baliga@0919259 and verified that the batch of shard information was fetched while adding and removing the node from the cluster.
Created new index
Removed the data2 node and re-added it.
Data node log which was dropped and re-added. We can see that batch of shard information was fetched instead of one shard.
Master node log when the data node was readded. We can see that batch of shard information was fetched instead of one shard.
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.