-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
KAFKA-9605: Do not attempt to abort batches when txn manager is in fatal error #8177
Conversation
This reverts commit db81ce6.
@bob-barrett @hachikuji Could you take a look when you got time? |
ok to test |
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.
LGTM. Thanks for the fix!
clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java
Outdated
Show resolved
Hide resolved
handleProduceResponse(response, recordsByPartition, time.milliseconds()); | ||
} | ||
}; | ||
RequestCompletionHandler callback = response -> handleProduceResponse(response, recordsByPartition, time.milliseconds()); |
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.
👍
Thanks @bob-barrett ! Note that we got 1/2 green build already. |
test this please |
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.
LGTM. Thanks for the patch!
retest this please |
We detected a bug in soak where the producer batches shall be failed in sender loop before the produce response callback. This shall trigger an illegal state exception on the producer batch as it is already aborted.
The impact is not severe since sender is on its own thread but should be fixed to avoid unnecessary critical exception.
Committer Checklist (excluded from commit message)