dajac commented on code in PR #16057: URL: https://github.com/apache/kafka/pull/16057#discussion_r1613943967
########## group-coordinator/src/test/java/org/apache/kafka/coordinator/group/GroupMetadataManagerTest.java: ########## @@ -8695,7 +8691,7 @@ public void testLeaveGroupInvalidGroup() { .build(); context.createClassicGroup("group-id"); - assertThrows(UnknownMemberIdException.class, () -> context.sendClassicGroupLeave( + assertThrows(GroupIdNotFoundException.class, () -> context.sendClassicGroupLeave( Review Comment: This is incorrect. We need to keep the previous exception in all these cases. -- 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