-
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
[Remote Store] Avoid repeated delete calls for the stale segment files #11532
[Remote Store] Avoid repeated delete calls for the stale segment files #11532
Conversation
Signed-off-by: Sachin Kale <[email protected]>
server/src/main/java/org/opensearch/index/store/RemoteSegmentStoreDirectory.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sachin Kale <[email protected]>
server/src/main/java/org/opensearch/index/store/RemoteSegmentStoreDirectory.java
Show resolved
Hide resolved
Compatibility status:Checks if related components are compatible with change d6b88ec Incompatible componentsSkipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/sql.git] |
❕ Gradle check result for 47602dc: 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:
Additional details and impacted files@@ Coverage Diff @@
## main #11532 +/- ##
============================================
+ Coverage 71.31% 71.33% +0.02%
- Complexity 59157 59176 +19
============================================
Files 4904 4904
Lines 278149 278152 +3
Branches 40419 40419
============================================
+ Hits 198360 198422 +62
- Misses 63254 63276 +22
+ Partials 16535 16454 -81 ☔ View full report in Codecov by Sentry. |
❕ Gradle check result for d6b88ec: 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. |
#11532) * Avoid repeated delete calls for the stale segment files Signed-off-by: Sachin Kale <[email protected]> * Address PR comments Signed-off-by: Sachin Kale <[email protected]> --------- Signed-off-by: Sachin Kale <[email protected]> Co-authored-by: Sachin Kale <[email protected]> (cherry picked from commit 10d34be) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#11532) (#11533) * Avoid repeated delete calls for the stale segment files * Address PR comments --------- (cherry picked from commit 10d34be) Signed-off-by: Sachin Kale <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Sachin Kale <[email protected]>
opensearch-project#11532) * Avoid repeated delete calls for the stale segment files Signed-off-by: Sachin Kale <[email protected]> * Address PR comments Signed-off-by: Sachin Kale <[email protected]> --------- Signed-off-by: Sachin Kale <[email protected]> Co-authored-by: Sachin Kale <[email protected]>
opensearch-project#11532) * Avoid repeated delete calls for the stale segment files Signed-off-by: Sachin Kale <[email protected]> * Address PR comments Signed-off-by: Sachin Kale <[email protected]> --------- Signed-off-by: Sachin Kale <[email protected]> Co-authored-by: Sachin Kale <[email protected]>
opensearch-project#11532) * Avoid repeated delete calls for the stale segment files Signed-off-by: Sachin Kale <[email protected]> * Address PR comments Signed-off-by: Sachin Kale <[email protected]> --------- Signed-off-by: Sachin Kale <[email protected]> Co-authored-by: Sachin Kale <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
remoteDataDirectory.deleteFile
multiple times.blobContainer.deleteBlobsIgnoringIfNotExists
.Related Issues
Check List
New functionality has been documented.New functionality has javadoc addedFailing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)Commit changes are listed out in CHANGELOG.md file (See: Changelog)Public documentation issue/PR createdBy 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.