Versions Compared

Key

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

...

ElectLeadersRequest (Coming with Unclean Recovery)

ACL: CLUSTER_ACTION

Limit: 20 topics 1000 partitions per request. If more than 20 topics 1000 partitions are included, only the first 20 1000 will be served. Others will be returned with REQUEST_LIMIT_REACHED.

{
  "apiKey": 43,
  "type": "request",
  "listeners": ["zkBroker", "broker", "controller"],
  "name": "ElectLeadersRequest",
  "validVersions": "0-3",
  "flexibleVersions": "2+",
  "fields": [
  ...
  { "name": "TopicPartitions", "type": "[]TopicPartitions", "versions": "0+", "nullableVersions": "0+",
    "about": "The topic partitions to elect leaders.",
    "fields": [
    ...

// New fields begin. The same level with the Partitions
     { "name": "DesiredLeaders", "type": "[]int32", "versions": "3+", "nullableVersions": "3+",
      "about": "The desired leaders. The entry should match with the entry in Partitions by the index." }, }, // New fields end. ] }, { "name": "TimeoutMs", "type": "int32", "versions": "0+", "default": "60000", "about": "The time in ms to wait for the election to complete." } ] }

...

Limit: 2000 partitions per request. If more than 2000 1000 partitions are included, only the first 2000 1000 will be served. Others will be returned with REQUEST_LIMIT_REACHED.

...