UladzislauBlok commented on code in PR #22778:
URL: https://github.com/apache/kafka/pull/22778#discussion_r3660279024


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsGroupHeartbeatRequestManager.java:
##########
@@ -834,8 +834,21 @@ private static Map<StreamsRebalanceData.HostInfo, 
StreamsRebalanceData.EndpointP
             List<TopicPartition> activeTopicPartitions = 
getTopicPartitionList(endpoint.activePartitions());
             List<TopicPartition> standbyTopicPartitions = 
getTopicPartitionList(endpoint.standbyPartitions());
             StreamsGroupHeartbeatResponseData.Endpoint userEndpoint = 
endpoint.userEndpoint();
-            StreamsRebalanceData.EndpointPartitions endpointPartitions = new 
StreamsRebalanceData.EndpointPartitions(activeTopicPartitions, 
standbyTopicPartitions);
-            partitionsByHost.put(new 
StreamsRebalanceData.HostInfo(userEndpoint.host(), userEndpoint.port()), 
endpointPartitions);
+            StreamsRebalanceData.HostInfo hostInfo = new 
StreamsRebalanceData.HostInfo(userEndpoint.host(), userEndpoint.port());
+            
+            partitionsByHost.merge(

Review Comment:
   yes, will add dedicated unit test for this case



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