kafka-clients 1.0 内部响应接口文档

AddOffsetsToTxnResponse

version:0

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
error_codeINT16nullResponse error code

AddPartitionsToTxnResponse

version:0

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
errorsARRAY({topic:STRING,partition_errors:ARRAY({partition:INT32,error_code:INT16})})nullnull

AlterConfigsResponse

version:0

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
resourcesARRAY({error_code:INT16,error_message:NULLABLE_STRING,resource_type:INT8,resource_name:STRING})nullnull

AlterReplicaLogDirsResponse

version:0

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,error_code:INT16})})nullnull

ApiVersionsResponse

version:0

nametypedefaultValuedocString
error_codeINT16nullResponse error code
api_versionsARRAY({api_key:INT16,min_version:INT16,max_version:INT16})nullAPI versions supported by the broker.

version:1

nametypedefaultValuedocString
error_codeINT16nullResponse error code
api_versionsARRAY({api_key:INT16,min_version:INT16,max_version:INT16})nullAPI versions supported by the broker.
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)

ControlledShutdownResponse

version:0

nametypedefaultValuedocString
error_codeINT16nullResponse error code
partitions_remainingARRAY({topic:STRING,partition:INT32})nullThe partitions that the broker still leads.

version:1

nametypedefaultValuedocString
error_codeINT16nullResponse error code
partitions_remainingARRAY({topic:STRING,partition:INT32})nullThe partitions that the broker still leads.

CreateAclsResponse

version:0

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
creation_responsesARRAY({error_code:INT16,error_message:NULLABLE_STRING})nullnull

CreatePartitionsResponse

version:0

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
topic_errorsARRAY({topic:STRING,error_code:INT16,error_message:NULLABLE_STRING})nullPer topic results for the create partitions request

CreateTopicsResponse

version:0

nametypedefaultValuedocString
topic_errorsARRAY({topic:STRING,error_code:INT16})nullAn array of per topic error codes.

version:1

nametypedefaultValuedocString
topic_errorsARRAY({topic:STRING,error_code:INT16,error_message:NULLABLE_STRING})nullAn array of per topic errors.

version:2

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
topic_errorsARRAY({topic:STRING,error_code:INT16,error_message:NULLABLE_STRING})nullAn array of per topic errors.

DeleteAclsResponse

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

version:0

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
filter_responsesARRAY({error_code:INT16,error_message:NULLABLE_STRING,matching_acls:ARRAY({error_code:INT16,error_message:NULLABLE_STRING,resource_type:INT8,resource_name:STRING,principal:STRING,host:STRING,operation:INT8,permission_type:INT8})})nullnull

DeleteRecordsResponse

version:0

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,low_watermark:INT64,error_code:INT16})})nullnull

DeleteTopicsResponse

version:0

nametypedefaultValuedocString
topic_error_codesARRAY({topic:STRING,error_code:INT16})nullAn array of per topic error codes.

version:1

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
topic_error_codesARRAY({topic:STRING,error_code:INT16})nullAn array of per topic error codes.

DescribeAclsResponse

version:0

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
error_codeINT16nullResponse error code
error_messageNULLABLE_STRINGnullResponse error message
resourcesARRAY({resource_type:INT8,resource_name:STRING,acls:ARRAY({principal:STRING,host:STRING,operation:INT8,permission_type:INT8})})nullThe resources and their associated ACLs.

DescribeConfigsResponse

version:0

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
resourcesARRAY({error_code:INT16,error_message:NULLABLE_STRING,resource_type:INT8,resource_name:STRING,config_entries:ARRAY({config_name:STRING,config_value:NULLABLE_STRING,read_only:BOOLEAN,is_default:BOOLEAN,is_sensitive:BOOLEAN})})nullnull

DescribeGroupsResponse

version:0

nametypedefaultValuedocString
groupsARRAY({error_code:INT16,group_id:STRING,state:STRING,protocol_type:STRING,protocol:STRING,members:ARRAY({member_id:STRING,client_id:STRING,client_host:STRING,member_metadata:BYTES,member_assignment:BYTES})})nullnull

