[Broker] Fix call sync method in async rest api for internalUnloadTopic - #13845
Merged
codelipenghui merged 5 commits intoJan 24, 2022
Merged
[Broker] Fix call sync method in async rest api for internalUnloadTopic#13845codelipenghui merged 5 commits into
codelipenghui merged 5 commits into
Conversation
| return null; | ||
| }); | ||
| private void internalUnloadTransactionCoordinatorAsync(AsyncResponse asyncResponse, boolean authoritative) { | ||
| validateTopicOperationAsync(topicName, TopicOperation.UNLOAD) |
Contributor
There was a problem hiding this comment.
Hmmm, looks like we make the wrong permission before, for the transaction coordinator, only the superuser can unload it. @congbobo184 Could you please help confirm?
Contributor
There was a problem hiding this comment.
It's ok to push a separate PR to fix this one, to make this PR more focus on what it wants to do
…l/PersistentTopicsBase.java Co-authored-by: lipenghui <penghui@apache.org>
…l/PersistentTopicsBase.java Co-authored-by: lipenghui <penghui@apache.org>
Member
Author
|
/pulsarbot rerun-failure-checks |
1 similar comment
Member
Author
|
/pulsarbot rerun-failure-checks |
26 tasks
23 tasks
…l/PersistentTopicsBase.java Co-authored-by: lipenghui <penghui@apache.org>
codelipenghui
approved these changes
Jan 21, 2022
1 task
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
Avoid call sync method in async rest API for PersistentTopicsBase#internalUnloadTopic.
Modifications
Verifying this change
Does this pull request potentially affect one of the following parts:
If
yeswas chosen, please highlight the changesDocumentation
no-need-doc