-
Notifications
You must be signed in to change notification settings - Fork 14.5k
MINOR: Add tests on TxnOffsetCommit and EndTxnMarker protection against invalid producer epoch when TV2 is used #20024
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
base: trunk
Are you sure you want to change the base?
Conversation
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.
@dongnuo123 thanks for adding useful tests
core/src/test/scala/unit/kafka/server/TxnOffsetCommitRequestTest.scala
Outdated
Show resolved
Hide resolved
core/src/test/scala/unit/kafka/server/TxnOffsetCommitRequestTest.scala
Outdated
Show resolved
Hide resolved
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 for the PR. Overall LGTM. Out of curiosity, do we want to have a similar test for EndTxnRequest and expected error for TV_2 is PRODUCER_FENCED
.
@FrankYang0529 For EndTxnRequest we already have some integration tests in TransactionTest.scala but I guess we should have one for WriteTxnMarkersRequest to test the protection on the group coordinator side |
This patch adds an API level integration test for the producer epoch
verification when processing transactional offset commit and end txn
markers.