mjsax commented on code in PR #15485:
URL: https://github.com/apache/kafka/pull/15485#discussion_r1515287246
##
streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsPartitionAssignor.java:
##
@@ -628,7 +628,7 @@ private boolean assignTasksToClients(final Cluster
fullMetadata,
log.info("{} client nodes and {} consumers participating in this
rebalance: \n{}.",
clientStates.size(),
-
clientStates.values().stream().map(ClientState::capacity).reduce(Integer::sum),
+
clientStates.values().stream().map(ClientState::capacity).reduce(Integer::sum).orElse(0),
Review Comment:
Minor fix: It's an `Optional` and the log currently say:
```
5 client nodes and Optional[10] consumers participating in this rebalance
```
--
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: jira-unsubscr...@kafka.apache.org
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org