-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][broker] Fix a deadlock in SystemTopicBasedTopicPoliciesService during NamespaceEventsSystemTopicFactory init #22528
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] Fix a deadlock in SystemTopicBasedTopicPoliciesService during NamespaceEventsSystemTopicFactory init #22528
Conversation
…ring NamespaceEventsSystemTopicFactory init
...ker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java
Show resolved
Hide resolved
mattisonchao
left a comment
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. and it looks like the synchronized in addOwnedNamespaceBundleAsync method is useless now?
I think it is used to additionally synchronize the current access of addOwnedNamespaceBundleAsync. |
lhotari
left a comment
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 @heesung-sn !
…during NamespaceEventsSystemTopicFactory init (apache#22528) (cherry picked from commit 72474d7) (cherry picked from commit 404bcdf)
…during NamespaceEventsSystemTopicFactory init (apache#22528) (cherry picked from commit 72474d7) (cherry picked from commit 404bcdf)
…during NamespaceEventsSystemTopicFactory init (apache#22528)
Motivation
Found a deadlock case in SystemTopicBasedTopicPoliciesService during NamespaceEventsSystemTopicFactory init
Modifications
Verifying this change
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: