-
Notifications
You must be signed in to change notification settings - Fork 2.4k
[BUG FIX] Segment Replication cleanup completedReplications when SegmentReplicator.cancel is invoked #18856
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
Conversation
❌ Gradle check result for 7a85d3c: 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? |
7a85d3c
to
bc9c780
Compare
bc9c780
to
4ea54d1
Compare
❌ Gradle check result for 4ea54d1: 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? |
4ea54d1
to
51d3048
Compare
Signed-off-by: guojialiang <[email protected]>
51d3048
to
47943ad
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #18856 +/- ##
============================================
- Coverage 72.79% 72.78% -0.01%
+ Complexity 68627 68596 -31
============================================
Files 5572 5577 +5
Lines 315196 315376 +180
Branches 45750 45772 +22
============================================
+ Hits 229454 229554 +100
- Misses 67153 67213 +60
- Partials 18589 18609 +20 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Hi, @mch2 @ashking94. |
This PR is stalled because it has been open for 30 days with no activity. |
sorry for the delay here, thanks for the cleanup @guojialiang92 |
…ed (opensearch-project#18856) Signed-off-by: guojialiang <[email protected]>
…ed (opensearch-project#18856) Signed-off-by: guojialiang <[email protected]> Signed-off-by: Ankit Jain <[email protected]>
…ed (opensearch-project#18856) Signed-off-by: guojialiang <[email protected]> Signed-off-by: Ankit Jain <[email protected]>
…ed (opensearch-project#18856) Signed-off-by: guojialiang <[email protected]>
…ed (opensearch-project#18856) Signed-off-by: guojialiang <[email protected]>
…ed (opensearch-project#18856) Signed-off-by: guojialiang <[email protected]>
Description
I found that
SegmentReplicator#completedReplications
only has addition logic but no cleanup logic.We should clean up
SegmentReplicator#completedReplications
whenSegmentReplicator#cancel
is invoked. Otherwise, it may cause a risk of memory leak.Related Issues
Resolves #[Issue number to be closed when this PR is merged]
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.