-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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] [broker] add timeout for health check read. #21990
[fix] [broker] add timeout for health check read. #21990
Conversation
PTAL, thanks. @mattisonchao @lhotari |
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. Good work @thetumbled
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. @thetumbled could you add a test for this case?
Done. |
/pulsarbot rerun-failure-checks |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #21990 +/- ##
============================================
- Coverage 73.65% 73.63% -0.03%
- Complexity 32471 32477 +6
============================================
Files 1863 1863
Lines 138772 138777 +5
Branches 15203 15203
============================================
- Hits 102213 102187 -26
- Misses 28665 28695 +30
- Partials 7894 7895 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
(cherry picked from commit fabcc99)
(cherry picked from commit fabcc99)
Fixes #21989
Motivation
There could be cases that the health-check message is lost or the reader just can't read the expected message for any reason, which will result into the producers and readers can't be closed and therefore the resource leak problem occur.
Modifications
Add timeout for health check read operation.
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: thetumbled#39