Cassandra 5.0 service starts without errors in the logs, but the application container cannot establish a connection to port 9042, resulting in Connection Refused. This occurs even when using size: 2x and sufficient memory.
Observations:
Logs: Service logs show successful startup with no JVM errors or disk warnings.
Networking: The main build container is unable to reach 127.0.0.1:9042.
Behavior: The service remains unreachable even after extended sleep periods, suggesting a binding or initialization delay specific to the Cassandra 5.0 native transport in a containerized CI environment.
This is a pipeline example:
services:
cassandra:
image: cassandra
environment:
CASSANDRA_START_RPC: "true"
CASSANDRA_CLUSTER_NAME: "TestCluster"
CASSANDRA_NUM_TOKENS: "1"
CASSANDRA_ENDPOINT_SNITCH: "SimpleSnitch"
MAX_HEAP_SIZE: 900M
HEAP_NEWSIZE: 512M
docker:
memory: 3072