Skip to content

3.x: Test fixes #560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 27, 2025
Merged

Conversation

Bouncheck
Copy link
Collaborator

Fixes to the tests that are run by scylla-java-driver-matrix.
See respective commits for the descriptions.

This brings two adjustments:
First, it changes the expected number of connections for Scylla clusters since
with multiple shards driver will usually open more connections.
Second, the checks for number of open channels now ignore the target port on
the cluster. Any channel matchin the address without port will now count.
This helps to correctly count connections to ccm made Scylla clusters which
can use different ports depending on circumstances. For example with
advanced shard awareness driver will target different port than in
non-shard aware case.
When running this test with newer Scylla, the drop keyspace query times out.
This is because the cluster lacks raft quorum, although the returned
`OperationTimedOutException` does not inform about that.
To observe this you need to enable debug logging and then you may find
message like this one before the exception:
```
[cluster2-nio-worker-3] DEBUG com.datastax.driver.core.Connection - Connection[/127.0.1.2:40269-1, inFlight=0, closed=false] Response received on stream 832 but no handler set anymore (either the request has timed out or it was closed due to another error). Received message is ERROR SERVER_ERROR: group [e4fdf001-521a-11f0-b1fb-7d275bcabf53] raft operation [read_barrier] timed out, there is no raft quorum, total voters count 2, alive voters count 1, dead voters [127.0.1.1]
```
Increasing the number of nodes to 3 allows the cluster to maintain the raft
quorum and does not impact the test itself.
@Bouncheck Bouncheck self-assigned this Jun 26, 2025
@Bouncheck Bouncheck requested a review from dkropachev June 26, 2025 21:22
@dkropachev dkropachev merged commit 6762900 into scylladb:scylla-3.x Jun 27, 2025
10 checks passed
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.

2 participants