THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Network protocol
Code Block | ||
---|---|---|
| ||
{ "apiKey": 43, "type": "request", "name": "ElectLeadersRequest", "validVersions": "0-1", "fields": [ { "name": "TopicPartitions", "type": "[]TopicPartitions", "versions": "0+", "nullableVersions": "0+", "about": "The topic partitions to elect leaders.", "fields": [ { "name": "Topic", "type": "string", "versions": "0+", "about": "The name of a topic." }, { "name": "PartitionId", "type": "[]int32", "versions": "0", "about": "The partitions of this topic whose preferred leader should be elected." }, { "name": "Partitions", "type": "[]Partitions", "versions": "1+", "about": "The partitions of this topic whose leader should be elected.", "fields": [ { "name": "PartitionId", "type": "int32", "versions": "1+", "about": "The partition id." }, { "name": "ElectionType", "type": "int8", "versions": "1+", "about": "Type of elections to conduct for the partition. A value of '0' elects the preferred leader. A value of '1' elects an unclean leader if there are no in-sync leaders." } ] } ] }, { "name": "TimeoutMs", "type": "int32", "versions": "0+", "default": "60000", "about": "The time in ms to wait for the election to complete." } ] } |
...