version:1

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
groupsARRAY({error_code:INT16,group_id:STRING,state:STRING,protocol_type:STRING,protocol:STRING,members:ARRAY({member_id:STRING,client_id:STRING,client_host:STRING,member_metadata:BYTES,member_assignment:BYTES})})nullnull

DescribeLogDirsResponse

version:0

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
log_dirsARRAY({error_code:INT16,log_dir:STRING,topics:ARRAY({topic:STRING,partitions:ARRAY({partition:INT32,size:INT64,offset_lag:INT64,is_future:BOOLEAN})})})nullnull

EndTxnResponse

version:0

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
error_codeINT16nullResponse error code

FetchResponse

version:0

nametypedefaultValuedocString
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition_header:{partition:INT32,error_code:INT16,high_watermark:INT64},record_set:RECORDS})})nullnull

version:1

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition_header:{partition:INT32,error_code:INT16,high_watermark:INT64},record_set:RECORDS})})nullnull

version:2

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition_header:{partition:INT32,error_code:INT16,high_watermark:INT64},record_set:RECORDS})})nullnull

version:3

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition_header:{partition:INT32,error_code:INT16,high_watermark:INT64},record_set:RECORDS})})nullnull

version:4

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition_header:{partition:INT32,error_code:INT16,high_watermark:INT64,last_stable_offset:INT64,aborted_transactions:ARRAY({producer_id:INT64,first_offset:INT64})},record_set:RECORDS})})nullnull

version:5

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition_header:{partition:INT32,error_code:INT16,high_watermark:INT64,last_stable_offset:INT64,log_start_offset:INT64,aborted_transactions:ARRAY({producer_id:INT64,first_offset:INT64})},record_set:RECORDS})})nullnull

version:6

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition_header:{partition:INT32,error_code:INT16,high_watermark:INT64,last_stable_offset:INT64,log_start_offset:INT64,aborted_transactions:ARRAY({producer_id:INT64,first_offset:INT64})},record_set:RECORDS})})nullnull

FindCoordinatorResponse

version:0

nametypedefaultValuedocString
error_codeINT16nullResponse error code
coordinator{node_id:INT32,host:STRING,port:INT32}nullHost and port information for the coordinator for a consumer group.

version:1

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
error_codeINT16nullResponse error code
error_messageNULLABLE_STRINGnullResponse error message
coordinator{node_id:INT32,host:STRING,port:INT32}nullHost and port information for the coordinator

HeartbeatResponse

version:0

nametypedefaultValuedocString
error_codeINT16nullResponse error code

version:1

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
error_codeINT16nullResponse error code

InitProducerIdResponse

version:0

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
error_codeINT16nullResponse error code
producer_idINT64nullCurrent producer id in use by the transactional id.
producer_epochINT16nullCurrent epoch associated with the producer id.

JoinGroupResponse

version:0

nametypedefaultValuedocString
error_codeINT16nullResponse error code
generation_idINT32nullThe generation of the group.
group_protocolSTRINGnullThe group protocol selected by the coordinator
leader_idSTRINGnullThe leader of the group
member_idSTRINGnullThe member id assigned by the group coordinator or null if joining for the first time.
membersARRAY({member_id:STRING,member_metadata:BYTES})nullnull

version:1

nametypedefaultValuedocString
error_codeINT16nullResponse error code
generation_idINT32nullThe generation of the group.
group_protocolSTRINGnullThe group protocol selected by the coordinator
leader_idSTRINGnullThe leader of the group
member_idSTRINGnullThe member id assigned by the group coordinator or null if joining for the first time.
membersARRAY({member_id:STRING,member_metadata:BYTES})nullnull

version:2

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
error_codeINT16nullResponse error code
generation_idINT32nullThe generation of the group.
group_protocolSTRINGnullThe group protocol selected by the coordinator
leader_idSTRINGnullThe leader of the group
member_idSTRINGnullThe member id assigned by the group coordinator or null if joining for the first time.
membersARRAY({member_id:STRING,member_metadata:BYTES})nullnull

LeaderAndIsrResponse

version:0

nametypedefaultValuedocString
error_codeINT16nullResponse error code
partitionsARRAY({topic:STRING,partition:INT32,error_code:INT16})nullnull

version:1

