-
Notifications
You must be signed in to change notification settings - Fork 14.7k
KAFKA-19682: Add logs for Kafka Streams task readiness #20693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
if (hasPendingTxCommit) { | ||
// if the task has a pending TX commit, we should just retry the commit but not process any records | ||
// thus, the task is not processable, even if there is available data in the record queue | ||
if (log.isDebugEnabled()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for calling isDebugEnabled()
only at this specific location and not in the former debug level loggings?
log.trace("Task {} has no next record to process.", id()); | ||
return false; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add else
to the if-clause if (!(record instanceof CorruptedRecord)) {
and logs for the else-clause?
partition, recordInfo.queue().size(), maxBufferedSize); | ||
partitionsToResume.add(partition); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does that make sense to add logs for catch-clauses as well?
log.debug("Task {} has paused topologies", task.id()); | ||
return false; | ||
} else { | ||
final NamedTopologyMetadata metadata = topologyNameToErrorMetadata.get(topologyName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding logs here as well?!
Thank you, @lucliu1108, for the PR. A bit tricky to choose between using debug and trace ;-) |
What
Ticket: https://issues.apache.org/jira/browse/KAFKA-19682
Add more debug/trace logs following the logic of how TaskExecutor
process task.
Reviewers: @mjsax