kevin-wu24 commented on code in PR #19589: URL: https://github.com/apache/kafka/pull/19589#discussion_r2076215876
########## raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java: ########## @@ -2323,6 +2342,25 @@ private CompletableFuture<RemoveRaftVoterResponseData> handleRemoveVoterRequest( ); } + private boolean handleRemoveVoterResponse( + RaftResponse.Inbound responseMetadata, + long currentTimeMs + ) { + RemoveRaftVoterResponseData data = (RemoveRaftVoterResponseData) responseMetadata.data(); + + Errors error = Errors.forCode(data.errorCode()); + + if (error == Errors.NONE || error == Errors.UNSUPPORTED_VERSION || error == Errors.VOTER_NOT_FOUND) { + return true; + } else if (error == Errors.REQUEST_TIMED_OUT) { + FollowerState follower = quorum.followerStateOrThrow(); + follower.resetUpdateVoterPeriod(currentTimeMs); + return true; Review Comment: See https://github.com/apache/kafka/pull/19589#discussion_r2076214189 -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org