hanmz opened a new pull request, #22233: URL: https://github.com/apache/pulsar/pull/22233
### Motivation If the ledger of the schema in the topic is lost, when we call the admin interface "topics stats-internal", the server only has the following error log: <img width="2401" alt="image" src="https://github.com/apache/pulsar/assets/16524922/1cdabeac-6dc7-466e-9e1d-33c3d01a459d"> However, this log does not clearly indicate which ledger is lost. We don’t even know whether the ledger of topic, cursor or schema is lost. Therefore, it brings challenges to quickly locate the problem. ### Modifications When failed to get ledger metadata for the schema ledger, add logs to quickly locate problem: ` log.info("[{}] Failed to get ledger metadata for the schema ledger {}", topic, ledgerId, e);` At this time, we can see the following log, and we can quickly and clearly know that the problem is caused by the loss of the ledger in the schema. <img width="1379" alt="image" src="https://github.com/apache/pulsar/assets/16524922/40b17eb0-5cd0-4345-afee-e26edc7a8f6c"> ### Documentation <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> - [ ] `doc` <!-- Your PR contains doc changes. --> - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later --> - [x] `doc-not-needed` <!-- Your PR changes do not impact docs --> - [ ] `doc-complete` <!-- Docs have been already added --> -- 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]