nametypedefaultValuedocString
error_codeINT16nullResponse error code
partitionsARRAY({topic:STRING,partition:INT32,error_code:INT16})nullnull

LeaveGroupResponse

version:0

nametypedefaultValuedocString
error_codeINT16nullResponse error code

version:1

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
error_codeINT16nullResponse error code

ListGroupsResponse

version:0

nametypedefaultValuedocString
error_codeINT16nullResponse error code
groupsARRAY({group_id:STRING,protocol_type:STRING})nullnull

version:1

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
error_codeINT16nullResponse error code
groupsARRAY({group_id:STRING,protocol_type:STRING})nullnull

ListOffsetResponse

version:0

nametypedefaultValuedocString
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,error_code:INT16,offsets:ARRAY(INT64)})})nullnull

version:1

nametypedefaultValuedocString
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,error_code:INT16,timestamp:INT64,offset:INT64})})nullnull

version:2

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,error_code:INT16,timestamp:INT64,offset:INT64})})nullnull

MetadataResponse

version:0

nametypedefaultValuedocString
brokersARRAY({node_id:INT32,host:STRING,port:INT32})nullHost and port information for all brokers.
topic_metadataARRAY({error_code:INT16,topic:STRING,partition_metadata:ARRAY({error_code:INT16,partition:INT32,leader:INT32,replicas:ARRAY(INT32),isr:ARRAY(INT32)})})nullnull

version:1

nametypedefaultValuedocString
brokersARRAY({node_id:INT32,host:STRING,port:INT32,rack:NULLABLE_STRING})nullHost and port information for all brokers.
controller_idINT32nullThe broker id of the controller broker.
topic_metadataARRAY({error_code:INT16,topic:STRING,is_internal:BOOLEAN,partition_metadata:ARRAY({error_code:INT16,partition:INT32,leader:INT32,replicas:ARRAY(INT32),isr:ARRAY(INT32)})})nullnull

version:2

nametypedefaultValuedocString
brokersARRAY({node_id:INT32,host:STRING,port:INT32,rack:NULLABLE_STRING})nullHost and port information for all brokers.
cluster_idNULLABLE_STRINGnullThe cluster id that this broker belongs to.
controller_idINT32nullThe broker id of the controller broker.
topic_metadataARRAY({error_code:INT16,topic:STRING,is_internal:BOOLEAN,partition_metadata:ARRAY({error_code:INT16,partition:INT32,leader:INT32,replicas:ARRAY(INT32),isr:ARRAY(INT32)})})nullnull

version:3

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
brokersARRAY({node_id:INT32,host:STRING,port:INT32,rack:NULLABLE_STRING})nullHost and port information for all brokers.
cluster_idNULLABLE_STRINGnullThe cluster id that this broker belongs to.
controller_idINT32nullThe broker id of the controller broker.
topic_metadataARRAY({error_code:INT16,topic:STRING,is_internal:BOOLEAN,partition_metadata:ARRAY({error_code:INT16,partition:INT32,leader:INT32,replicas:ARRAY(INT32),isr:ARRAY(INT32)})})nullnull

version:4

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
brokersARRAY({node_id:INT32,host:STRING,port:INT32,rack:NULLABLE_STRING})nullHost and port information for all brokers.
cluster_idNULLABLE_STRINGnullThe cluster id that this broker belongs to.
controller_idINT32nullThe broker id of the controller broker.
topic_metadataARRAY({error_code:INT16,topic:STRING,is_internal:BOOLEAN,partition_metadata:ARRAY({error_code:INT16,partition:INT32,leader:INT32,replicas:ARRAY(INT32),isr:ARRAY(INT32)})})nullnull

version:5

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
brokersARRAY({node_id:INT32,host:STRING,port:INT32,rack:NULLABLE_STRING})nullHost and port information for all brokers.
cluster_idNULLABLE_STRINGnullThe cluster id that this broker belongs to.
controller_idINT32nullThe broker id of the controller broker.
topic_metadataARRAY({error_code:INT16,topic:STRING,is_internal:BOOLEAN,partition_metadata:ARRAY({error_code:INT16,partition:INT32,leader:INT32,replicas:ARRAY(INT32),isr:ARRAY(INT32),offline_replicas:ARRAY(INT32)})})nullnull

