Skip to content
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

Merged
merged 3 commits into from
Mar 11, 2020

Conversation

abbccdda
Copy link
Contributor

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)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@abbccdda abbccdda changed the title Kafka 9605: Do not attempt to abort batches when txn manager is in fatal error KAFKA-9605: Do not attempt to abort batches when txn manager is in fatal error Feb 26, 2020
@abbccdda
Copy link
Contributor Author

@bob-barrett @hachikuji Could you take a look when you got time?

@ijuma
Copy link
Contributor

ijuma commented Feb 29, 2020

ok to test

Copy link
Contributor

@bob-barrett bob-barrett left a 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!

handleProduceResponse(response, recordsByPartition, time.milliseconds());
}
};
RequestCompletionHandler callback = response -> handleProduceResponse(response, recordsByPartition, time.milliseconds());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@abbccdda
Copy link
Contributor Author

abbccdda commented Mar 2, 2020

Thanks @bob-barrett ! Note that we got 1/2 green build already.

@vvcephei
Copy link
Contributor

vvcephei commented Mar 3, 2020

test this please

Copy link
Contributor

@hachikuji hachikuji left a 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!

@hachikuji
Copy link
Contributor

retest this please

@hachikuji hachikuji merged commit f19a798 into apache:trunk Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants