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/06/28 03:40:02 UTC

[GitHub] [pulsar] nodece commented on a diff in pull request #16221: [improve][broker][PIP-149]Make getList async

nodece commented on code in PR #16221:
URL: https://github.com/apache/pulsar/pull/16221#discussion_r907999571


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java:
##########
@@ -4251,7 +4243,7 @@ private RestException topicNotFoundReason(TopicName topicName) {
                     == null ? "has no metadata" : "has zero partitions";
             return new RestException(Status.NOT_FOUND, String.format(
                     "Partitioned Topic not found: %s %s", topicName.toString(), topicErrorType));
-        } else if (!internalGetList(Optional.empty()).contains(topicName.toString())) {
+        } else if (!internalGetListAsync(Optional.empty()).join().contains(topicName.toString())) {

Review Comment:
   We need to avoid to using the `join()` and `get()`.



-- 
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