mirror of https://github.com/apache/kafka.git
MINOR: Fix fetch session epoch comment in `FetchRequest.json` (#8802)
The current "about" string incorrectly describes the session epoch as the partition epoch. Rename to `SessionEpoch` to make usage clearer. Also rename `MaxWait` to `MaxWaitMs` to make the time unit clear and `FetchableTopic` to `FetchTopic` for consistency with `FetchPartition`. Reviewers: Ismael Juma <ismael@juma.me.uk>
This commit is contained in:
parent
8d3d2742b3
commit
1d24e2e3b2
|
|
@ -49,7 +49,7 @@
|
|||
"fields": [
|
||||
{ "name": "ReplicaId", "type": "int32", "versions": "0+",
|
||||
"about": "The broker ID of the follower, of -1 if this request is from a consumer." },
|
||||
{ "name": "MaxWait", "type": "int32", "versions": "0+",
|
||||
{ "name": "MaxWaitMs", "type": "int32", "versions": "0+",
|
||||
"about": "The maximum time in milliseconds to wait for the response." },
|
||||
{ "name": "MinBytes", "type": "int32", "versions": "0+",
|
||||
"about": "The minimum bytes to accumulate in the response." },
|
||||
|
|
@ -59,9 +59,9 @@
|
|||
"about": "This setting controls the visibility of transactional records. Using READ_UNCOMMITTED (isolation_level = 0) makes all records visible. With READ_COMMITTED (isolation_level = 1), non-transactional and COMMITTED transactional records are visible. To be more concrete, READ_COMMITTED returns all data from offsets smaller than the current LSO (last stable offset), and enables the inclusion of the list of aborted transactions in the result, which allows consumers to discard ABORTED transactional records" },
|
||||
{ "name": "SessionId", "type": "int32", "versions": "7+", "default": "0", "ignorable": false,
|
||||
"about": "The fetch session ID." },
|
||||
{ "name": "Epoch", "type": "int32", "versions": "7+", "default": "-1", "ignorable": false,
|
||||
"about": "The epoch of the partition leader as known to the follower replica or a consumer." },
|
||||
{ "name": "Topics", "type": "[]FetchableTopic", "versions": "0+",
|
||||
{ "name": "SessionEpoch", "type": "int32", "versions": "7+", "default": "-1", "ignorable": false,
|
||||
"about": "The fetch session epoch, which is used for ordering requests in a session" },
|
||||
{ "name": "Topics", "type": "[]FetchTopic", "versions": "0+",
|
||||
"about": "The topics to fetch.", "fields": [
|
||||
{ "name": "Name", "type": "string", "versions": "0+", "entityType": "topicName",
|
||||
"about": "The name of the topic to fetch." },
|
||||
|
|
|
|||
Loading…
Reference in New Issue