Skip to content

KAFKA-20777: Make a closed StagedMergeIterator throw InvalidStateStoreException#22797

Open
alanlau28 wants to merge 1 commit into
apache:trunkfrom
alanlau28:streams-staged-merge-iterator-close-fix
Open

KAFKA-20777: Make a closed StagedMergeIterator throw InvalidStateStoreException#22797
alanlau28 wants to merge 1 commit into
apache:trunkfrom
alanlau28:streams-staged-merge-iterator-close-fix

Conversation

@alanlau28

@alanlau28 alanlau28 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Jira: https://issues.apache.org/jira/browse/KAFKA-20777

When transactional state stores are enabled (enable.transactional.statestores=true), an open StagedMergeIterator that is used after the store is closed throws java.lang.IllegalStateException("Iterator has already been closed.") from StagedMergeIterator.hasNext(), for consistency with the other managed store iterators (e.g. RocksDbIterator), it should throw InvalidStateStoreException.

@github-actions github-actions Bot added triage PRs from the community streams small Small PRs labels Jul 9, 2026
@alanlau28 alanlau28 changed the title Make a closed StagedMergeIterator throw InvalidStateStoreException KAFKA-20777: Make a closed StagedMergeIterator throw InvalidStateStoreException Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

small Small PRs streams triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant