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] Make PersistentTopicsBase#internalDeleteTopic async #14069

Closed
wants to merge 3 commits into from

Conversation

RobertIndie
Copy link
Member

Master Issue: #14013

Motivation

See #14013

Modifications

  • Make PersistentTopicsBase#internalDeleteTopic 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#internalDeleteTopic async

Signed-off-by: Zike Yang <[email protected]>
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jan 30, 2022
@shibd
Copy link
Member

shibd commented Jan 30, 2022

LGTM

liangyuanpeng
liangyuanpeng previously approved these changes Feb 3, 2022
@gaoran10
Copy link
Contributor

gaoran10 commented Feb 8, 2022

Could we try to merge these two delete methods?

response = mock(AsyncResponse.class);
persistentTopics.deleteTopic(response, testTenant, testNamespace, topicName, true, true, true);
verify(response, timeout(5000).times(1)).resume(errorCaptor.capture());

Copy link
Member

@nodece nodece Feb 8, 2022

Choose a reason for hiding this comment

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

Please check the errorCaptor.getValue(): has exception and instanceof RestException

Copy link
Member Author

Choose a reason for hiding this comment

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

errorCaptor already checks that instance type.

Signed-off-by: Zike Yang <[email protected]>
Signed-off-by: Zike Yang <[email protected]>
@PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic,
@QueryParam("force") @DefaultValue("false") boolean force,
@QueryParam("authoritative") @DefaultValue("false") boolean authoritative,
@QueryParam("deleteSchema") @DefaultValue("false") boolean deleteSchema) {
validateTopicName(property, cluster, namespace, encodedTopic);
Copy link
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
Member Author

Choose a reason for hiding this comment

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

@github-actions
Copy link

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

@github-actions
Copy link

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

@RobertIndie
Copy link
Member Author

These changes have been moved to #16232. 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.

6 participants