Skip to content

[Doc] Improve the description of acknowledgment timeout in Java docs #16695

Closed

Description

@momo-jun

What issue do you find in Pulsar docs?

Reported by a user:

The testing does not match the javadoc.

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

  • I have researched my question.

Activity

  1. added
    doc-required
    on Jul 20, 2022
  2. changed the title [-][Doc] [/-] [+][Doc] Improve the description of acknowledgment timeout in Java docs[/+] on Jul 20, 2022
  3. github-actions commented on Aug 20, 2022

    @github-actions

    The issue had no activity for 30 days, mark with Stale label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Staledoc-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions