-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KIP-590: support new admin EnvelopeRequest & DefaultPrincipalData
- generation: defines the new request & misc type - kversion: adds a new request - client: supports the new admin request for error parsing - kerr: adds a new error This required some minor code generation changes, but includes zero functional changes.
- Loading branch information
Showing
7 changed files
with
505 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Introduced for KIP-590, EnvelopeRequest is what brokers use to wrap an | ||
// incoming request before forwarding it to another broker. | ||
EnvelopeRequest => key 58, max version 0, flexible v0+, admin | ||
// The embedded request header and data. | ||
RequestData: bytes | ||
// Value of the initial client principal when the request is redirected by a broker. | ||
RequestPrincipal: nullable-bytes | ||
// The original client's address in bytes. | ||
ClientHostAddress: bytes | ||
|
||
EnvelopeResponse => | ||
// The embedded response header and data. | ||
ResponseData: nullable-bytes | ||
// The error code, or 0 if there was no error. | ||
// | ||
// NOT_CONTROLLER is returned when the request is not sent to the controller. | ||
// | ||
// CLUSTER_AUTHORIZATION_FAILED is returned if inter-broker authorization failed. | ||
ErrorCode: int16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.