urbandan commented on code in PR #13591: URL: https://github.com/apache/kafka/pull/13591#discussion_r1174902758
########## clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java: ########## @@ -968,13 +968,31 @@ private void transitionTo(State target) { } private void transitionTo(State target, RuntimeException error) { + transitionTo(target, error, false); Review Comment: For the last point, it is probably out of scope, and needs a more generic approach for all transactional reenqueue calls ########## clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java: ########## @@ -266,7 +266,7 @@ public synchronized TransactionalRequestResult beginAbort() { return handleCachedTransactionRequestResult(() -> { if (currentState != State.ABORTABLE_ERROR) maybeFailWithError(); - transitionTo(State.ABORTING_TRANSACTION); + transitionTo(State.ABORTING_TRANSACTION, null, true); Review Comment: I think the parameter throwError is unused, you need to propagate it to the transitionTo call -- 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