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 c4f7be6b018ce..9111aafb2aff9 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 @@ -2665,6 +2665,8 @@ public CompletableFuture getInternalStats(boolean stats.schemaLedgers.add(schemaLedgerInfo); completableFuture.complete(null); }).exceptionally(e -> { + log.error("[{}] Failed to get ledger metadata for the schema ledger {}", + topic, ledgerId, e); completableFuture.completeExceptionally(e); return null; });