Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14013

Limit the length of the `reason` field sent on the wire

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 3.2.0, 3.3.0
    • 3.3.0, 3.2.1
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              etolbakov Evgeny Tolbakov
              dajac David Jacot
              David Jacot David Jacot
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: