dongnuo123 commented on code in PR #15798: URL: https://github.com/apache/kafka/pull/15798#discussion_r1581026465
########## group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java: ########## @@ -1122,4 +1122,27 @@ private <IN, OUT> OUT handleOperationException( return handler.apply(apiError.error(), apiError.message()); } } + + /** + * Creates the JoinGroupResponseData according to the error type. + * + * @param memberId The member id. + * @param error The error. + * @return The JoinGroupResponseData. + */ + private static JoinGroupResponseData createJoinGroupResponseData( + String memberId, + Errors error + ) { + switch (error) { + case MEMBER_ID_REQUIRED: Review Comment: Ah yeah you're right. Let's keep it as is. -- 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