From fa0c3736058bd6ef33d624d24bad8a4fa56bcfa0 Mon Sep 17 00:00:00 2001 From: thomas-bousquet Date: Tue, 26 Aug 2025 16:28:18 -0700 Subject: [PATCH 1/2] fix: add missing managedLedgerForceRecovery broker configuration field --- conf/broker.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/broker.conf b/conf/broker.conf index c117596445dd2..97c73f5594968 100644 --- a/conf/broker.conf +++ b/conf/broker.conf @@ -1360,6 +1360,10 @@ managedLedgerInfoCompressionThresholdInBytes=16384 # corrupted at bookkeeper and managed-cursor is stuck at that ledger. autoSkipNonRecoverableData=false +# Whether to allow brokers to forcefully load topics by skipping ledger failures to avoid topic unavailability and +# perform auto repairs of the topics. +managedLedgerForceRecovery=false + # Whether to recover cursors lazily when trying to recover a managed ledger backing a persistent topic. # It can improve write availability of topics. # The caveat is now when recovered ledger is ready to write we're not sure if all old consumers last mark From 2bc50615ee9eaa0a2ee3157a3f14920b4ee6d2ed Mon Sep 17 00:00:00 2001 From: thomas-bousquet Date: Wed, 27 Aug 2025 21:48:52 -0700 Subject: [PATCH 2/2] fix: add missing managedLedgerForceRecovery standalone configuration field --- conf/broker.conf | 1 + conf/standalone.conf | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/conf/broker.conf b/conf/broker.conf index 97c73f5594968..c69ae50f80155 100644 --- a/conf/broker.conf +++ b/conf/broker.conf @@ -1362,6 +1362,7 @@ autoSkipNonRecoverableData=false # Whether to allow brokers to forcefully load topics by skipping ledger failures to avoid topic unavailability and # perform auto repairs of the topics. +# It's worth noting that enabling this option means permanently losing data managedLedgerForceRecovery=false # Whether to recover cursors lazily when trying to recover a managed ledger backing a persistent topic. diff --git a/conf/standalone.conf b/conf/standalone.conf index 1797728984629..29514b06e809d 100644 --- a/conf/standalone.conf +++ b/conf/standalone.conf @@ -886,6 +886,11 @@ managedLedgerInfoCompressionThresholdInBytes=16384 # corrupted at bookkeeper and managed-cursor is stuck at that ledger. autoSkipNonRecoverableData=false +# Whether to allow brokers to forcefully load topics by skipping ledger failures to avoid topic unavailability and +# perform auto repairs of the topics. +# It's worth noting that enabling this option means permanently losing data +managedLedgerForceRecovery=false + # operation timeout while updating managed-ledger metadata. managedLedgerMetadataOperationsTimeoutSeconds=60