Fix snapshot repository registration failure in mixed OpenSearch version setups#16831
Conversation
|
❌ Gradle check result for 2c427aa: 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? |
…ation Signed-off-by: Ashish Singh <ssashish@amazon.com>
2c427aa to
51a6e67
Compare
ashking94
left a comment
There was a problem hiding this comment.
It's difficult to add unit tests as the BlobStoreRepositoryTest.java is actually a single node spin up and testing. There are existing integration tests that invokes this flow. The code is partially tested in the ITs that spins up the remote store nodes.
|
❌ Gradle check result for 51a6e67: 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 - #15831 |
|
❌ Gradle check result for 51a6e67: 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 51a6e67: 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 - #16015 |
Some of the changes needs mixed version tests for which there is an issue created. |
|
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-16831-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 d37cc9b32600faef17b3c898f8c86b0fd7640d72
# Push it to GitHub
git push --set-upstream origin backport/backport-16831-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.xThen, create a pull request where the |
Manually backporting this PR. |
…ation (opensearch-project#16831) Signed-off-by: Ashish Singh <ssashish@amazon.com>
|
Created manual backport #16849 |
…ation (opensearch-project#16831) Signed-off-by: Ashish Singh <ssashish@amazon.com>
…ation (opensearch-project#16831) Signed-off-by: Ashish Singh <ssashish@amazon.com>
…ation (opensearch-project#16831) Signed-off-by: Ashish Singh <ssashish@amazon.com>
…ation (opensearch-project#16831) Signed-off-by: Ashish Singh <ssashish@amazon.com>
Description
This PR addresses issue #16830, where snapshot repository registration fails in clusters with mixed OpenSearch versions, specifically when nodes running OS 2.17 are present alongside nodes running earlier 1.x or 2.x versions.
Problem:
Solution:
Changes:
Testing:
This fix ensures smooth operation of snapshot repositories during cluster upgrades and in environments where different OpenSearch versions coexist.
Related Issues
Resolves #16830
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.