shibd commented on issue #14465: URL: https://github.com/apache/pulsar/issues/14465#issuecomment-1059722148
[PIP-84](https://github.com/apache/pulsar/wiki/PIP-84-:-Pulsar-client:-Redeliver-command-add-epoch) In the current implementation, 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 This unit test is caused by the inconsistency between the epoch of the consumer and the broker. @codelipenghui @congbobo184 Can you take a look? -- 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]
