THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Consumer Group | ||
---|---|---|
Name | Type | Description |
Group ID | string | The group ID as configured by the consumer. The ID uniquely identifies the group. |
Group Epoch | int32 | The current epoch of the group. The epoch is incremented by the group coordinator when a new assignment is required for the group. |
Members | []Member | The set of members in the group. |
Partitions Metadata | []PartitionMetadata | The metadata of the partitions that the group is subscribed to. This is used to detect partition metadata changes. |
Member | ||
Name | Type | Description |
Member ID | string | The unique identifier of the member. It is generated by the client once and must be used during its lifetime. The ID is similar to an incarnation ID. |
Instance ID | string | The instance ID configured by the consumer. |
Rack ID | string | The rack ID configured by the consumer. |
Client ID | string | The client ID configured by the consumer. |
Client Host | string | The client host configured by the consumer. |
Subscribed Topic IdsNames | []uuidstring | The current set of subscribed topic ids names configured by the consumer. |
Subscribed Topic Regex | string | The current subscription regular expression configured by the consumer. |
Server Assignor | string | The server side assignor used by the group. |
Client Assignors | []Assignor | The list of client-side assignors supported by the member. The order of this list defined the priority. |
Assignor | ||
Name | Type | Description |
Name | string | The unique name of the assignor. |
Reason | int8 | The reason why the metadata was updated. |
Minimum Version | int16 | The minimum version of the metadata schema supported by this assignor. |
Maximum Version | int16 | The maximum version of the metadata schema supported by this assignor. |
Version | int16 | The version used to encode the metadata. |
Metadata | bytes | The metadata provided by the consumer for this assignor. |
...
Code Block | ||
---|---|---|
| ||
{ "apiKey": TBD, "type": "request", "listeners": ["zkBroker", "broker"], "name": "ConsumerGroupHeartbeatRequest", "validVersions": "0", "flexibleVersions": "0+", "fields": [ { "name": "GroupId", "type": "string", "versions": "0+", "entityType": "groupId", "about": "The group identifier." }, { "name": "MemberId", "type": "string", "versions": "0+", "about": "The member id generated by the server. The member id must be kept during the entire lifetime of the member." }, { "name": "MemberEpoch", "type": "int32", "versions": "0+", "default": "-1", "about": "The current member epoch; 0 to join the group; -1 to leave the group." }, { "name": "InstanceId", "type": "string", "versions": "0+", "nullableVersions": "0+", "default": "null", "about": "null if not provided or if it didn't change since the last heartbeat; the instance Id otherwise." }, { "name": "RackId", "type": "string", "versions": "0+", "nullableVersions": "0+", "default": "null", "about": "null if not provided or if it didn't change since the last heartbeat; the rack ID of consumer otherwise." }, { "name": "RebalanceTimeoutMs", "type": "int32", "versions": "0+", "default": -1, "about": "-1 if it didn't chance since the last heartbeat; the maximum time in milliseconds that the coordinator will wait on the member to revoke its partitions otherwise." }, { "name": "SubscribedTopicIdsSubscribedTopicNames", "type": "[]uuidstring", "versions": "0+", "nullableVersions": "0+", "default": "null", "about": "null if it didn't change since the last heartbeat; the subscribed topic idsnames otherwise." }, { "name": "SubscribedTopicRegex", "type": "string", "versions": "0+", "nullableVersions": "0+", "default": "null", "about": "null if it didn't change since the last heartbeat; the subscribed topic regex otherwise" }, { "name": "ServerAssignor", "type": "string", "versions": "0+", "nullableVersions": "0+", "default": "null", "about": "null if not used or if it didn't change since the last heartbeat; the server side assignor to use otherwise." }, { "name": "ClientAssignors", "type": "[]Assignor", "versions": "0+", "nullableVersions": "0+", "default": "null", "about": "null if not used or if it didn't change since the last heartbeat; the list of client-side assignors otherwise.", "fields": [ { "name": "Name", "type": "string", "versions": "0+", "about": "The name of the assignor." }, { "name": "MinimumVersion", "type": "int16", "versions": "0+", "about": "The minimum supported version for the metadata." }, { "name": "MaximumVersion", "type": "int16", "versions": "0+", "about": "The maximum supported version for the metadata." }, { "name": "Reason", "type": "int8", "versions": "0+", "about": "The reason of the metadata update." }, { "name": "MetadataVersion", "type": "int16", "versions": "0+", "about": "The version of the metadata." }, { "name": "MetadataBytes", "type": "bytes", "versions": "0+", "about": "The metadata." } ]}, { "name": "TopicPartitions", "type": "[]TopicPartitions", "versions": "0+", "nullableVersions": "0+", "default": "null", "about": "null if it didn't change since the last heartbeat; the partitions owned by the member.", "fields": [ { "name": "TopicId", "type": "uuid", "versions": "0+", "about": "The topic ID." }, { "name": "Partitions", "type": "[]int32", "versions": "0+", "about": "The partitions." } ]} ] } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "apiKey": 71, "type": "response", "name": "ConsumerGroupDescribeResponse", "validVersions": "0", "flexibleVersions": "0+", // Supported errors: // - GROUP_AUTHORIZATION_FAILED // - NOT_COORDINATOR // - COORDINATOR_NOT_AVAILABLE // - COORDINATOR_LOAD_IN_PROGRESS // - INVALID_REQUEST // - INVALID_GROUP_ID // - GROUP_ID_NOT_FOUND "fields": [ { "name": "ThrottleTimeMs", "type": "int32", "versions": "0+", "about": "The 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": "Groups", "type": "[]DescribedGroup", "versions": "0+", "about": "Each described group.", "fields": [ { "name": "ErrorCode", "type": "int16", "versions": "0+", "about": "The describe error, or 0 if there was no error." }, { "name": "ErrorMessage", "type": "string", "versions": "0+", "nullableVersions": "0+", "default": "null", "about": "The top-level error message, or null if there was no error." } { "name": "GroupId", "type": "string", "versions": "0+", "entityType": "groupId", "about": "The group ID string." }, { "name": "GroupState", "type": "string", "versions": "0+", "about": "The group state string, or the empty string." }, { "name": "GroupEpoch", "type": "int32", "versions": "0+", "about": "The group epoch." }, { "name": "AssignmentEpoch", "type": "int32", "versions": "0+", "about": "The assignment epoch." }, { "name": "AssignorName", "type": "string", "versions": "0+", "about": "The selected assignor." }, { "name": "Members", "type": "[]Member", "versions": "0+", "about": "The members.", "fields": [ { "name": "MemberId", "type": "uuid", "versions": "0+", "about": "The member ID." }, { "name": "InstanceId", "type": "string", "versions": "0+", "nullableVersions": "0+", "default": "null", "about": "The member instance ID." }, { "name": "RackId", "type": "string", "versions": "0+", "nullableVersions": "0+", "default": "null", "about": "The member rack ID." }, { "name": "MemberEpoch", "type": "int32", "versions": "0+", "about": "The current member epoch." }, { "name": "ClientId", "type": "string", "versions": "0+", "about": "The client ID." }, { "name": "ClientHost", "type": "string", "versions": "0+", "about": "The client host." }, { "name": "SubscribedTopicIdsSubscribedTopicNames", "type": "[]uuidstring", "versions": "0+", "about": "The subscribed topic IDsnames." }, { "name": "SubscribedTopicRegex", "type": "string", "versions": "0+", "nullableVersions": "0+", "default": "null", "about": "the subscribed topic regex otherwise or null of not provided." }, { "name": "Assignment", "type": "Assignment", "versions": "0+", "about": "The current assignment." }, { "name": "TargetAssignment", "type": "Assignment", "fieldsversions": ["0+", "about": "The target assignment." }, { "name": "PartitionsAuthorizedOperations", "type": "[]TopicPartitionsint32", "versions": "03+", "default": "-2147483648", "about": "The assigned topic-partitions32-bit bitfield to the member.", represent authorized operations for this group." } ]} ], "fieldscommonStructs": [ { "name": "Assignment", "versions": "0+", "fields": [ { "name": "TopicIdPartitions", "type": "uuid[]TopicPartitions", "versions": "0+", "about": "The assigned topic ID-partitions to the member." }, "fields": [ { "name": "PartitionsTopicId", "type": "[]int32uuid", "versions": "0+", "about": "The "about": "The partitions." } ]topic ID." }, { "name": "VersionTopicName", "type": "int32string", "versions": "0+", "about": "The assignortopic metadata versionname." }, { "name": "MetadataPartitions", "type": "bytes[]int32", "versions": "0+", "about": "The assignor metadata bytespartitions." } ]}, { "name": "TargetAssignmentError", "type": "Assignmentint8", "versions": "0+", "about": "The targetassigned assignmenterror.", "fields": [ }, { "name": "PartitionsMetadataVersion", "type": "[]TopicPartitionsint32", "versions": "0+", "about": "The assignedassignor topic-partitions to the membermetadata version.", "fields": [ } { "name": "TopicIdMetadataBytes", "type": "uuidbytes", "versions": "0+", "about": "The assignor topicmetadata IDbytes." }, { "name": "Partitions", "type": "[]int32", "versions": "0+", "about": "The partitions." } ]}, { "name": "Version", "type": "int32", "versions": "0+", "about": "The assignor metadata version." } { "name": "Metadata", "type": "bytes", "versions": "0+", "about": "The assignor metadata bytes." } ]}, { "name": "AuthorizedOperations", "type": "int32", "versions": "3+", "default": "-2147483648", "about": "32-bit bitfield to represent authorized operations for this group." } ]} ] } ]} ] } |
Response Handling
Nothing particular.
...
Code Block | ||||
---|---|---|---|---|
| ||||
public class ConsumerGroupDescription { public String type() { return type; ConsumerGroupDescription { public String type() { return type; } } public class MemberDescription { /** * The current assignment of the member. Provided for both generic group and consumer group. */ public MemberAssignment assignment() {} /** * The target assignment of the member. Provided only for consumer group. */ public Optional<MemberAssignment> targetAssignment() {} } public class MemberDescriptionMetadata { // Current Assignment public MemberAssignment assignment() {} // Target Assignment public MemberAssignment targetAssignment() {} } public class MemberAssignment { /** * The reason reported by the assignor. /** * The metadata version. */ int version; /** * The metadata bytes. */ byteByteBuffer errorbytes; } public class MemberAssignment { /** * The version of the* metadata encoded in {{@link Metadata#metadata()}}The partitions. */ int Set<TopicPartition> versiontopicPartitions; /** * The customerror metadata providedreported by the assignor. Provided only if the group is a ConsumerGroup type. */ ByteBufferbyte metadataerror; /** * The partitions owned byassigned metadata. Provided only if the membergroup atis theConsumerGroup current epochtype. */ List<TopicIdPartition> Optional<Metadata> ownedPartitionsmetadata; } |
Admin#incrementalAlterConfigs and Admin#describeConfigs
...