lhotari commented on code in PR #23458:
URL: https://github.com/apache/pulsar/pull/23458#discussion_r1800425381
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java:
##########
@@ -1318,8 +1318,9 @@ public void deleteTopicAuthenticationWithRetry(String
topic, CompletableFuture<V
private CompletableFuture<Optional<Topic>> createNonPersistentTopic(String
topic) {
CompletableFuture<Optional<Topic>> topicFuture = new
CompletableFuture<>();
topicFuture.exceptionally(t -> {
+ // If the broker is not the owner of the topic, the client will
redirect to another broker.
+ // In this case, we should not record as a topic load failure.
pulsarStats.recordTopicLoadFailed();
- pulsar.getExecutor().execute(() -> topics.remove(topic,
topicFuture));
Review Comment:
Removing this line doesn't seem to be related to topic load failed metrics.
Is this intentional?
It seems that in the original solution this would ensure that failed topics
don't added to the topics map.
--
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]