GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug] The javadoc of ConsumerBuilder.isAckReceiptEnabled is not consistent, it references ack timeout and redelivery which isn't related to ack receipt · Issue #23249 · apache/pulsar

[Bug] The javadoc of ConsumerBuilder.isAckReceiptEnabled is not consistent, it references ack timeout and redelivery which isn't related to ack receipt #23249

New issue
Copy link
New issue
Copy link
Closed
#23452
Closed
[Bug] The javadoc of ConsumerBuilder.isAckReceiptEnabled is not consistent, it references ack timeout and redelivery which isn't related to ack receipt#23249
#23452
Copy link
Assignees
lhotari
Labels
release/blockerIndicate the PR or issue that should block the release until it gets resolvedtype/bugThe PR fixed a bug or issue reported a bug

Description

@lhotari
lhotari
opened on Sep 3, 2024
Issue body actions

Search before asking

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

any released version, master branch

Minimal reproduce step

The javadoc of ConsumerBuilder.isAckReceiptEnabled is not consistent, it references ack timeout and redelivery which isn't related to ack receipt at all:

pulsar/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/ConsumerBuilder.java

Lines 200 to 208 in 10f4e02

/**
* Acknowledgement returns receipt, but the message is not re-sent after getting receipt.
*
* Configure the acknowledgement timeout mechanism to redeliver the message if it is not acknowledged after
* ackTimeout, or to execute a timer task to check the acknowledgement timeout messages during every
* ackTimeoutTickTime period.
*
* @param isAckReceiptEnabled {@link Boolean} enables acknowledgement for receipt
* @return the consumer builder instance

What did you expect to see?

There should be a proper explanation of why ack receipt is useful and what considerations are needed when using it.

One reason to enable ack receipt feature is to ensure that acknowledgements reach the server. The current assumption is that there isn't any automatic acknowledgement retry logic, but this is to be confirmed when documenting the feature.
When using this feature, it's recommended to use acknowledgeAsync. Using acknowledge would cause performance issues for most applications since it introduces a round trip to the server and would prevent pipelining (having multiple messages in-flight). In some usecases that might be desirable.

What did you see instead?

Misleading description

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. lhotari
    added
    type/bugThe PR fixed a bug or issue reported a bug
    on Sep 3, 2024
  2. lhotari
    changed the title [-][Bug] The javadoc of ConsumerBuilder.isAckReceiptEnabled is not consistent, it references ack timeout isn't related to ack receipt[/-] [+][Bug] The javadoc of ConsumerBuilder.isAckReceiptEnabled is not consistent, it references ack timeout which isn't related to ack receipt[/+] on Sep 3, 2024
  3. lhotari
    changed the title [-][Bug] The javadoc of ConsumerBuilder.isAckReceiptEnabled is not consistent, it references ack timeout which isn't related to ack receipt[/-] [+][Bug] The javadoc of ConsumerBuilder.isAckReceiptEnabled is not consistent, it references ack timeout and redelivery which isn't related to ack receipt[/+] on Sep 3, 2024
  4. lhotari commented on Sep 5, 2024

    @lhotari
    lhotari
    on Sep 5, 2024
    MemberAuthor
    More actions

    Opened an ack receipt related bug report #23261

  5. lhotari commented on Sep 7, 2024

    @lhotari
    lhotari
    on Sep 7, 2024
    MemberAuthor
    More actions

    There's a separate proposal "PIP-377: Automatic retry for failed acknowledgements", #23267 (rendered doc) . Discussion thread https://lists.apache.org/thread/7sg7hfv9dyxto36dr8kotghtksy1j0kr

  6. lhotari
    added this to Apache Pulsar / Key_Shared and Acknowledgement reliability and usability improvementson Sep 10, 2024
  7. lhotari
    added
    release/blockerIndicate the PR or issue that should block the release until it gets resolved
    on Oct 4, 2024
  8. lhotari
    self-assigned this
    on Oct 14, 2024
  9. lhotari
    closed this as completedin #23452on Oct 14, 2024
  10. github-project-automation
    moved this from Todo to Done in Apache Pulsar / Key_Shared and Acknowledgement reliability and usability improvementson Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lhotari
    lhotari

Labels

release/blockerIndicate the PR or issue that should block the release until it gets resolvedtype/bugThe PR fixed a bug or issue reported a bug

Type

No type

Projects

  • Apache Pulsar / Key_Shared and Acknowledgement reliability and usability improvements
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.