testcontainers / testcontainers/testcontainers-java

Provide an out-of-the-box WaitStrategy that validates Cassandra's CqlSession is available

Open
#3,224 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
Java
Stars
8.7k
Forks
1.9k
Avg merge
2d 17h
Merged PRs (30d)
9

Description

We're using testcontainers with Cassandra and we need to make sure that the CqlSession is available as things happen asynchronously.

We ended up, with the help of the Cassandra team, with this code.

Although the local datacenter is specific, it could be a parameter of some kind maybe? Or a supplier for CqlSessionBuilder?

It looks like every ITs would need this strategy so it would be awesome if the project would provide that.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the referenced Spring Boot test at spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cassandra/CassandraAutoConfigurationWithPasswordAuthenticationIntegrationTests.java and review how it checks CqlSession availability. Define what an out-of-the-box Cassandra WaitStrategy should validate, including how local datacenter configuration is supplied; done when the strategy supports asynchronous session availability.

Written by the indexing model from the issue text.

Assessment

Tech stack
cassandra, java
Domain
databases, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.