aloyszhang opened a new pull request #9039: URL: https://github.com/apache/pulsar/pull/9039
Fixes #9038 ### Motivation As described in [PIP-70](https://github.com/apache/pulsar/wiki/PIP-70%3A-Introduce-lightweight-broker-entry-metadata). One of the use case for Broker entry metadata is providing continuous message sequence-Id for messages in one topic-partition which is useful for Protocol Hanlder like KOP. This PR enable Pulsar to support continuous offset for message based on Broker entry metadata. ### Modifications Introduce a new field for broker entry metadta named `offset`; Introduce a new interceptor type `ManagedLedgerInterceptor` which intercept entry in `ManagedLedger`; Each partition will be assigned a `ManagedLedgerInterceptor` when `ManagedLedger` created; Each Entry will be intercept for adding a monotone increasing offset in Broker entry metadata and the offet is added by batchSize of entry; Support find a position by a given offset. ---------------------------------------------------------------- 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]
