-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix backup goroutine leak #15410
fix backup goroutine leak #15410
Conversation
Signed-off-by: deepthi <[email protected]>
Signed-off-by: deepthi <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
For reference, here's the stack trace from the old version of golangci-lint
|
CI is running with
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15410 +/- ##
==========================================
- Coverage 67.41% 65.64% -1.78%
==========================================
Files 1560 1562 +2
Lines 192752 193941 +1189
==========================================
- Hits 129952 127307 -2645
- Misses 62800 66634 +3834 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I don't think it's really necessary to backport to older releases. We can do it if someone asks. |
Description
Close the reader and writer in a defer func. This ensures that the progress goroutine receives a message on the done channel and returns.
Note that the golangci-lint hook broke after the go1.22 upgrade, so I've updated it to the latest version.
Related Issue(s)
Fixes #15409
Checklist
Deployment Notes