shibd commented on code in PR #22739:
URL: https://github.com/apache/pulsar/pull/22739#discussion_r1629656839


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java:
##########
@@ -1007,6 +1007,9 @@ public CompletableFuture<Optional<Topic>> getTopic(final 
TopicName topicName, bo
             CompletableFuture<Optional<Topic>> topicFuture = 
topics.get(topicName.toString());
             if (topicFuture != null) {
                 if (topicFuture.isCompletedExceptionally()
+                        && 
FutureUtil.getException(topicFuture).get().equals(FAILED_TO_LOAD_TOPIC_TIMEOUT_EXCEPTION))
 {
+                    return 
FutureUtil.failedFuture(FAILED_TO_LOAD_TOPIC_TIMEOUT_EXCEPTION);

Review Comment:
   A new solution refer to this PR: #22860



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

Reply via email to