jnh5y commented on code in PR #12161: URL: https://github.com/apache/kafka/pull/12161#discussion_r879881895
########## streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskExecutionMetadata.java: ########## @@ -35,21 +35,27 @@ public class TaskExecutionMetadata { private static final long CONSTANT_BACKOFF_MS = 5_000L; private final boolean hasNamedTopologies; + private final Set<String> pausedTopologies; // map of topologies experiencing errors/currently under backoff private final ConcurrentHashMap<String, NamedTopologyMetadata> topologyNameToErrorMetadata = new ConcurrentHashMap<>(); - public TaskExecutionMetadata(final Set<String> allTopologyNames) { + public TaskExecutionMetadata(final Set<String> allTopologyNames, final Set<String> pausedTopologies) { this.hasNamedTopologies = !(allTopologyNames.size() == 1 && allTopologyNames.contains(UNNAMED_TOPOLOGY)); + this.pausedTopologies = pausedTopologies; } public boolean canProcessTask(final Task task, final long now) { Review Comment: I've added some unit tests for `TaskExecutionMetadata` here: https://github.com/apache/kafka/pull/12161/commits/0a378794226495074b0f38d5e1295ac3ec45238e -- 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