poorbarcode opened a new pull request, #22245: URL: https://github.com/apache/pulsar/pull/22245
### Motivation When using `Key_Shared` subscription, the broker may discard a part of the result reading from BK to avoid consuming the order of order, but this may cause repeated Read-and-discard which wastes a lot of BK traffic. - Read entries from the Replay queue. - The entries can not be sent to the consumer due to they are larger than `consumer.maxReadPosition` - Delivery non entry to the client, but we did a BK read. ### Modifications Before reading the BK, filter out the positions that will be discarded. TODO: add a test to ensure it works. ### 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]
