showuon commented on a change in pull request #11413: URL: https://github.com/apache/kafka/pull/11413#discussion_r731645529
########## File path: connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerSourceTask.java ########## @@ -514,9 +514,11 @@ public boolean commitOffsets() { // If the task has been cancelled, no more records will be sent from the producer; in that case, if any outstanding messages remain, // we can stop flushing immediately if (isCancelled() || timeoutMs <= 0) { - log.error("{} Failed to flush, timed out while waiting for producer to flush outstanding {} messages", this, outstandingMessages.size()); + log.error("{} Failed to flush, task is cancelled, or timed out while waiting for producer " + + "to flush outstanding {} messages", this, outstandingMessages.size()); Review comment: side fix: the error could be timed out or "cancelled". Add in the log. -- 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