GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — MINOR: Clarify non-compact fields in flexible protocol docs (#23692) · coderbruis/kafka@a81595a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docs/design
    • protocol.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/design/protocol.md‎

Copy file name to clipboardExpand all lines: docs/design/protocol.md
+3-1Lines changed: 3 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ The protocol is built out of the following primitive types.
138138

139139
{{< include-html file="/static/{version}/generated/protocol_types.html" >}}
140140

141-
Message versions marked as flexible use the compact encoding for variable-length fields. In particular, arrays use `COMPACT_ARRAY` rather than `ARRAY`; strings and byte arrays similarly use their corresponding `COMPACT_*` types. Compact encodings store their length as an unsigned variable-length integer instead of a fixed-width integer. Flexible versions also include a tagged-fields section at the end of every request and response component.
141+
By default, message versions marked as flexible use the compact encoding for variable-length fields. In particular, arrays use `COMPACT_ARRAY` rather than `ARRAY`; strings and byte arrays similarly use their corresponding `COMPACT_*` types. Compact encodings store their length as an unsigned variable-length integer instead of a fixed-width integer. Flexible versions also include a tagged-fields section at the end of every request and response component.
142+
143+
Individual fields can override this encoding in the message schema. For example, `ClientId` in flexible request headers uses `NULLABLE_STRING` with a two-byte length prefix, rather than `COMPACT_NULLABLE_STRING`, so that older brokers can read the header of an `ApiVersions` request.
142144

143145
### Notes on reading the request format grammars
144146

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.