pekko-samples icon indicating copy to clipboard operation
pekko-samples copied to clipboard

use testcontainers to run cassandra

Open pjfanning opened this issue 2 months ago • 5 comments

instead of cassandra-launcher that uses a very old version of Cassandra and that it would be great to get rid of

pjfanning avatar Oct 24 '25 17:10 pjfanning

this looks great and CI is green, any reason this is still 'draft'?

raboof avatar Nov 07 '25 14:11 raboof

@raboof I'm having trouble running Cassandra via Docker on my old laptop. If you or someone else has time to run one or more of the samples on their own machines then that would be appreciated.

pjfanning avatar Nov 07 '25 15:11 pjfanning

Ah, and this is not covered by CI of course, pity.

raboof avatar Nov 07 '25 15:11 raboof

If you or someone else has time to run one or more of the samples on their own machines, then that would be appreciated.

I'm taking a look at this. pekko-sample-distributed-workers-scala and pekko-sample-persistence-dc-scala seem not to be working properly. My understanding is that CassandraLauncher does stuff on top of running Cassandra. Also, it is not running Cassandra as a separate container.

I'm taking a look at this. I'm wondering if it is cheaper to just upgrade Cassandra in the cassandra-launcher module

samueleresca avatar Nov 08 '25 23:11 samueleresca

@samueleresca I've attempted to upgrade cassandra in the launcher but with little luck

And since the old cassandra version doesn't work in Java 17, it is blocking progress for v2.

The launcher does not seem to much more than start cassandra for you. I think the ideal is to remove it but if we must keep it then we'll have to put up with it.

pjfanning avatar Nov 09 '25 00:11 pjfanning