Skip to content

[Broker] Make PersistentTopicsBase#terminate async#14064

Closed
RobertIndie wants to merge 5 commits into
apache:masterfrom
RobertIndie:fix-terminate
Closed

[Broker] Make PersistentTopicsBase#terminate async#14064
RobertIndie wants to merge 5 commits into
apache:masterfrom
RobertIndie:fix-terminate

Conversation

@RobertIndie

Copy link
Copy Markdown
Member

Master Issue: #14013

Motivation

See #14013

Modifications

  • Make PersistentTopicsBase#terminate async

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Documentation

  • no-need-doc

Motivation
See apache#14013

Modification
* Make PersistentTopicsBase#terminate async

Signed-off-by: Zike Yang <zkyang@streamnative.io>
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Jan 30, 2022
Signed-off-by: Zike Yang <zkyang@streamnative.io>
Signed-off-by: Zike Yang <zkyang@streamnative.io>
@RobertIndie

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

Signed-off-by: Zike Yang <zkyang@streamnative.io>
Signed-off-by: Zike Yang <zkyang@streamnative.io>
@@ -2675,7 +2676,14 @@ public MessageId terminate(
@ApiParam(value = "Is authentication required to perform this operation")
@QueryParam("authoritative") @DefaultValue("false") boolean authoritative) {
validatePersistentTopicName(tenant, namespace, encodedTopic);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

need catch exception

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think we don't need to. The exception it throws is of type RestException.

@github-actions

Copy link
Copy Markdown

The pr had no activity for 30 days, mark with Stale label.

@github-actions

Copy link
Copy Markdown

The pr had no activity for 30 days, mark with Stale label.

@RobertIndie

Copy link
Copy Markdown
Member Author

These changes have been moved to #16227 . So close this PR.

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 lifecycle/stale Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants