cmccabe commented on code in PR #16058:
URL: https://github.com/apache/kafka/pull/16058#discussion_r1625013334
##########
core/src/main/scala/kafka/server/ControllerApis.scala:
##########
@@ -1080,4 +1083,39 @@ class ControllerApis(
requestThrottleMs => new
AssignReplicasToDirsResponse(reply.setThrottleTimeMs(requestThrottleMs)))
}
}
+
+ def handleAddRaftVoter(request: RequestChannel.Request):
CompletableFuture[Unit] = {
+ authHelper.authorizeClusterOperation(request, ALTER)
+ val addRequest = request.body[AddRaftVoterRequest]
+ raftManager.handleAddVoter(addRequest.data())
+ requestHelper.sendResponseMaybeThrottle(request, requestThrottleMs =>
+ new AddRaftVoterResponse(new AddRaftVoterResponseData().
+ setThrottleTimeMs(requestThrottleMs).
+ setErrorCode(0.toShort).
+ setErrorMessage(null)))
+ CompletableFuture.completedFuture[Unit](())
Review Comment:
ok
--
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]