shibd opened a new pull request #14716: URL: https://github.com/apache/pulsar/pull/14716
### Motivation #14465 In the current implementation [PIP-84](https://github.com/apache/pulsar/wiki/PIP-84-:-Pulsar-client:-Redeliver-command-add-epoch), the consumer epoch and broker epoch may be inconsistent. Unless reconnected, otherwise consumers will always filter message. When the consumer calls the `consumer.redeliverUnacknowledgedMessages()` method, Consumer every time epoch + 1. But broker may be not increment. In the following code. https://github.com/apache/pulsar/blob/4f1e39b6921ea401b8c27f17a041d06d85f8abf8/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentDispatcherSingleActiveConsumer.java#L310-L322 ### Modifications - When broker receives a message from consumer`redeliver message`, every time epoch increment. - Add synchronized to readMoreEntries method. - Change log print. ### Documentation - [x] `no-need-doc` -- 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]
