Skip to content

KAFKA-16600: Periodically receive "Failed to transition to PENDING_SHUTDOWN, current state is PENDING_SHUTDOWN" during streams close#21671

Open
kirktrue wants to merge 5 commits intoapache:trunkfrom
kirktrue:KAFKA-16600-add-tests
Open

KAFKA-16600: Periodically receive "Failed to transition to PENDING_SHUTDOWN, current state is PENDING_SHUTDOWN" during streams close#21671
kirktrue wants to merge 5 commits intoapache:trunkfrom
kirktrue:KAFKA-16600-add-tests

Conversation

@kirktrue
Copy link
Contributor

@kirktrue kirktrue commented Mar 8, 2026

Note: this doesn't fix anything; it adds a unit test to catch regression.

The change includes a unit test that reliably fails before the fix from KAFKA-17379 and reliably passes afterward. It's a bit heavy-handed, but it seems to be consistent.

…UTDOWN, current state is PENDING_SHUTDOWN" during streams close

Including a unit test that reliably fails before the fix from KAFKA-17379 and reliably passes afterward. It's a bit heavy-handed, but it seems to be consistent.
@github-actions github-actions bot added triage PRs from the community streams small Small PRs labels Mar 8, 2026
kirktrue added 4 commits March 7, 2026 21:02
Simplify and harden the regression test for KAFKA-17379 by removing the 100-attempt loop and repeated KafkaStreams creation, increasing the number of concurrent close threads from 4 to 10, and clarifying assertion messages. The test still starts the streams, races multiple close() invocations against closeToError(), and fails if any close() throws; the change aims to make the test more deterministic and faster while preserving coverage of the race condition.
@kirktrue kirktrue marked this pull request as ready for review March 12, 2026 17:39
@github-actions
Copy link

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants