[Broker] Fix call sync method in async rest api for internalDeletePartitionedTopic - #13805
Merged
codelipenghui merged 22 commits intoJan 26, 2022
Merged
[Broker] Fix call sync method in async rest api for internalDeletePartitionedTopic#13805codelipenghui merged 22 commits into
internalDeletePartitionedTopic#13805codelipenghui merged 22 commits into
Conversation
…artitionedTopic``.
fixes style issue.
internalDeletePartitionedTopic
HQebupt
approved these changes
Jan 18, 2022
Member
Author
|
/pulsarbot rerun-failure-checks |
Jason918
reviewed
Jan 19, 2022
Member
Author
|
/pulsarbot rerun-failure-checks |
Jason918
reviewed
Jan 19, 2022
Jason918
requested changes
Jan 20, 2022
…of completableFuture exception.
Jason918
approved these changes
Jan 20, 2022
Member
Author
|
/pulsarbot rerun-failure-checks |
26 tasks
23 tasks
…l/PersistentTopicsBase.java Co-authored-by: lipenghui <penghui@apache.org>
…reUtil.java Co-authored-by: lipenghui <penghui@apache.org>
hezhangjian
approved these changes
Jan 25, 2022
Technoboy-
reviewed
Jan 25, 2022
Member
Author
|
/pulsarbot rerun-failure-checks |
Member
Author
|
@codelipenghui @Technoboy- PTAL :-) |
Comment on lines
+170
to
+173
| if (ex instanceof CompletionException) { | ||
| return ex.getCause(); | ||
| } else if (ex instanceof ExecutionException) { | ||
| return ex.getCause(); |
Contributor
There was a problem hiding this comment.
Why cancel recursion?
Member
Author
There was a problem hiding this comment.
Because the source code of CompletableFuture
The CompletionException won't be wrapped twice.
codelipenghui
approved these changes
Jan 26, 2022
2 tasks
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#internalDeletePartitionedTopic.
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