Skip to content

Include the actual record size while returning MessageTooLarge error #1204

@anubhav21sharma

Description

@anubhav21sharma

When we try to produce a kafka message larger in size than the configured max buffered bytes, we see the following error message being returned -

The request included a message larger than the max message size the server will accept.

Would it be possible to also include the size of the actual kafka message that caused this error, i.e. something like -

The request included a message larger than the max message size the server will accept (1468006 > 1048576).

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions