You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/02/08 14:13:25 UTC

[GitHub] [pulsar] codelipenghui commented on a change in pull request #14064: [Broker] Make PersistentTopicsBase#terminate async

codelipenghui commented on a change in pull request #14064:
URL: https://github.com/apache/pulsar/pull/14064#discussion_r801673522



##########
File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
##########
@@ -3289,23 +3289,38 @@ private RetentionPolicies getRetentionPolicies(TopicName topicName, TopicPolicie
 
     }
 
-    protected MessageId internalTerminate(boolean authoritative) {
+    protected void internalTerminateAsync(AsyncResponse asyncResponse, boolean authoritative) {

Review comment:
       We'd better make this method return `CompletableFuture<MessageId>`, it's hard to get the response type for the rest API, only can be found here https://github.com/apache/pulsar/pull/14064/files#diff-66aeb65a64cbe7c541f013ae807c5bcbeab567bef77706c7ff2e0cbfe0d77eb1R3317




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org