rdhabalia opened a new issue, #22844:
URL: https://github.com/apache/pulsar/issues/22844

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Read release policy
   
   - [X] I understand that unsupported versions don't get bug fixes. I will 
attempt to reproduce the issue on a supported version of Pulsar client and 
Pulsar broker.
   
   
   ### Version
   
   > 3.x
   
   ### Minimal reproduce step
   
   1. Have broken schema ledger
   2. Try to access topic stats-internal
   3. Broker is not showing topic stats and gives 5xx
   
   ### What did you expect to see?
   
   broker should give topic stats-internal successfully
   
   ### What did you see instead?
   
   ```
   Caused by: 
org.apache.bookkeeper.client.BKException$BKNoSuchLedgerExistsOnMetadataServerException:
 No such ledger exists on Metadata Server
           at 
org.apache.pulsar.metadata.bookkeeper.PulsarLedgerManager.lambda$readLedgerMetadata$2(PulsarLedgerManager.java:208)
 ~[pulsar-metadata-x.jar:x]
           at 
java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:753) 
~[?:?]
           at 
java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:731)
 ~[?:?]
           at 
java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2108) 
~[?:?]
           at 
org.apache.pulsar.metadata.bookkeeper.PulsarLedgerManager.readLedgerMetadata(PulsarLedgerManager.java:203)
 ~[pulsar-metadata-x.jar:x]
           at 
org.apache.bookkeeper.meta.CleanupLedgerManager.readLedgerMetadata(CleanupLedgerManager.java:168)
 ~[bookkeeper-server-4.14.7.jar:4.14.7]
           at 
org.apache.bookkeeper.client.BookKeeper.getLedgerMetadata(BookKeeper.java:1591) 
~[bookkeeper-server-4.14.7.jar:4.14.7]
           at 
org.apache.pulsar.broker.service.persistent.PersistentTopic.lambda$getInternalStats$78(PersistentTopic.java:2160)
 ~[pulsar-broker-x.jar:x]
           at java.util.ArrayList.forEach(ArrayList.java:1541) ~[?:?]
           at 
org.apache.pulsar.broker.service.persistent.PersistentTopic.lambda$getInternalStats$81(PersistentTopic.java:2154)
 ~[pulsar-broker-x.jar:x]
           at 
java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:753) 
~[?:?]
           at 
java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:731)
 ~[?:?]
           at 
java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2108) 
~[?:?]
           at 
org.apache.pulsar.broker.service.persistent.PersistentTopic.getInternalStats(PersistentTopic.java:2152)
 ~[pulsar-broker-x.jar:x]
   ```
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to