lihaosky commented on code in PR #14139:
URL: https://github.com/apache/kafka/pull/14139#discussion_r1284910181


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/HighAvailabilityTaskAssignor.java:
##########
@@ -43,21 +43,27 @@
 
 public class HighAvailabilityTaskAssignor implements TaskAssignor {
     private static final Logger log = 
LoggerFactory.getLogger(HighAvailabilityTaskAssignor.class);
+    private static final int DEFAULT_STATEFUL_TRAFFIC_COST = 10;
+    private static final int DEFAULT_STATEFUL_NON_OVERLAP_COST = 1;
+    private static final int DEFAULT_STATELESS_TRAFFIC_COST = 1;
+    private static final int DEFAULT_STATELESS_NON_OVERLAP_COST = 1;

Review Comment:
   Yeah. The only stateful cost is configurable. The default is not set in 
`StreamsConfig` because it will be different for `HAAssignor` and 
`StickyAssignor`. So the default in `StreamsConfig` is null which means use 
assignor's default.



-- 
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]

Reply via email to