brandboat commented on code in PR #22531:
URL: https://github.com/apache/kafka/pull/22531#discussion_r4736139975
##########
clients/src/main/java/org/apache/kafka/clients/admin/AddRaftVoterOptions.java:
##########
@@ -46,4 +51,48 @@ public AddRaftVoterOptions setClusterId(Optional<String>
clusterId) {
public Optional<String> clusterId() {
return clusterId;
}
+
+ public AddRaftVoterOptions setVoterDirectoryId(Optional<Uuid>
voterDirectoryId) {
+ this.voterDirectoryId = voterDirectoryId;
Review Comment:
Good call, thanks. I left this out at first because the existing
`setClusterId` in `AddRaftVoterOptions` takes null without any check, and I
wanted the new setters to behave the same way. But a null `clusterId` doesn't
actually work, the admin client fails later, when it builds the request. So
failing early with a null check in `AddRaftVoterOptions` /
`RemoveRaftVoterOptions` seems fine to me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]