KIP-636 — Make RPC error codes and messages tagged fields
Discussion Protocol
Converts the `ErrorCode` and `ErrorMessage` fields in all RPC messages using flexible (tagged-field-capable) versions to tagged fields, so they occupy zero bytes when the error code is `NONE`. On happy-path responses, `ErrorCode=0` and `ErrorMessage=null` are present in every response but carry no information; making them tagged fields saves 2-3 bytes per response sub-entity, which compounds for batched responses.
Details
| Author | Tom Bentley |
| Status | Discussion |
| Wiki | View on Apache Wiki |
| Created | 2020-07-01 |
| Last Modified | 2020-07-02 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.