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

Evgeny Tolbakov reassigned KAFKA-14013:
---------------------------------------

    Assignee: Evgeny Tolbakov  (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: Evgeny Tolbakov
>            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.10#820010)

Reply via email to