cadonna commented on code in PR #19181:
URL: https://github.com/apache/kafka/pull/19181#discussion_r1991641888


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsGroupHeartbeatRequestManager.java:
##########
@@ -119,9 +146,9 @@ private static 
List<StreamsGroupHeartbeatRequestData.TaskIds> convertTaskIdColle
                 .map(entry -> {
                     StreamsGroupHeartbeatRequestData.TaskIds ids = new 
StreamsGroupHeartbeatRequestData.TaskIds();
                     ids.setSubtopologyId(entry.getKey());
-                    ids.setPartitions(entry.getValue());
+                    
ids.setPartitions(entry.getValue().stream().sorted().collect(Collectors.toList()));

Review Comment:
   Ah, good catch!
   I believe, I added them to quickly fix the test failures, but then forgot to 
re-iterate over the change.
   I removed the sorting and added a custom assert for `TaskIds` to the tests.



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

Reply via email to