Skip to content

CASSANDRA-21506: Avoid Python dtest failure cascade by waiting for node socket release#814

Open
nivykani wants to merge 1 commit into
apache:trunkfrom
nivykani:fix-loopback-socket-wait
Open

CASSANDRA-21506: Avoid Python dtest failure cascade by waiting for node socket release#814
nivykani wants to merge 1 commit into
apache:trunkfrom
nivykani:fix-loopback-socket-wait

Conversation

@nivykani

@nivykani nivykani commented Jul 14, 2026

Copy link
Copy Markdown

Ensure that CCM fully stops the node and releases addresses when wait=True.

Additionally, during start_cluster(), we can directly wait on ports to be available by retrying every 1 second up to the default timeout of 15 seconds per address.

Note: Fails fast; if one address is still not released by the timeout (default=15 seconds), it returns UnavailableSocketError rather than waiting for the others.

Each interface could use up almost the full 15s timeout in the worst case, which makes tests slower but more likely to succeed.

Cassandra JIRA

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant