You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by yu...@apache.org on 2026/10/18 16:48:58 UTC
(pulsar) branch branch-4.0 updated: [fix][broker] Preserve topic initialization failures (#26775)
This is an automated email from the ASF dual-hosted git repository.
poorbarcode pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 1247b65613fb [fix][broker] Preserve topic initialization failures (#26775)
1247b65613fb is described below
commit 1247b65613fb63dd7f97bee719da6f16b8ae8548
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Wed Sep 30 09:57:51 2026 +0300
[fix][broker] Preserve topic initialization failures (#26775)
(cherry picked from commit c623cfd59ff8148ced62cf710f6456f8c240d558)
---
.../apache/pulsar/broker/service/persistent/PersistentTopic.java | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java
index c914e199f60b..10108207d7be 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java
@@ -529,13 +529,7 @@ public class PersistentTopic extends AbstractTopic implements Topic, AddEntryCal
}, getPoliciesNotifyThread())
.thenCompose(ignore -> loadingContext == null ? initTopicPolicy()
: loadingContext.trace(TopicLoadingTracePoints.LOCAL_TOPIC_POLICIES, initTopicPolicy()))
- .thenCompose(ignore -> removeOrphanReplicationCursors())
- .exceptionally(ex -> {
- log.warn("[{}] Error loading topic policies during initialization. Ignoring the failure. "
- + "isEncryptionRequired will be set to false. Cause: {}", topic, ex.getMessage());
- isEncryptionRequired = false;
- return null;
- }));
+ .thenCompose(ignore -> removeOrphanReplicationCursors()));
}
private void initializeDispatchRateLimiterIfNeeded() {