Shawyeok commented on issue #23944: URL: https://github.com/apache/pulsar/issues/23944#issuecomment-2709223532
> Currently, the message redelivery count (RedeliveryCount) only increases when the client actively calls the redeliver method https://github.com/apache/pulsar/issues/18239. It’s partially correct. You can enable [ackTimeout][at] on the consumer. Once the consumer returns a message from the receive method, the countdown starts. A background [task][track] runs periodically to redeliver messages that exceed the ackTimeout. For an instance: the application thread which processing message may get stuck on deadlock or other issues, thus it may have no chance to call negativeAck to redeliver this message to other consumer. [at]: https://github.com/apache/pulsar/blob/branch-3.0/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/ConsumerBuilder.java#L200 [track]: https://github.com/apache/pulsar/blob/branch-3.0/pulsar-client/src/main/java/org/apache/pulsar/client/impl/UnAckedMessageTracker.java -- 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]
