gabriellefu commented on code in PR #23924:
URL: https://github.com/apache/kafka/pull/23924#discussion_r4542910715
##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/assignor/BalancedTaskAssignor.java:
##########
@@ -124,16 +128,18 @@ public GroupAssignment assign(final GroupSpec groupSpec,
final TopologyDescriber
final ProcessTasks[] processesById = processes.values().toArray(new
ProcessTasks[0]);
final int[] period = dealPeriod(processesById);
dealTasks(processesById, period, 0, statefulTasks, process ->
process.statefulActiveTasks);
+ dealTasks(processesById, period, statefulTasks.size(), statelessTasks,
process -> process.statelessActiveTasks);
Review Comment:
change it to assign stateless active task before standby task, which improve
the balanced
--
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]