showuon commented on a change in pull request #11035: URL: https://github.com/apache/kafka/pull/11035#discussion_r670091468
########## File path: clients/src/test/java/org/apache/kafka/clients/admin/KafkaAdminClientTest.java ########## @@ -3680,6 +3685,72 @@ public void testRemoveMembersFromGroupRetriableErrors() throws Exception { } } + @Test + public void testRemoveMembersFromGroupRetriableErrorsInMemberResponse() throws Exception { + // Retriable errors should be retried + String groupId = "instance-1"; + + try (AdminClientUnitTestEnv env = new AdminClientUnitTestEnv(mockCluster(1, 0))) { + env.kafkaClient().setNodeApiVersions(NodeApiVersions.create()); + + env.kafkaClient().prepareResponse( + prepareFindCoordinatorResponse(Errors.NONE, env.cluster().controller())); + + MemberResponse memberResponse = new MemberResponse() + .setGroupInstanceId(groupId) + .setErrorCode(Errors.COORDINATOR_LOAD_IN_PROGRESS.code()); Review comment: Right! Removed. Thanks. -- 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