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


##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:
##########
@@ -4627,7 +4625,14 @@ private UpdateTargetAssignmentResult<Map<String, 
TasksTuple>> maybeUpdateStreams
                     group.groupId(), groupEpoch, assignor, assignorTimeMs);
             }
 
-            records.addAll(assignmentResult.records());
+            new 
TargetAssignmentRecordsBuilder.StreamsTargetAssignmentRecordsBuilder(log, 
group.groupId())
+                
.withTargetAssignmentMetadata(assignmentResult.targetAssignmentMetadata())
+                
.withCurrentMemberIds(updatedMembersAndTargetAssignment.members().keySet())
+                
.withPreviousStaticMembers(updatedMembersAndTargetAssignment.staticMembers())
+                
.withCurrentStaticMembers(updatedMembersAndTargetAssignment.staticMembers())

Review Comment:
   I opened #23622 for it. Your thoughts on the approach are appreciated!



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