-
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
Optimise clone operation for incremental full cluster snapshots #16296
Conversation
Signed-off-by: Ashish Singh <ssashish@amazon.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16296 +/- ##
============================================
- Coverage 72.00% 71.90% -0.11%
+ Complexity 64796 64748 -48
============================================
Files 5307 5307
Lines 302540 302548 +8
Branches 43708 43707 -1
============================================
- Hits 217853 217548 -305
- Misses 66801 67124 +323
+ Partials 17886 17876 -10 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM. One question.
One more question, does this need a CHANGELOG? |
Let me add this, the users may have stopped using clone or have never faced this issue due to lower volume of shards after this inadvertent bug. However, adding a change log may guide the user to explore and try this out. |
Signed-off-by: Ashish Singh <ssashish@amazon.com>
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-16296-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 2166b449d99e5afd9a8d943f7245de2f2635fe5c
# Push it to GitHub
git push --set-upstream origin backport/backport-16296-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 |
Auto backport failed, will create a manual backport. |
…search-project#16296) * Optimise clone operation for incremental full cluster snapshots Signed-off-by: Ashish Singh <ssashish@amazon.com> * Add UTs Signed-off-by: Ashish Singh <ssashish@amazon.com> * Add CHANGELOG Signed-off-by: Ashish Singh <ssashish@amazon.com> --------- Signed-off-by: Ashish Singh <ssashish@amazon.com>
Manual backport - #16303 |
…) (#16303) * Optimise clone operation for incremental full cluster snapshots * Add UTs * Add CHANGELOG --------- Signed-off-by: Ashish Singh <ssashish@amazon.com> Signed-off-by: Daniel Widdis <widdis@gmail.com> Co-authored-by: Daniel Widdis <widdis@gmail.com>
…search-project#16296) * Optimise clone operation for incremental full cluster snapshots Signed-off-by: Ashish Singh <ssashish@amazon.com> * Add UTs Signed-off-by: Ashish Singh <ssashish@amazon.com> * Add CHANGELOG Signed-off-by: Ashish Singh <ssashish@amazon.com> --------- Signed-off-by: Ashish Singh <ssashish@amazon.com>
…search-project#16296) * Optimise clone operation for incremental full cluster snapshots Signed-off-by: Ashish Singh <ssashish@amazon.com> * Add UTs Signed-off-by: Ashish Singh <ssashish@amazon.com> * Add CHANGELOG Signed-off-by: Ashish Singh <ssashish@amazon.com> --------- Signed-off-by: Ashish Singh <ssashish@amazon.com>
…search-project#16296) * Optimise clone operation for incremental full cluster snapshots Signed-off-by: Ashish Singh <ssashish@amazon.com> * Add UTs Signed-off-by: Ashish Singh <ssashish@amazon.com> * Add CHANGELOG Signed-off-by: Ashish Singh <ssashish@amazon.com> --------- Signed-off-by: Ashish Singh <ssashish@amazon.com>
…search-project#16296) * Optimise clone operation for incremental full cluster snapshots Signed-off-by: Ashish Singh <ssashish@amazon.com> * Add UTs Signed-off-by: Ashish Singh <ssashish@amazon.com> * Add CHANGELOG Signed-off-by: Ashish Singh <ssashish@amazon.com> --------- Signed-off-by: Ashish Singh <ssashish@amazon.com>
Description
In this PR, we have improved the logic for snapshot clone operations for full cluster incremental snapshots. The overall logic stays the same. There is no existing coverage for the snapshot clone operation. At this point, it is going to be huge effort to write unit tests for this flow.
Related Issues
Resolves #16295
Check List
[ ] Functionality includes testing.[ ] API changes companion pull request created, if applicable.[ ] Public documentation issue/PR created, if applicable.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.