mirror of https://github.com/apache/kafka.git
KAFKA-17764 Remove unnecessary ignorable annotations (#17452)
KIP-932 used ignorable annotations in some RPC schemas when they are not applicable in situations where there is only a single version of the RPC in existence. This PR removes the unnecessary annotations. The KIP has been updated accordingly. Reviewers: Jun Rao <junrao@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
167e2f71f0
commit
edd3860433
|
@ -35,11 +35,11 @@
|
||||||
"about": "The maximum time in milliseconds to wait for the response." },
|
"about": "The maximum time in milliseconds to wait for the response." },
|
||||||
{ "name": "MinBytes", "type": "int32", "versions": "0+",
|
{ "name": "MinBytes", "type": "int32", "versions": "0+",
|
||||||
"about": "The minimum bytes to accumulate in the response." },
|
"about": "The minimum bytes to accumulate in the response." },
|
||||||
{ "name": "MaxBytes", "type": "int32", "versions": "0+", "default": "0x7fffffff", "ignorable": true,
|
{ "name": "MaxBytes", "type": "int32", "versions": "0+", "default": "0x7fffffff",
|
||||||
"about": "The maximum bytes to fetch. See KIP-74 for cases where this limit may not be honored." },
|
"about": "The maximum bytes to fetch. See KIP-74 for cases where this limit may not be honored." },
|
||||||
{ "name": "Topics", "type": "[]FetchTopic", "versions": "0+",
|
{ "name": "Topics", "type": "[]FetchTopic", "versions": "0+",
|
||||||
"about": "The topics to fetch.", "fields": [
|
"about": "The topics to fetch.", "fields": [
|
||||||
{ "name": "TopicId", "type": "uuid", "versions": "0+", "ignorable": true, "about": "The unique topic ID."},
|
{ "name": "TopicId", "type": "uuid", "versions": "0+", "about": "The unique topic ID."},
|
||||||
{ "name": "Partitions", "type": "[]FetchPartition", "versions": "0+",
|
{ "name": "Partitions", "type": "[]FetchPartition", "versions": "0+",
|
||||||
"about": "The partitions to fetch.", "fields": [
|
"about": "The partitions to fetch.", "fields": [
|
||||||
{ "name": "PartitionIndex", "type": "int32", "versions": "0+",
|
{ "name": "PartitionIndex", "type": "int32", "versions": "0+",
|
||||||
|
@ -57,9 +57,9 @@
|
||||||
]}
|
]}
|
||||||
]}
|
]}
|
||||||
]},
|
]},
|
||||||
{ "name": "ForgottenTopicsData", "type": "[]ForgottenTopic", "versions": "0+", "ignorable": false,
|
{ "name": "ForgottenTopicsData", "type": "[]ForgottenTopic", "versions": "0+",
|
||||||
"about": "The partitions to remove from this share session.", "fields": [
|
"about": "The partitions to remove from this share session.", "fields": [
|
||||||
{ "name": "TopicId", "type": "uuid", "versions": "0+", "ignorable": true, "about": "The unique topic ID."},
|
{ "name": "TopicId", "type": "uuid", "versions": "0+", "about": "The unique topic ID."},
|
||||||
{ "name": "Partitions", "type": "[]int32", "versions": "0+",
|
{ "name": "Partitions", "type": "[]int32", "versions": "0+",
|
||||||
"about": "The partitions indexes to forget." }
|
"about": "The partitions indexes to forget." }
|
||||||
]}
|
]}
|
||||||
|
|
|
@ -33,15 +33,15 @@
|
||||||
// - INVALID_REQUEST (version 0+)
|
// - INVALID_REQUEST (version 0+)
|
||||||
// - UNKNOWN_SERVER_ERROR (version 0+)
|
// - UNKNOWN_SERVER_ERROR (version 0+)
|
||||||
"fields": [
|
"fields": [
|
||||||
{ "name": "ThrottleTimeMs", "type": "int32", "versions": "0+", "ignorable": true,
|
{ "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." },
|
"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": "ErrorCode", "type": "int16", "versions": "0+", "ignorable": true,
|
{ "name": "ErrorCode", "type": "int16", "versions": "0+",
|
||||||
"about": "The top-level response error code." },
|
"about": "The top-level response error code." },
|
||||||
{ "name": "ErrorMessage", "type": "string", "versions": "0+", "nullableVersions": "0+", "default": "null",
|
{ "name": "ErrorMessage", "type": "string", "versions": "0+", "nullableVersions": "0+", "default": "null",
|
||||||
"about": "The top-level error message, or null if there was no error." },
|
"about": "The top-level error message, or null if there was no error." },
|
||||||
{ "name": "Responses", "type": "[]ShareFetchableTopicResponse", "versions": "0+",
|
{ "name": "Responses", "type": "[]ShareFetchableTopicResponse", "versions": "0+",
|
||||||
"about": "The response topics.", "fields": [
|
"about": "The response topics.", "fields": [
|
||||||
{ "name": "TopicId", "type": "uuid", "versions": "0+", "ignorable": true, "about": "The unique topic ID."},
|
{ "name": "TopicId", "type": "uuid", "versions": "0+", "about": "The unique topic ID."},
|
||||||
{ "name": "Partitions", "type": "[]PartitionData", "versions": "0+",
|
{ "name": "Partitions", "type": "[]PartitionData", "versions": "0+",
|
||||||
"about": "The topic partitions.", "fields": [
|
"about": "The topic partitions.", "fields": [
|
||||||
{ "name": "PartitionIndex", "type": "int32", "versions": "0+",
|
{ "name": "PartitionIndex", "type": "int32", "versions": "0+",
|
||||||
|
|
Loading…
Reference in New Issue