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
Conversation
…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.
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.
|
A label of 'needs-attention' was automatically added to this PR in order to raise the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.