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][misc] Make ConcurrentBitSet thread safe #22361
[fix][misc] Make ConcurrentBitSet thread safe #22361
Conversation
StampedLock isn't a reentrant lock. There are dead locks with stack traces such as
|
For resolving the deadlock, I removed the locks from the |
(cherry picked from commit edd0076)
(cherry picked from commit edd0076)
Fixes #22360
Motivation
ConcurrentBitSet isn't thread safe although it claims this in the javadoc. This is causing concurrency issues in Pulsar. See #22360 for examples.
Modifications
Documentation
doc
doc-required
doc-not-needed
doc-complete