You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ba...@apache.org on 2024/08/02 01:15:58 UTC
(pulsar) branch master updated: [fix][broker] fix exception may hidden and result in stuck when topic loading (#23102)
This is an automated email from the ASF dual-hosted git repository.
baodi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new f02ce6c83ee [fix][broker] fix exception may hidden and result in stuck when topic loading (#23102)
f02ce6c83ee is described below
commit f02ce6c83eef65d71e973ca8e2017d37135e7083
Author: ken <16...@qq.com>
AuthorDate: Fri Aug 2 09:15:52 2024 +0800
[fix][broker] fix exception may hidden and result in stuck when topic loading (#23102)
Co-authored-by: fanjianye <fa...@bigo.sg>
---
.../src/main/java/org/apache/pulsar/broker/service/BrokerService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
index 5dec15fc19b..8460fe23ac3 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
@@ -1800,7 +1800,7 @@ public class BrokerService implements Closeable {
});
return null;
});
- } catch (PulsarServerException e) {
+ } catch (Exception e) {
log.warn("Failed to create topic {}: {}", topic, e.getMessage());
pulsar.getExecutor().execute(() -> topics.remove(topic, topicFuture));
topicFuture.completeExceptionally(e);