Skip to content

Commit 828461e

Browse files
committed
MINOR Clarified maximum length of COMPACT_STRING
1 parent 0e1c6fb commit 828461e

File tree

1 file changed

+2
-1
lines changed
  • clients/src/main/java/org/apache/kafka/common/protocol/types

1 file changed

+2
-1
lines changed

clients/src/main/java/org/apache/kafka/common/protocol/types/Type.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,8 @@ public String validate(Object item) {
549549
@Override
550550
public String documentation() {
551551
return "Represents a sequence of characters. First the length N + 1 is given as an UNSIGNED_VARINT " +
552-
". Then N bytes follow which are the UTF-8 encoding of the character sequence.";
552+
". Then N bytes follow which are the UTF-8 encoding of the character sequence. " +
553+
"The maximum length of a compact string is 32767.";
553554
}
554555
};
555556

0 commit comments

Comments
 (0)