FrankYang0529 commented on code in PR #16566:
URL: https://github.com/apache/kafka/pull/16566#discussion_r1676787868


##########
clients/src/test/java/org/apache/kafka/clients/consumer/KafkaConsumerTest.java:
##########
@@ -1572,10 +1564,10 @@ public void 
testManualAssignmentChangeWithAutoCommitEnabled(GroupProtocol groupP
 
         ConsumerPartitionAssignor assignor = new RangeAssignor();
 
+        
client.prepareResponseFrom(FindCoordinatorResponse.prepareResponse(Errors.NONE, 
groupId, node), node);

Review Comment:
   I revert this change, but this is expected. 
`CoordinatorRequestManager#onSuccessfulResponse` uses `Integer.MAX_VALUE - 
coordinator.nodeId()` as coordinator id.
   
   
https://github.com/apache/kafka/blob/0ada8fac6869cad8ac33a79032cf5d57bfa2a3ea/clients/src/main/java/org/apache/kafka/clients/consumer/internals/CoordinatorRequestManager.java#L148-L161



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to