Technoboy- commented on code in PR #15621: URL: https://github.com/apache/pulsar/pull/15621#discussion_r875401145
########## pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v1/Namespaces.java: ########## @@ -524,11 +524,18 @@ public void modifyDeduplication(@PathParam("property") String property, @PathPar @ApiOperation(value = "Get autoTopicCreation info in a namespace") @ApiResponses(value = {@ApiResponse(code = 403, message = "Don't have admin permission"), @ApiResponse(code = 404, message = "Tenant or cluster or namespace doesn't exist")}) - public AutoTopicCreationOverride getAutoTopicCreation(@PathParam("property") String property, - @PathParam("cluster") String cluster, - @PathParam("namespace") String namespace) { + public void getAutoTopicCreation(@Suspended AsyncResponse asyncResponse, + @PathParam("property") String property, + @PathParam("cluster") String cluster, + @PathParam("namespace") String namespace) { validateNamespaceName(property, cluster, namespace); - return internalGetAutoTopicCreation(); + internalGetAutoTopicCreationAsync() + .thenAccept(autoTopicCreationOverride -> asyncResponse.resume(autoTopicCreationOverride)) + .exceptionally(ex -> { Review Comment: asyncResponse::resume -- 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-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org