forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support peek broker entry metadata (apache#9067)
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 offset from `Enty` for caculating next offset to read from and 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, it's better that pulsar `Commands` can support only peek the broker entry metadata without changing the original entry content.
- Loading branch information
1 parent
9668b03
commit 9e2874a
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters