squah-confluent commented on code in PR #22268:
URL: https://github.com/apache/kafka/pull/22268#discussion_r3229715301


##########
clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/RackAwareAssignor.java:
##########
@@ -81,7 +81,8 @@ public GroupAssignment assign(GroupSpec groupSpec, 
SubscribedTopicDescriber subs
                 }
 
                 if (assignedRack == null) {
-                    throw new PartitionAssignorException("No member found for 
racks " + racks + " for partition " + partitionId + " of topic " + topicId);
+                    // No rack-local member found, which can be transiently 
true as membership changes. Pick any member for now.
+                    assignedRack = rackIdToMemberId.keySet().iterator().next();

Review Comment:
   Thanks for deflaking the test!
   
   Is leaving the partition unassigned an option? And would it be less 
confusing to folks debugging the test?



-- 
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