Skip to content

[improve][client] Document that enableRetry is required for retry letter topic settings - #26286

Open
MsfPablo wants to merge 1 commit into
apache:masterfrom
MsfPablo:doc-enable-retry-deadletterpolicy
Open

[improve][client] Document that enableRetry is required for retry letter topic settings#26286
MsfPablo wants to merge 1 commit into
apache:masterfrom
MsfPablo:doc-enable-retry-deadletterpolicy

Conversation

@MsfPablo

@MsfPablo MsfPablo commented Aug 7, 2026

Copy link
Copy Markdown

Motivation

The deadLetterPolicy javadoc shows retry/DLQ configuration without mentioning that enableRetry(true) is required for the retry letter topic settings to take effect, which is misleading. Fixes #24775.

Modifications

Add a javadoc example on ConsumerBuilder#deadLetterPolicy showing enableRetry(true) alongside retryLetterTopic, and a cross-reference on ConsumerBuilder#enableRetry.

Assisted-by: Claude Code (Opus 5)

…ter topic settings

### Motivation

The `deadLetterPolicy` javadoc shows retry/DLQ configuration without mentioning
that `enableRetry(true)` is required for the retry letter topic settings to take
effect, which is misleading (apache#24775).

### Modifications

Add a javadoc example on `ConsumerBuilder#deadLetterPolicy` showing
`enableRetry(true)` alongside `retryLetterTopic`, and a cross-reference on
`ConsumerBuilder#enableRetry`.

Assisted-by: Claude Code (Opus 5)

@void-ptr974 void-ptr974 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this and for clarifying the relationship between deadLetterPolicy and enableRetry(true). The added Javadocs are technically correct and make the retry-topic behavior much clearer.

One non-blocking suggestion: it would also be helpful to add the same enableRetry(true) requirement to the Javadocs of DeadLetterPolicy#retryLetterTopic and DeadLetterPolicy#retryLetterProducerBuilderCustomizer. Users may discover these options directly through the DeadLetterPolicy builder or IDE completion, and the current field-level Javadocs still do not mention that dependency.

Overall, the change looks good to me.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Doc] Pulsar consumer config is missing to enable retry while mentioning retryletter config

2 participants