Skip to content
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

[Broker] Fix call sync method in async rest api for internalDeletePartitionedTopic #13805

Merged
merged 22 commits into from
Jan 26, 2022
Merged

[Broker] Fix call sync method in async rest api for internalDeletePartitionedTopic #13805

merged 22 commits into from
Jan 26, 2022

Conversation

mattisonchao
Copy link
Member

Motivation

Avoid call sync method in async rest API for PersistentTopicsBase#internalDeletePartitionedTopic.

Modifications

  • Use async instead of sync method.

Verifying this change

  • Make sure that the change passes the CI checks.

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: ( no)
  • The schema: ( no )
  • The default values of configurations: ( no)
  • The wire protocol: ( no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

  • no-need-doc

mattisonchao and others added 2 commits January 18, 2022 16:26

Verified

This commit was signed with the committer’s verified signature.
…artitionedTopic``.
fixes style issue.
@mattisonchao mattisonchao changed the title [Broker] Fix call sync method in async rest api for ``internalDeleteP… [Broker] Fix call sync method in async rest api for ``internalDeletePartitionedTopic Jan 18, 2022
@mattisonchao mattisonchao changed the title [Broker] Fix call sync method in async rest api for ``internalDeletePartitionedTopic [Broker] Fix call sync method in async rest api for internalDeletePartitionedTopic Jan 18, 2022
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jan 18, 2022
@mattisonchao
Copy link
Member Author

/pulsarbot rerun-failure-checks

@mattisonchao
Copy link
Member Author

/pulsarbot rerun-failure-checks

@mattisonchao
Copy link
Member Author

/pulsarbot rerun-failure-checks

mattisonchao and others added 2 commits January 21, 2022 21:11
…l/PersistentTopicsBase.java

Co-authored-by: lipenghui <penghui@apache.org>
…reUtil.java

Co-authored-by: lipenghui <penghui@apache.org>
@mattisonchao
Copy link
Member Author

/pulsarbot rerun-failure-checks

@mattisonchao
Copy link
Member Author

@codelipenghui @Technoboy- PTAL :-)

Copy link
Contributor

@Technoboy- Technoboy- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +170 to +173
if (ex instanceof CompletionException) {
return ex.getCause();
} else if (ex instanceof ExecutionException) {
return ex.getCause();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why cancel recursion?

Copy link
Member Author

@mattisonchao mattisonchao Jan 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants