rodesai commented on a change in pull request #11149: URL: https://github.com/apache/kafka/pull/11149#discussion_r694522888
########## File path: streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsProducer.java ########## @@ -67,22 +69,35 @@ private final Map<String, Object> eosV2ProducerConfigs; private final KafkaClientSupplier clientSupplier; private final StreamThread.ProcessingMode processingMode; + private final Time time; private Producer<byte[], byte[]> producer; private boolean transactionInFlight = false; private boolean transactionInitialized = false; + private double oldProducerTotalBlockedTime = 0; public StreamsProducer(final StreamsConfig config, final String threadId, final KafkaClientSupplier clientSupplier, final TaskId taskId, final UUID processId, final LogContext logContext) { + this(config, threadId, clientSupplier, taskId, processId, logContext, Time.SYSTEM); + } Review comment: it's only meant for testing. I'll make it package-private and annotate it -- 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