chia7712 commented on code in PR #13379: URL: https://github.com/apache/kafka/pull/13379#discussion_r1135751362
########## connect/runtime/src/main/java/org/apache/kafka/connect/runtime/ExactlyOnceWorkerSourceTask.java: ########## @@ -483,15 +483,19 @@ protected boolean shouldCommitTransactionForRecord(SourceRecord record) { if (transactionContext.shouldAbortOn(record)) { log.info("Aborting transaction for record on topic {} as requested by connector", record.topic()); log.trace("Last record in aborted transaction: {}", record); - abortTransaction(); + maybeAbortTransaction(); Review Comment: Thanks for explanation! +1 again -- 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