This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/pekko-persistence-cassandra.git
The following commit(s) were added to refs/heads/main by this push:
new f0f8c56 Test against scylladb/latest (#393)
f0f8c56 is described below
commit f0f8c56343af04284ef6fe21d8677c65171f65dc
Author: Philippus Baalman <[email protected]>
AuthorDate: Mon Apr 13 21:16:34 2026 +0200
Test against scylladb/latest (#393)
* Test against scylladb/latest
* Set bucket_low to 0.75 (between 0.0 and 1.0)
---
.github/workflows/unit-tests.yml | 1 +
.../compaction/CassandraCompactionStrategySpec.scala | 6 +++---
docker-compose.yml | 18 ++++++++++++++++++
3 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 64f2fe8..b7b08b3 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -34,6 +34,7 @@ jobs:
- { javaVersion: '11', container: "cassandra-latest", scalaVersion:
"++3.3", test: "test" }
- { javaVersion: '11', container: "cassandra2", scalaVersion:
"++2.13", test: "'testOnly -- -l RequiresCassandraThree'"}
- { javaVersion: '11', container: "cassandra3", scalaVersion:
"++2.13", test: "test" }
+ - { javaVersion: '11', container: "scylladb-latest", scalaVersion:
"++2.13", test: "test" }
env:
JAVA_OPTS: -Xms2G -Xmx2G -Xss2M -XX:ReservedCodeCacheSize=256M
-Dfile.encoding=UTF-8
diff --git
a/core/src/test/scala/org/apache/pekko/persistence/cassandra/compaction/CassandraCompactionStrategySpec.scala
b/core/src/test/scala/org/apache/pekko/persistence/cassandra/compaction/CassandraCompactionStrategySpec.scala
index 3b12b5d..bf8e48c 100644
---
a/core/src/test/scala/org/apache/pekko/persistence/cassandra/compaction/CassandraCompactionStrategySpec.scala
+++
b/core/src/test/scala/org/apache/pekko/persistence/cassandra/compaction/CassandraCompactionStrategySpec.scala
@@ -137,7 +137,7 @@ class CassandraCompactionStrategySpec
| tombstone_threshold = 0.1
| unchecked_tombstone_compaction = false
| bucket_high = 5.0
- | bucket_low = 2.5
+ | bucket_low = 0.75
| max_threshold = 20
| min_threshold = 10
| min_sstable_size = 100
@@ -152,7 +152,7 @@ class CassandraCompactionStrategySpec
compactionStrategy.tombstoneThreshold shouldEqual 0.1
compactionStrategy.uncheckedTombstoneCompaction shouldEqual false
compactionStrategy.bucketHigh shouldEqual 5.0
- compactionStrategy.bucketLow shouldEqual 2.5
+ compactionStrategy.bucketLow shouldEqual 0.75
compactionStrategy.maxThreshold shouldEqual 20
compactionStrategy.minThreshold shouldEqual 10
compactionStrategy.minSSTableSize shouldEqual 100
@@ -166,7 +166,7 @@ class CassandraCompactionStrategySpec
| tombstone_threshold = 0.1
| unchecked_tombstone_compaction = false
| bucket_high = 5.0
- | bucket_low = 2.5
+ | bucket_low = 0.75
| max_threshold = 20
| min_threshold = 10
| min_sstable_size = 100
diff --git a/docker-compose.yml b/docker-compose.yml
index 9b5fc4d..ed31070 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -34,6 +34,19 @@ services:
timeout: 5s
retries: 60
+ scylladb-service:
+ image: scylladb/scylla:latest
+ ports:
+ - "9042:9042"
+ volumes:
+ # This configuration is customized to enable materialized views.
+ - ${PWD}/docker-files/cassandra.yaml:/etc/cassandra/cassandra.yaml
+ healthcheck:
+ test: ["CMD", "cqlsh", "-e", "describe keyspaces"]
+ interval: 5s
+ timeout: 5s
+ retries: 60
+
# These exists to force the condition of having the Cassandra service is up
before starting the tests.
# The healthcheck above is not enough because it does not provide a
condition to wait for the service
# to be up. And this is simpler than installing cqlsh and using it to check
the service status on the
@@ -53,6 +66,11 @@ services:
depends_on:
cassandra2-service:
condition: service_healthy
+ scylladb-latest:
+ image: alpine:latest
+ depends_on:
+ scylladb-service:
+ condition: service_healthy
dse:
image: datastax/dse-server
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]