poorbarcode opened a new pull request, #21169: URL: https://github.com/apache/pulsar/pull/21169
### Motivation ``` 2023-09-12T05:35:43,141+0000 [pulsar-msg-expiry-monitor-25-1] ERROR org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/xxx] Failed to get message with ledger 7213399:0 the ledgerId does not belong to this topic or has been deleted. 2023-09-12T05:35:43,141+0000 [pulsar-msg-expiry-monitor-25-1] WARN org.apache.pulsar.broker.service.persistent.PersistentTopic - [persistent://public/default/xxx] Error while getting the oldest message 2023-09-12T05:35:43,292+0000 [pulsar-msg-expiry-monitor-25-1] WARN org.apache.pulsar.broker.service.persistent.PersistentTopic - [persistent://public/default/xxx] Error while getting the oldest message 2023-09-12T05:35:43,292+0000 [pulsar-msg-expiry-monitor-25-1] ERROR org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/xxx] Failed to get message with ledger 7210605:2 the ledgerId does not belong to this topic or has been deleted. 2023-09-12T05:35:43,292+0000 [pulsar-msg-expiry-monitor-25-1] ERROR org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/xxx] Failed to get message with ledger 7210605:2 the ledgerId does not belong to this topic or has been deleted. 2023-09-12T05:35:43,292+0000 [pulsar-msg-expiry-monitor-25-1] WARN org.apache.pulsar.broker.service.persistent.PersistentTopic - [persistent://public/default/xxx] Error while getting the oldest message 2023-09-12T05:35:43,529+0000 [pulsar-msg-expiry-monitor-25-1] ERROR org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/PRICING/persistent/xxx] Failed to get message with ledger 7168220:3818 the ledgerId does not belong to this topic or has been deleted. 2023-09-12T05:35:43,529+0000 [pulsar-msg-expiry-monitor-25-1] WARN org.apache.pulsar.broker.service.persistent.PersistentTopic - [persistent://public/PRICING/xxx] Error while getting the oldest message ``` There is a log of error logs indicating that the broker tries to read a deleted ledger. Since there are a lot of subscriptions under this topic(durable and non-durable), we do not know what happened. ### Modifications If the read entry fails, add the cursor name to the error log. ### 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 --> ### Matching PR in forked repository PR in forked repository: x -- 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]
