Skip to content

Commit 775e2eb

Browse files
committed
update request/response
1 parent 8df7002 commit 775e2eb

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

clients/src/main/resources/common/message/OffsetFetchRequest.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@
3838
//
3939
// Version 9 is the first version that can be used with the new consumer group protocol (KIP-848). It adds
4040
// the MemberId and MemberEpoch fields. Those are filled in and validated when the new consumer protocol is used.
41-
"validVersions": "1-9",
41+
//
42+
// Version 10 adds support for topic ids (KIP-848).
43+
"validVersions": "1-10",
4244
"flexibleVersions": "6+",
45+
"latestVersionUnstable": true,
4346
"fields": [
4447
{ "name": "GroupId", "type": "string", "versions": "0-7", "entityType": "groupId",
4548
"about": "The group to fetch offsets for." },
@@ -60,8 +63,10 @@
6063
"about": "The member epoch if using the new consumer protocol (KIP-848)." },
6164
{ "name": "Topics", "type": "[]OffsetFetchRequestTopics", "versions": "8+", "nullableVersions": "8+",
6265
"about": "Each topic we would like to fetch offsets for, or null to fetch offsets for all topics.", "fields": [
63-
{ "name": "Name", "type": "string", "versions": "8+", "entityType": "topicName",
66+
{ "name": "Name", "type": "string", "versions": "8+", "entityType": "topicName", "ignorable": true,
6467
"about": "The topic name."},
68+
{ "name": "TopicId", "type": "uuid", "versions": "10+", "ignorable": true,
69+
"about": "The topic ID." },
6570
{ "name": "PartitionIndexes", "type": "[]int32", "versions": "8+",
6671
"about": "The partition indexes we would like to fetch offsets for." }
6772
]}

clients/src/main/resources/common/message/OffsetFetchResponse.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
// Version 9 is the first version that can be used with the new consumer group protocol (KIP-848). The response is
3939
// the same as version 8 but can return STALE_MEMBER_EPOCH and UNKNOWN_MEMBER_ID errors when the new consumer group
4040
// protocol is used.
41-
"validVersions": "1-9",
41+
//
42+
// Version 10 adds support for topic ids (KIP-848).
43+
"validVersions": "1-10",
4244
"flexibleVersions": "6+",
4345
// Supported errors:
4446
// - GROUP_AUTHORIZATION_FAILED (version 0+)
@@ -49,6 +51,7 @@
4951
// - UNSTABLE_OFFSET_COMMIT (version 7+)
5052
// - UNKNOWN_MEMBER_ID (version 9+)
5153
// - STALE_MEMBER_EPOCH (version 9+)
54+
// - UNKNOWN_TOPIC_ID (version 10+)
5255
"fields": [
5356
{ "name": "ThrottleTimeMs", "type": "int32", "versions": "3+", "ignorable": true,
5457
"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." },
@@ -78,8 +81,10 @@
7881
"about": "The group ID." },
7982
{ "name": "Topics", "type": "[]OffsetFetchResponseTopics", "versions": "8+",
8083
"about": "The responses per topic.", "fields": [
81-
{ "name": "Name", "type": "string", "versions": "8+", "entityType": "topicName",
84+
{ "name": "Name", "type": "string", "versions": "8+", "entityType": "topicName", "ignorable": true,
8285
"about": "The topic name." },
86+
{ "name": "TopicId", "type": "uuid", "versions": "10+", "ignorable": true,
87+
"about": "The topic ID." },
8388
{ "name": "Partitions", "type": "[]OffsetFetchResponsePartitions", "versions": "8+",
8489
"about": "The responses per partition.", "fields": [
8590
{ "name": "PartitionIndex", "type": "int32", "versions": "8+",

0 commit comments

Comments
 (0)