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

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

     [ https://issues.apache.org/jira/browse/KAFKA-14013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

K. Ouafi reassigned KAFKA-14013:
--------------------------------

    Assignee: K. Ouafi  (was: David Jacot)

> 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
>    Affects Versions: 3.2.0, 3.3.0
>            Reporter: David Jacot
>            Assignee: K. Ouafi
>            Priority: Blocker
>
> 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)