[Bug] Dead Letter Policy in Consumer configuration doesn't account for chunking or batching configuration. #20934
Closed
2 tasks done
Labels
type/bug
The PR fixed a bug or issue reported a bug
Search before asking
Version
2.11.1
Minimal reproduce step
maxMessageSize
default value of5MB
.deadLetterPolicy
that includes retry letter and dead letter topics.reconsumeLater
What did you expect to see?
I would expect that a message will be produced to the retry letter topic that was configured in the deadLetterPolicy for that consumer.
What did you see instead?
The following error is observed:
Anything else?
The root cause is expected to be that the consumer implementation with respect to creating the producers for whatever is provided in
deadLetterPolicy
does not have any configuration parameters regarding if batching or chunking should be enabled. Problematic code:pulsar/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java
Lines 2092 to 2097 in ecd16d6
pulsar/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java
Lines 613 to 617 in ecd16d6
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: