Skip to content
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

Use CassandraQueryWaitStrategy in CassandraServer #19928

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

ebyhr
Copy link
Member

@ebyhr ebyhr commented Nov 28, 2023

Description

Fixes #19926

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

@cla-bot cla-bot bot added the cla-signed label Nov 28, 2023
return dockerContainer.getMappedPort(PORT);
}

private static void checkConnectivity(CassandraSession session)
Copy link
Member Author

@ebyhr ebyhr Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method is replaced with CassandraQueryWaitStrategy

import static org.testcontainers.utility.MountableFile.forHostPath;

public class CassandraServer
implements Closeable
{
private static final Logger log = Logger.get(CassandraServer.class);

private static final int PORT = 9142;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CassandraContainer expects 9042 as the default port.

@ebyhr ebyhr force-pushed the ebi/cassandra-flaky-test branch from 3545c2c to c68a64d Compare November 28, 2023 03:32
@ebyhr ebyhr requested review from wendigo and hashhar November 28, 2023 04:01
@ebyhr ebyhr merged commit 282be53 into trinodb:master Nov 28, 2023
17 checks passed
@ebyhr ebyhr deleted the ebi/cassandra-flaky-test branch November 28, 2023 05:03
@github-actions github-actions bot added this to the 434 milestone Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Flaky TestCassandraTokenSplitManager.setUp
2 participants