dajac commented on code in PR #23575:
URL: https://github.com/apache/kafka/pull/23575#discussion_r4121727866
##########
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:
@squah-confluent It seems that we have an opportunity to skip the
computation between the previous and the existing state members when offloading
path is not used. Computing the diff is wasteful is this case. We can address
it separately though.
--
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]