Repository navigation
[improve][broker] Add UncaughtExceptionHandler for every thread pool - #18211
Merged
Merged
Conversation
|
@315157973 Please add the following content to your PR description and select a checkbox: |
codelipenghui
approved these changes
Oct 27, 2022
hezhangjian
approved these changes
Oct 27, 2022
Codecov Report
@@ Coverage Diff @@
## master #18211 +/- ##
=============================================
+ Coverage 34.91% 45.91% +11.00%
- Complexity 5707 17654 +11947
=============================================
Files 607 1579 +972
Lines 53396 128707 +75311
Branches 5712 14151 +8439
=============================================
+ Hits 18644 59099 +40455
- Misses 32119 63508 +31389
- Partials 2633 6100 +3467
Flags with carried forward coverage won't be shown. Click here to find out more.
|
coderzc
approved these changes
Oct 27, 2022
Contributor
|
could you please cherry-pick this PR to branch-2.9? thanks. |
Contributor
|
@315157973 hi, I move this PR to release/2.9.5, if you have any questions, please ping me. thanks. |
Contributor
|
@315157973 Could you please open a PR to cherry-pick this to branch-2.10. |
Technoboy-
pushed a commit
that referenced
this pull request
Feb 8, 2023
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this pull request
Feb 28, 2023
…pache#18211) (cherry picked from commit 5b7c5c6) (cherry picked from commit cf06952)
1 of 4 tasks
315157973
added a commit
that referenced
this pull request
Mar 2, 2023
…ad pool (#18211) (#19677) Co-authored-by: feynmanlin <[email protected]>
Annavar-satish
pushed a commit
to pandio-com/pulsar
that referenced
this pull request
Mar 6, 2023
…ad pool (apache#18211) (apache#19677) Co-authored-by: feynmanlin <[email protected]>
1 of 15 tasks
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this pull request
Mar 29, 2023
…ache#19779) ### Motivation The original fix is apache#18268. But after the fix is cherry-picked, the fix is overridden when resolving conflicts for cherry-pick apache#18211. ### Modifications Return the local thread variables in the `newThread`. (cherry picked from commit 240c22c)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The current thread pool does not set UncaughtExceptionHandler, so the uncaught exception will disappear directly. Many times these unknown exceptions lead to unexpected bugs, such as locks not being released, etc. We need to print out these unknown exceptions for troubleshooting.
Modifications
In
ExtendedThreadFactory,set UncaughtExceptionHandler and make it to be the default factory of every thread poolVerifying this change
Make sure this setting does not affect existing unit tests passing
315157973#2
doc-not-needed