fix: close segment writer on error paths in sort compaction#48534
fix: close segment writer on error paths in sort compaction#48534sunby wants to merge 1 commit intomilvus-io:masterfrom
Conversation
In sortSegment, when the BinlogRecordWriter (srw) is created but subsequent operations fail (ComposeDeleteFromDeltalogs, record reader creation, or Sort), the writer is not closed, leaking resources. Fix by calling srw.Close() on each error path. Signed-off-by: sunby <sunbingyi1992@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sunby The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
[ci-v2-notice] To rerun ci-v2 checks, comment with:
If you have any questions or requests, please contact @zhikunyao. |
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #48534 +/- ##
===========================================
+ Coverage 74.95% 77.63% +2.67%
===========================================
Files 1485 2112 +627
Lines 247232 351449 +104217
===========================================
+ Hits 185323 272831 +87508
- Misses 53589 70290 +16701
- Partials 8320 8328 +8
🚀 New features to boost your workflow:
|
|
/ci-rerun-e2e-arm |
|
/ci-rerun-go-sdk |
2 similar comments
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-e2e-arm |
|
/ci-rerun-go-sdk |
1 similar comment
|
/ci-rerun-go-sdk |
|
/ci-rerun-integration-test |
|
/ci-rerun-go-sdk |
11 similar comments
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
6 similar comments
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
Close BinlogRecordWriter on error paths in sortSegment to prevent resource leak.
issue: #48533