mjsax commented on code in PR #16332:
URL: https://github.com/apache/kafka/pull/16332#discussion_r1643028085
##########
clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java:
##########
@@ -1257,6 +1261,9 @@ public void flush() {
this.sender.wakeup();
try {
this.accumulator.awaitFlushCompletion();
+ if (transactionManager != null) {
+ transactionManager.maybeClearLastError();
Review Comment:
I thought the error is handed back via `Callback` and users are supposed to
check for errors there? Why do we need to throw 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]