OffsetCommitResponse

version:0

nametypedefaultValuedocString
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,error_code:INT16})})nullnull

version:1

nametypedefaultValuedocString
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,error_code:INT16})})nullnull

version:2

nametypedefaultValuedocString
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,error_code:INT16})})nullnull

version:3

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,error_code:INT16})})nullnull

OffsetFetchResponse

version:0

nametypedefaultValuedocString
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,offset:INT64,metadata:NULLABLE_STRING,error_code:INT16})})nullnull

version:1

nametypedefaultValuedocString
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,offset:INT64,metadata:NULLABLE_STRING,error_code:INT16})})nullnull

version:2

nametypedefaultValuedocString
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,offset:INT64,metadata:NULLABLE_STRING,error_code:INT16})})nullnull
error_codeINT16nullResponse error code

version:3

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,offset:INT64,metadata:NULLABLE_STRING,error_code:INT16})})nullnull
error_codeINT16nullResponse error code

OffsetsForLeaderEpochResponse

version:0

nametypedefaultValuedocString
topicsARRAY({topic:STRING,partitions:ARRAY({error_code:INT16,partition:INT32,end_offset:INT64})})nullAn array of topics for which we have leader offsets for some requested Partition Leader Epoch

ProduceResponse

version:0

nametypedefaultValuedocString
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,error_code:INT16,base_offset:INT64})})nullnull

version:1

nametypedefaultValuedocString
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,error_code:INT16,base_offset:INT64})})nullnull
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)

version:2

nametypedefaultValuedocString
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,error_code:INT16,base_offset:INT64,log_append_time:INT64})})nullnull
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)

version:3

nametypedefaultValuedocString
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,error_code:INT16,base_offset:INT64,log_append_time:INT64})})nullnull
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)

version:4

nametypedefaultValuedocString
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,error_code:INT16,base_offset:INT64,log_append_time:INT64})})nullnull
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)

version:5

nametypedefaultValuedocString
responsesARRAY({topic:STRING,partition_responses:ARRAY({partition:INT32,error_code:INT16,base_offset:INT64,log_append_time:INT64,log_start_offset:INT64})})nullnull
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)

SaslAuthenticateResponse

version:0

nametypedefaultValuedocString
error_codeINT16nullResponse error code
error_messageNULLABLE_STRINGnullResponse error message
sasl_auth_bytesBYTESnullSASL authentication bytes from server as defined by the SASL mechanism.

SaslHandshakeResponse

version:0

nametypedefaultValuedocString
error_codeINT16nullResponse error code
enabled_mechanismsARRAY(STRING)nullArray of mechanisms enabled in the server.

version:1

nametypedefaultValuedocString
error_codeINT16nullResponse error code
enabled_mechanismsARRAY(STRING)nullArray of mechanisms enabled in the server.

StopReplicaResponse

version:0

nametypedefaultValuedocString
error_codeINT16nullResponse error code
partitionsARRAY({topic:STRING,partition:INT32,error_code:INT16})nullnull

SyncGroupResponse

version:0

nametypedefaultValuedocString
error_codeINT16nullResponse error code
member_assignmentBYTESnullnull

version:1

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
error_codeINT16nullResponse error code
member_assignmentBYTESnullnull

TxnOffsetCommitResponse

version:0

nametypedefaultValuedocString
throttle_time_msINT320Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota)
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,error_code:INT16})})nullErrors per partition from writing markers.

UpdateMetadataResponse

version:0

nametypedefaultValuedocString
error_codeINT16nullResponse error code

version:1

nametypedefaultValuedocString
error_codeINT16nullResponse error code

version:2

nametypedefaultValuedocString
error_codeINT16nullResponse error code

version:3

nametypedefaultValuedocString
error_codeINT16nullResponse error code

version:4

nametypedefaultValuedocString
error_codeINT16nullResponse error code

WriteTxnMarkersResponse

version:0

nametypedefaultValuedocString
transaction_markersARRAY({producer_id:INT64,topics:ARRAY({topic:STRING,partitions:ARRAY({partition:INT32,error_code:INT16})})})nullErrors per partition from writing markers.
原文地址:https://www.cnblogs.com/simoncook/p/11317477.html