Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
[improve][broker] Add logs to getInternalStats for quickly locate p…
Browse files Browse the repository at this point in the history
…roblem when schema ledger is lost (apache#22233)
  • Loading branch information
hanmz authored Mar 11, 2024
1 parent c36c18d commit b4f710d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2665,6 +2665,8 @@ public CompletableFuture<PersistentTopicInternalStats> 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;
});
Expand Down

0 comments on commit b4f710d

Please sign in to comment.