mjsax commented on code in PR #24195:
URL: https://github.com/apache/kafka/pull/24195#discussion_r4558898928
##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:
##########
@@ -2293,7 +2293,7 @@ private CoordinatorResult<StreamsGroupHeartbeatResult,
CoordinatorRecord> stream
// 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);
- if (!refinedGroupAssignment.getOrDefault(memberId,
TasksTuple.EMPTY).sameTasks(updatedMember.assignedTasks())) {
+ if (differsFromAssignedTasks(refinedGroupAssignment, group)) {
Review Comment:
I don't think we can skip this step... if warmup tasks are getting disabled,
while some members still have warmup tasks assigned, the assignment changes
(the refiner would remove all warmups and move all pending active tasks to
their new owners), for which we need to bump the epoch.
If we check `num.warmup.tasks > 0` we would skip the epoch bump for this
case, and the group would be stuck on the old assignment.
There might be ways to make `differsFromAssignedTasks()` more efficient
though, but I don't want to put this into this bug-fix PR, if that's ok with
you. I would require more refactoring (inspired by
https://github.com/apache/kafka/pull/24153)
--
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]