-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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] Add checks to skip remote uploads after shard is closed #13998
Conversation
Signed-off-by: Shourya Dutta Biswas <114977491+shourya035@users.noreply.github.com>
❌ Gradle check result for 6358f71: 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 6358f71: 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? |
server/src/main/java/org/opensearch/index/shard/RemoteStoreRefreshListener.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/shard/RemoteStoreRefreshListener.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/opensearch/index/shard/RemoteStoreRefreshListenerTests.java
Show resolved
Hide resolved
Signed-off-by: Shourya Dutta Biswas <114977491+shourya035@users.noreply.github.com>
❌ Gradle check result for ebdc32c: 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: Shourya Dutta Biswas <114977491+shourya035@users.noreply.github.com>
❌ Gradle check result for bf2e0e9: 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 bf2e0e9: 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? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13998 +/- ##
============================================
+ Coverage 71.42% 71.58% +0.16%
- Complexity 59978 61316 +1338
============================================
Files 4985 5065 +80
Lines 282275 288201 +5926
Branches 40946 41741 +795
============================================
+ Hits 201603 206309 +4706
- Misses 63999 64852 +853
- Partials 16673 17040 +367 ☔ View full report in Codecov by Sentry. |
opensearch-project#13998) Signed-off-by: Shourya Dutta Biswas <114977491+shourya035@users.noreply.github.com>
opensearch-project#13998) (opensearch-project#14035) (cherry picked from commit b01b6e8) Signed-off-by: Shourya Dutta Biswas <114977491+shourya035@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Signed-off-by: kkewwei <kkewwei@163.com>
opensearch-project#13998) Signed-off-by: Shourya Dutta Biswas <114977491+shourya035@users.noreply.github.com>
Description
Adding checks in
RemoteStoreRefreshListener
to return false forshouldSync
if the underlying indexShard instance has transitioned to aCLOSED
state. This would prevent theshouldRetry
method to schedule refresh retries even after theIndexShard
instance and it's corresponding Remote directories are closed.Related Issues
Resolves #[Issue number to be closed when this PR is merged]
#13996
Check List
API changes companion pull request created.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.