Skip to content

Commit

Permalink
Functions deadletter topic is not the same as enableRetry (apache#7610)
Browse files Browse the repository at this point in the history
Co-authored-by: Sanjeev Kulkarni <[email protected]>
  • Loading branch information
srkukarni and Sanjeev Kulkarni authored Jul 24, 2020
1 parent d75cbb4 commit 835f506
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void open(Map<String, Object> 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<T> consumer = cb.subscribeAsync().join();
Expand Down

0 comments on commit 835f506

Please sign in to comment.