mjsax commented on code in PR #24367:
URL: https://github.com/apache/kafka/pull/24367#discussion_r4687883859
##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/AssignmentRefinerImpl.java:
##########
@@ -1254,11 +1202,21 @@ private static boolean isStateful(
* that no role it has been granted accounts for. How far behind
that state is cannot be measured, because
* a member reports an end offset only for a task it is restoring.
A process with no such task has no
* entry.
+ * @param processLoad
+ * How loaded each process is. The load of a process is its
stateful task count over the number of members
+ * it runs -- the same shape as the task assignor's own {@code
ProcessState.load()}, so that both layers
+ * rank processes comparably.
+ * <b>Only stateful tasks are counted.</b> A process running
nothing but stateless tasks therefore has a
+ * load of zero, which is the right answer: the load never decides
where a task goes, because the target
+ * assignment has already chosen every target owner.
Review Comment:
```suggestion
* <b>Only stateful tasks are counted.</b> A process running
nothing but stateless tasks therefore has a
* load of zero.
```
--
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]