Skip to content

MINRO: Use sealed interface for TransactionLog.read() to improve error handling#21404

Closed
DL1231 wants to merge 1 commit intoapache:trunkfrom
DL1231:trans_error_handling
Closed

MINRO: Use sealed interface for TransactionLog.read() to improve error handling#21404
DL1231 wants to merge 1 commit intoapache:trunkfrom
DL1231:trans_error_handling

Conversation

@DL1231
Copy link
Collaborator

@DL1231 DL1231 commented Feb 5, 2026

Introduce a sealed interface ReadResult with TxnRecord,
TxnTombstone, UnknownKeyVersion, and UnknownValueVersion
variants.

This enables Scala pattern matching for cleaner handling without
explicit try-catch.

@github-actions github-actions bot added triage PRs from the community core Kafka Broker transactions Transactions and EOS labels Feb 5, 2026
@DL1231 DL1231 closed this Feb 5, 2026
@DL1231 DL1231 reopened this Feb 5, 2026
@DL1231 DL1231 closed this Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Kafka Broker transactions Transactions and EOS triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant