THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
{ "apiKey": 50, "type": "request", "name": "BrokerHeartbeatRequest", "validVersions": "0", "flexibleVersions": "0+", "fields": [ { "name": "TargetState", "type": "int8", "versions": "0+", "about": "The state that the broker wants to reach." }, { "name": "BrokerId", "type": "int32", "versions": "0+", "about": "The broker ID." }, { "name": "BrokerEpoch", "type": "int64", "versions": "0+", "default": "-1", "about": "The broker epoch, or -1 if one has not yet been assigned." }, { "name": "LeaseStartTimeMs", "type": "int64", "versions": "0+", "about": "The time which the broker wants the lease to start at in milliseconds." }, { "name": "CurMetadataOffset", "type": "int64", "versions": "0+", "about": "The highest metadata offset which the broker has reached." }, { "name": "Listeners", "type": "[]Listener", "about": "The listeners of this broker", "versions": "0+", "fields": [ { "name": "Name", "type": "string", "versions": "0+", "mapKey": true, "about": "The name of the endpoint." }, { "name": "Host", "type": "string", "versions": "0+", "about": "The hostname." }, { "name": "Port", "type": "int16", "versions": "0+", "about": "The port." }, { "name": "SecurityProtocol", "type": "int16", "versions": "0+", "about": "The security protocol." } ] } ] } { "apiKey": 50, "type": "response", "name": "BrokerHeartbeatResponse", "validVersions": "0", "flexibleVersions": "0+", "fields": [ { "name": "ErrorCodeThrottleTimeMs", "type": "int16int32", "versions": "0+", "about": "The error codeDuration in milliseconds for which the request was throttled due to a quota violation, or 0zero if there was no error the request did not violate any quota." }, { "name": "ActiveControllerIdErrorCode", "type": "int32int16", "versions": "0+", "about": "The ID of the active controllererror code, or -10 if thethere controllerwas doesn'tno knowerror." }, { "name": "NextStateActiveControllerId", "type": "int8int32", "versions": "0+", "about": "The stateID to whichof the broker should transition." }, active controller, or -1 if the controller doesn't know." }, { "name": "NextState", "type": "int8", "versions": "0+", "about": "The state to which the broker should transition." }, { "name": "BrokerEpoch", "type": "int64", "versions": "0+", "default": "-1", "about": "The broker's assigned epoch, or -1 if none was assigned." }, { "name": "LeaseEndTimeMs", "type": "int64", "versions": "0+", "about": "The time in milliseconds at which the lease should end. This is based on the start time that was passed, not the controller's local clock." } ] } enum BrokerState { UNKNOWN(0), INITIAL(1), FENCED(2), ACTIVE(3), SHUTDOWN(4); } |
...
Code Block | ||
---|---|---|
| ||
{
"apiKey": 51,
"type": "request",
"name": "ControllerHeartbeatRequest",
"validVersions": "0",
"flexibleVersions": "0+",
"fields": [
{ "name": "ControllerId", "type": "int32", "versions": "0+",
"about": "The controller ID." },
{ "name": "LastSnapshotOffset", "type": "int64", "versions": "0+",
"about": "The offset of the last snapshot on this controller node." }
]
}
{
"apiKey": 51,
"type": "response",
"name": "ControllerHeartbeatResponse",
"validVersions": "0",
"flexibleVersions": "0+",
"fields": [
{ "name": "ThrottleTimeMs", "type": "int32", "versions": "0+",
"about": "Duration in milliseconds for which the request was throttled due to a quota violation, or zero if the request did not violate any quota." },
{ "name": "ErrorCode", "type": "int16", "versions": "0+",
"about": "The error code, or 0 if there was no error." },
{ "name": "StartSnapshot", "type": "bool", "versions": "0+",
"about": "True if we should start creating a snapshot." }
]
} |
...