diff --git a/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/source/PulsarSource.java b/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/source/PulsarSource.java index 7b25cd2baf402..d8faeb23df384 100644 --- a/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/source/PulsarSource.java +++ b/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/source/PulsarSource.java @@ -105,7 +105,7 @@ public void open(Map config, SourceContext sourceContext) throws if (pulsarSourceConfig.getDeadLetterTopic() != null && !pulsarSourceConfig.getDeadLetterTopic().isEmpty()) { deadLetterPolicyBuilder.deadLetterTopic(pulsarSourceConfig.getDeadLetterTopic()); } - cb = cb.enableRetry(true).deadLetterPolicy(deadLetterPolicyBuilder.build()); + cb = cb.deadLetterPolicy(deadLetterPolicyBuilder.build()); } Consumer consumer = cb.subscribeAsync().join();