Skip to content

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

Open
wants to merge 9 commits into
base: trunk
Choose a base branch
from

Conversation

dongnuo123
Copy link
Contributor

@dongnuo123 dongnuo123 commented Jun 24, 2025

This patch adds an API level integration test for the producer epoch
verification when processing transactional offset commit and end txn
markers.

@github-actions github-actions bot added triage PRs from the community core Kafka Broker tests Test fixes (including flaky tests) small Small PRs labels Jun 24, 2025
@dongnuo123 dongnuo123 changed the title DRAFT: testDelayedTxnOffsetCommitWithBumpedEpochIsRejected MINOR: testDelayedTxnOffsetCommitWithBumpedEpochIsRejected Jun 24, 2025
@dongnuo123 dongnuo123 marked this pull request as ready for review June 24, 2025 01:20
Copy link
Member

@chia7712 chia7712 left a 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

@github-actions github-actions bot removed the triage PRs from the community label Jun 27, 2025
Copy link
Member

@FrankYang0529 FrankYang0529 left a 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.

@github-actions github-actions bot removed the small Small PRs label Jul 9, 2025
@dongnuo123 dongnuo123 changed the title MINOR: testDelayedTxnOffsetCommitWithBumpedEpochIsRejected MINOR: Add tests on TxnOffsetCommit and EndTxnMarker protection against invalid producer epoch when TV2 is used Jul 10, 2025
@dongnuo123
Copy link
Contributor Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-approved core Kafka Broker tests Test fixes (including flaky tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants