You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2026/10/14 07:25:22 UTC

(pulsar-site) branch main updated: [docs] fix: add missing .enableRetry(true) in DeadLetterPolicy examples

This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/main by this push:
     new ee3dd6eca8f [docs] fix: add missing .enableRetry(true) in DeadLetterPolicy examples
ee3dd6eca8f is described below

commit ee3dd6eca8f9d44f83a9f76c5a574b8fd1eb4f21
Author: Stochastic <13...@users.noreply.github.com>
AuthorDate: Wed Oct 14 15:25:16 2026 +0800

    [docs] fix: add missing .enableRetry(true) in DeadLetterPolicy examples
    
    * [docs] fix: add missing .enableRetry(true) in DeadLetterPolicy examples (#24775)
    
    Add missing .enableRetry(true) call in version-4.1.x docs example that
    configures retryLetterProducerBuilderCustomizer without enabling retry.
    
    Co-authored-by: yancy
    Signed-off-by: yancy <ya...@users.noreply.github.com>
    
    * Apply changes to main docs and maintained docs
    
    ---------
    
    Signed-off-by: yancy <ya...@users.noreply.github.com>
    Co-authored-by: yancy <ya...@users.noreply.github.com>
    Co-authored-by: Lari Hotari <lh...@users.noreply.github.com>
---
 docs/concepts-messaging.md                         | 1 +
 versioned_docs/version-4.0.x/concepts-messaging.md | 1 +
 versioned_docs/version-4.1.x/concepts-messaging.md | 1 +
 versioned_docs/version-5.0.x/concepts-messaging.md | 1 +
 4 files changed, 4 insertions(+)

diff --git a/docs/concepts-messaging.md b/docs/concepts-messaging.md
index f081ed46c01..c6715ac3e29 100644
--- a/docs/concepts-messaging.md
+++ b/docs/concepts-messaging.md
@@ -394,6 +394,7 @@ Consumer<byte[]> consumer = pulsarClient.newConsumer(Schema.BYTES)
                 .topic("my-topic")
                 .subscriptionName("my-subscription")
                 .subscriptionType(SubscriptionType.Shared)
+                .enableRetry(true)
                 .deadLetterPolicy(DeadLetterPolicy.builder()
                       .maxRedeliverCount(maxRedeliveryCount)
                       .deadLetterTopic("my-dead-letter-topic-name")
diff --git a/versioned_docs/version-4.0.x/concepts-messaging.md b/versioned_docs/version-4.0.x/concepts-messaging.md
index 5368cfb260f..14dd2d5dbd1 100644
--- a/versioned_docs/version-4.0.x/concepts-messaging.md
+++ b/versioned_docs/version-4.0.x/concepts-messaging.md
@@ -392,6 +392,7 @@ Consumer<byte[]> consumer = pulsarClient.newConsumer(Schema.BYTES)
                 .topic("my-topic")
                 .subscriptionName("my-subscription")
                 .subscriptionType(SubscriptionType.Shared)
+                .enableRetry(true)
                 .deadLetterPolicy(DeadLetterPolicy.builder()
                       .maxRedeliverCount(maxRedeliveryCount)
                       .deadLetterTopic("my-dead-letter-topic-name")
diff --git a/versioned_docs/version-4.1.x/concepts-messaging.md b/versioned_docs/version-4.1.x/concepts-messaging.md
index f6b4cb0f2bf..f74b018d9a3 100644
--- a/versioned_docs/version-4.1.x/concepts-messaging.md
+++ b/versioned_docs/version-4.1.x/concepts-messaging.md
@@ -365,6 +365,7 @@ Consumer<byte[]> consumer = pulsarClient.newConsumer(Schema.BYTES)
                 .topic("my-topic")
                 .subscriptionName("my-subscription")
                 .subscriptionType(SubscriptionType.Shared)
+                .enableRetry(true)
                 .deadLetterPolicy(DeadLetterPolicy.builder()
                       .maxRedeliverCount(maxRedeliveryCount)
                       .deadLetterTopic("my-dead-letter-topic-name")
diff --git a/versioned_docs/version-5.0.x/concepts-messaging.md b/versioned_docs/version-5.0.x/concepts-messaging.md
index f081ed46c01..c6715ac3e29 100644
--- a/versioned_docs/version-5.0.x/concepts-messaging.md
+++ b/versioned_docs/version-5.0.x/concepts-messaging.md
@@ -394,6 +394,7 @@ Consumer<byte[]> consumer = pulsarClient.newConsumer(Schema.BYTES)
                 .topic("my-topic")
                 .subscriptionName("my-subscription")
                 .subscriptionType(SubscriptionType.Shared)
+                .enableRetry(true)
                 .deadLetterPolicy(DeadLetterPolicy.builder()
                       .maxRedeliverCount(maxRedeliveryCount)
                       .deadLetterTopic("my-dead-letter-topic-name")