Versions Compared

Key

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

...

Introduce a new version 1 to the AddRaftVoterRequest  RPC:

{
  "apiKey": 76,
  --- a/clients/src/main/resources/common/message/AddRaftVoterRequest.json
+++ b/clients/src/main/resources/common/message/AddRaftVoterRequest.json
@@ -18,7 +18,8 @@
   "type": "request",
   "listeners": ["controller", "broker"],
   "name": "AddVoterRequestAddRaftVoterRequest",
-  "validVersions": "0", "flexibleVersions": "0+", "fields": [ { "name
+  // Version 1 adds the fromController field.
+  "validVersions": "ClusterId0-1",
  "type": "string", "versions "flexibleVersions": "0+" }, { "name
   "fields": "TimeoutMs", "type": "int32", "versions": "0+" }, [
     { "name": "TopicNameClusterId", "type": "string", "versions": "0+", "entityType": "topicName", "about": "The name of the topic" }, { "name": "TopicId", "type": "uuid", "versions"nullableVersions": "0+", "about": "The unique topic ID" }, { "name": "Partition", "type": "int32", "versions": "0+",
@@ -37,6 +38,8 @@
         "about": "The partition indexhostname." },
       { "name": "VoterIdPort", "type": "int32uint16", "versions": "0+",
         "about": "The replica id of the voter getting added to the topic partitionport." },
- { "name": "VoterDirectoryId", "type": "uuid", "versions": "0+", "about": "The directory id of the voter getting added to the topic partition" }, { "name": "Listeners", "type": "[]Listener", "versions": "0+", "about": "The endpoints that can be used to communicate with the voter", "fields": [    ]}
+    ]},
+    { "name": "NameFromController", "type": "stringbool", "versions": "01+", "mapKeyignorable": true,
+      "about": "TheTrue name ofif the endpoint" }, { "name": "Host", "type": "string", "versions": "0+", "about": "The hostname" }, { "name": "Port", "type": "uint16", "versions": "0+", "about": "The port" } ]} ] request is sent from another controller as part of controller auto joining, false if sent via the admin client." }
   ]
 }

Compatibility, Deprecation, and Migration Plan

...