mjsax commented on code in PR #23899:
URL: https://github.com/apache/kafka/pull/23899#discussion_r4594008995
##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:
##########
@@ -2286,7 +2286,7 @@ private CoordinatorResult<StreamsGroupHeartbeatResult,
CoordinatorRecord> stream
if (assignmentUpdate == AssignmentUpdate.NONE && group.state() ==
StreamsGroup.StreamsGroupState.STABLE) {
// We are not computing a new target assignment later, thus we try
to refine the current target assignment
// into an intermediate assignment (with warm-up tasks) the member
should be reconciled towards.
- refinedGroupAssignment = refineAssignment(group,
group.targetAssignment(), updatedConfiguredTopology);
+ refinedGroupAssignment = refineAssignment(group, group.members(),
group.targetAssignment(), updatedConfiguredTopology);
Review Comment:
Could it make sense to move computing the view before this call, and pass in
```
refineAssignment(
group,
updatedMembersAndTargetAssignment.members(),
updatedMembersAndTargetAssignment.targetAssignment(),
updatedConfiguredTopology
);
```
It's kinda irritating why we pass in `group` and `group.members()` and
`group.targetAssignment()` -- w/o more context the reader ask why
`refineAssignment` can not just get members and target-assignment from the
first `group` parameter.
--
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]