bbejeck commented on code in PR #24053:
URL: https://github.com/apache/kafka/pull/24053#discussion_r4555020864
##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamTask.java:
##########
@@ -769,11 +771,15 @@ public boolean isProcessable(final long wallClockTime) {
return readyToProcess.isReady();
}
- private void maybeLogNotReady(final long wallClockTime, final String
logMessage) {
+ private void maybeLogNotReady(final long wallClockTime, final String
logMessage, final boolean isNormalIdling) {
// NOT_READY - check if it should log
final long timeSinceLastLog = lastNotReadyLogTime.map(aLong ->
wallClockTime - aLong).orElse(-1L);
if (timeSinceLastLog >= NOT_READY_LOG_INTERVAL_MS) {
- log.info(logMessage);
+ if (isNormalIdling) {
+ log.debug(logMessage);
Review Comment:
maybe worth having a `if (log.isDebugEnabled) { ` here, otherwise we're
still building the message here if `DEBUG` is off.
--
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]