Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Request Schema

Code Block
{
  "apiKey": N56,
  "type": "request",
  "name": "DescribeQuorumRequest",
  "validVersions": "0",
  "flexibleVersions": "0+",
  "fields": [
    { "name": "Topics", "type": "[]DescribeQuorumTopicRequest", 
      "versions": "0+", "fields": [
        { "name": "TopicName", "type": "string", "versions": "0+", "entityType": "topicName",
          "about": "The topic name." },
        { "name": "Partitions", "type": "[]DescribeQuorumPartitionRequest", 
          "versions": "0+", "fields": [
            { "name": "PartitionIndex", "type": "int32", "versions": "0+",
            "about": "The partition index." }
          ]
       }]
    }      
  ]
}

Response Schema

Code Block
{
  "apiKey": N,
  "type": "response",
  "name": "DescribeQuorumResponse",
  "validVersions": "0",
  "flexibleVersions": "0+",
  "fields": [
     { "name": "Topics", "type": "[]DescribeQuorumTopicResponse", 
        "versions": "0+", "fields": [
          { "name": "TopicName", "type": "string", "versions": "0+", "entityType": "topicName",
            "about": "The topic name." },
          { "name": "Partitions", "type": "[]DescribeQuorumPartitionResponse", 
            "versions": "0+", "fields": [
              { "name": "PartitionIndex", "type": "int32", "versions": "0+",
              "about": "The partition index." },
              {"name": "ErrorCode", "type": "int16", "versions": "0+"},
		      {"name": "LeaderId", "type": "int32", "versions": "0+",
		      "about": "The ID of the current leader or -1 if the leader is unknown."},
		      {"name": "LeaderEpoch", "type": "int32", "versions": "0+",
		      "about": "The latest known leader epoch"},
		      {"name": "HighWatermark", "type": "int64", "versions": "0+"},
			  {"name": "CurrentVoters", "type": "[]ReplicaState", "versions": "0+" },
		      {"name": "TargetVoters", "type": "[]ReplicaState", "versions": "0+" },
    		  {"name": "Observers", "type": "[]ReplicaState", "versions": "0+" }
            ]
          }
      }
      
  ],
  "commonStructs": [
	{"name": "ReplicaState", "versions": "0+", "fields": [
      { "name": "ReplicaId", "type": "int32", "versions": "0+"},
      { "name": "LogEndOffset", "type": "int64", "versions": "0+",
        "about": "The last known log end offset of the follower or -1 if it is unknown"},
      { "name": "LastCaughtUpTimeMs", "type": "int64", "versions": "0+",
        "about": "The last time the replica was caught up to the high watermark"}
    ]}
  ]
}

...