Skip to content

KAFKA-18209: Clean up transaction state topic config logic#22456

Merged
chia7712 merged 1 commit into
apache:trunkfrom
majialoong:KAFKA-18209
Jun 6, 2026
Merged

KAFKA-18209: Clean up transaction state topic config logic#22456
chia7712 merged 1 commit into
apache:trunkfrom
majialoong:KAFKA-18209

Conversation

@majialoong

@majialoong majialoong commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

This PR cleans up the __transaction_state topic config logic by
removing scattered configuration related constants from TransactionLog
and keeping it focused on serialization/deserialization.

It also moves transaction state topic config construction to
TransactionCoordinator and renames transactionTopicConfigs to
transactionStateTopicConfigs for clarity, aligning with the current
group/share coordinator pattern where coordinators expose internal topic
configs to the broker.

Reviewers: Chia-Ping Tsai chia7712@gmail.com

@github-actions github-actions Bot added triage PRs from the community core Kafka Broker transactions Transactions and EOS small Small PRs labels Jun 2, 2026
@majialoong

Copy link
Copy Markdown
Contributor Author

Hi @mimaison , would you mind reviewing this PR when you have a chance?

* @return the transactional id
* @throws IllegalStateException if the version is not a valid transaction log key version
*/
public static String readTxnRecordKey(ByteBuffer buffer) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice cleanup! we missed this in #21405

@chia7712 chia7712 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@chia7712 chia7712 merged commit 8a81878 into apache:trunk Jun 6, 2026
25 checks passed
@github-actions github-actions Bot removed the triage PRs from the community label Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved core Kafka Broker small Small PRs transactions Transactions and EOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants