momo-jun opened a new issue, #16695: URL: https://github.com/apache/pulsar/issues/16695
### What issue do you find in Pulsar docs? Reported by a user: The testing does not match the [javadoc](https://github.com/apache/pulsar/blob/master/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/ConsumerBuilder.java#L184-L185). > By default, the acknowledge timeout is disabled and that means that messages delivered to a > consumer is not re-delivered unless the consumer crashes. Since 2.3.0, when a dead letter policy > is specified, and no ackTimeoutMillis is specified, the ack timeout is set to 30 seconds. Acknowledgment timeout is not disabled by default, because unacknowledged messages are re-delivered after the current consumer shuts down. What I see is that an ack timeout of 0 appears to be an infinite timeout. Whenever the consumer terminates (crashing or not), messages not yet acknowledged will be re-delivered. ### What is your suggestion? Can the Pulsar Javadoc be updated like: By default, the acknowledgment timeout is set to 0 which means no limit. When a consumer with an infinite acknowledgment timeout terminates, any unacknowledged messages that it receives are re-delivered to another consumer. ### Do you have any references? https://github.com/apache/pulsar/blob/master/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/ConsumerBuilder.java#L184-L185 ### Would you like to fix this issue? Yes. ### Note - [X] I have researched my question. -- 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]
