mirror of https://github.com/apache/kafka.git
* `SnapshotEpoch` type in `ShareSnapshotValue.json` and
`ShareUpdateValue.json` is currently
`uint16` which might overflow under heavy traffic.
* To be consistent with other epochs, this PR updates the type to
`int32`.
backport from trunk (cb809e2574
)
Reviewers: Andrew Schofield <aschofield@confluent.io>
This commit is contained in:
parent
7b6ef4d322
commit
150412d7f7
|
@ -20,7 +20,7 @@
|
|||
"validVersions": "0",
|
||||
"flexibleVersions": "0+",
|
||||
"fields": [
|
||||
{ "name": "SnapshotEpoch", "type": "uint16", "versions": "0+",
|
||||
{ "name": "SnapshotEpoch", "type": "int32", "versions": "0+",
|
||||
"about": "The snapshot epoch." },
|
||||
{ "name": "StateEpoch", "type": "int32", "versions": "0+",
|
||||
"about": "The state epoch for this share-partition." },
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
"validVersions": "0",
|
||||
"flexibleVersions": "0+",
|
||||
"fields": [
|
||||
{ "name": "SnapshotEpoch", "type": "uint16", "versions": "0+",
|
||||
{ "name": "SnapshotEpoch", "type": "int32", "versions": "0+",
|
||||
"about": "The snapshot epoch." },
|
||||
{ "name": "LeaderEpoch", "type": "int32", "versions": "0+",
|
||||
"about": "The leader epoch of the share-partition." },
|
||||
|
|
Loading…
Reference in New Issue