-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Remote Store] Using RemoteDirectory#delete to clear all segments during migration #17021
Conversation
❌ Gradle check result for 86c6e1c: 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? |
b315655
to
b7fe0b8
Compare
Signed-off-by: Gaurav Bafna <[email protected]>
❌ Gradle check result for c211578: 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 c211578: 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17021 +/- ##
============================================
- Coverage 72.47% 72.31% -0.16%
+ Complexity 65618 65478 -140
============================================
Files 5291 5291
Lines 304347 304330 -17
Branches 44182 44181 -1
============================================
- Hits 220578 220089 -489
- Misses 65670 66223 +553
+ Partials 18099 18018 -81 ☔ View full report in Codecov by Sentry. |
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-17021-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 9de21d1bdf5b7926fcbe6d788c5ec1f4b4fe3ba3
# Push it to GitHub
git push --set-upstream origin backport/backport-17021-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 |
…pensearch-project#17021) Signed-off-by: Gaurav Bafna <[email protected]>
…17021) (#17360) Signed-off-by: Gaurav Bafna <[email protected]>
Description
getRemoteDirectory().deleteStaleSegments
will not delete last metadata when pinned timestamps are enabled . Hence we need to usegetRemoteDirectory().delete();
which does the clean up comprehensively .Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
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.