You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "David Jacot (Jira)" <ji...@apache.org> on 2022/06/20 14:55:00 UTC

[jira] [Created] (KAFKA-14013) Limit the length of the `reason` field sent on the wire

David Jacot created KAFKA-14013:
-----------------------------------

             Summary: Limit the length of the `reason` field sent on the wire
                 Key: KAFKA-14013
                 URL: https://issues.apache.org/jira/browse/KAFKA-14013
             Project: Kafka
          Issue Type: Improvement
            Reporter: David Jacot
            Assignee: David Jacot


KIP-800 added the `reason` field to the JoinGroupRequest and the LeaveGroupRequest as I mean to provide more information to the group coordinator. In https://issues.apache.org/jira/browse/KAFKA-13998, we discovered that the size of the field is limited to 32767 chars by our serialization mechanism. At the moment, the field either provided directly by the user or constructed internally is directly set regardless of its length.

Given the purpose of this field, it seems acceptable to only sent the first 255 chars on the wire. That would prevent us from hitting that limit again while ensuring that the amount of bytes sent to the broker remain within an acceptable range.

We should apply this to the JoinGroupRequest and to the LeaveGroupRequest.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)