-
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][security] Add timeout of sync methods and avoid call sync method for AuthoriationService #15694
[fix][security] Add timeout of sync methods and avoid call sync method for AuthoriationService #15694
Conversation
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.
I don't think this PR can fix thread blocking, we should call the async method, not the sync method to authorization.
@nodece For the pulsar codebase, we don't have a place to call |
@RobertIndie @mattisonchao Please help review again, I have changed the |
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/lookup/TopicLookupBase.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/lookup/TopicLookupBase.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/lookup/TopicLookupBase.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/lookup/TopicLookupBase.java
Outdated
Show resolved
Hide resolved
Better to rebase |
pulsar-broker/src/main/java/org/apache/pulsar/broker/lookup/TopicLookupBase.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Outdated
Show resolved
Hide resolved
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.
+1
/pulsarbot run-failure-checks |
2ff2b86
to
e46fdf5
Compare
Co-authored-by: Zixuan Liu <[email protected]>
e46fdf5
to
a4ff8ce
Compare
…d for AuthoriationService (apache#15694) (cherry picked from commit 6af365e) (cherry picked from commit 7c88bd1)
Move the |
Motivation
Add timeout of sync methods for the AuthoriationService to avoid infinite web thread blocking.
Documentation
Check the box below or label this PR directly.
Need to update docs?
no-need-doc
(Please explain why)
doc-not-needed