Technoboy- commented on code in PR #14153:
URL: https://github.com/apache/pulsar/pull/14153#discussion_r865600233
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/AdminResource.java:
##########
@@ -423,21 +426,29 @@ protected void setServletContext(ServletContext
servletContext) {
this.servletContext = servletContext;
}
- protected CompletableFuture<PartitionedTopicMetadata>
getPartitionedTopicMetadataAsync(
- TopicName topicName, boolean authoritative, boolean
checkAllowAutoCreation) {
+ protected PartitionedTopicMetadata getPartitionedTopicMetadata(TopicName
topicName,
+ boolean
authoritative,
+ boolean
checkAllowAutoCreation) {
try {
- validateClusterOwnership(topicName.getCluster());
- } catch (Exception e) {
- return FutureUtil.failedFuture(e);
+ return getPartitionedTopicMetadataAsync(topicName, authoritative,
checkAllowAutoCreation)
Review Comment:
fixed
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]