aloyszhang opened a new pull request #9067: URL: https://github.com/apache/pulsar/pull/9067
### Motivation This pull requeset adds `Commands.peekBrokerEntryMetadataIfExist` method to support peek broker entry metadata. This will be used in protocol handler KOP. Currently, when handles `FetchRequest`, KOP will 1. firset read `Entry` out of ledger 2. get `BaseOffset` from `Enty` for building `MemoryRecordsBuilder` 3. traverse every `Entry` and add each message into `MemoryRecordsBuilder` we need the `Entry` twice, first for peeking the offset and second for buiding `MemoryRecordsBuilder`. So, we should support only peek the broker entry metadata without changing the original entry content. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
