ahuang98 commented on code in PR #17930: URL: https://github.com/apache/kafka/pull/17930#discussion_r1913951387
########## raft/src/main/java/org/apache/kafka/raft/RaftUtil.java: ########## @@ -546,8 +546,6 @@ public static AddRaftVoterResponseData addVoterResponse( Errors error, String errorMessage ) { - errorMessage = errorMessage == null ? error.message() : errorMessage; Review Comment: we should only be allowing `null` as the errorMessage if the errorCode is 0 -- 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