Skip to content

[Bug] Dead Letter Policy in Consumer configuration doesn't account for chunking or batching configuration. #20934

Closed

Description

@jackson-chris

Search before asking

  • I searched in the issues and found nothing similar.

Version

2.11.1

Minimal reproduce step

  • Produce a message to a topic that exceeds the maxMessageSize default value of 5MB.
  • Create a consumer that consumes from that topic. This consumer should be configured with a deadLetterPolicy that includes retry letter and dead letter topics.
  • Simulate a failure in the consumer code by forcing a call to 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:

org.apache.pulsar.client.api.PulsarClientException$InvalidMessageException: The producer mdl-pulsar-0-12 of the topic persistent://metadatalake/metadatalake/part-rlt-v1 sends a  message with 7094331 bytes that exceeds 5242880 bytes

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:

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. added
    type/bug
    on Aug 4, 2023
  2. self-assigned this
    on Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions