Repository navigation
[fix][client] Fix IllegalThreadStateException when using newThread in ExecutorProvider.ExtendedThreadFactory - #18268
Merged
codelipenghui merged 1 commit intoNov 1, 2022
Conversation
…ovider.ExtendedThreadFactory`
IllegalThreadStateException when using newThread in ExecutorProvider.ExtendedThreadFactoryIllegalThreadStateException when using newThread in ExecutorProvider.ExtendedThreadFactory
Contributor
|
/pulsarbot run-failure-checks |
IllegalThreadStateException when using newThread in ExecutorProvider.ExtendedThreadFactoryIllegalThreadStateException when using newThread in ExecutorProvider.ExtendedThreadFactory
Member
Author
|
@codelipenghui This label should be |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #18268 +/- ##
============================================
- Coverage 38.84% 37.28% -1.57%
- Complexity 8286 8482 +196
============================================
Files 683 742 +59
Lines 67323 72007 +4684
Branches 7215 7743 +528
============================================
+ Hits 26152 26847 +695
- Misses 38210 42070 +3860
- Partials 2961 3090 +129
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Member
Author
|
/pulsarbot rerun-failure-checks |
Technoboy-
approved these changes
Nov 1, 2022
This was referenced Nov 2, 2022
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.
Fixes #18231
Motivation
When using
newThreadinExecutorProvider.ExtendedThreadFactoryconcurrently, we can return an already running Thread lead to occurIllegalThreadStateException.Modifications
Return a local variable in
newThreadto avoidIllegalThreadStateException.Add
volatileto the thread variable.Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: coderzc#24