mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-30 18:41:49 -07:00
chore: upgrade dev/CI Cassandra from 3.11 to 5.0 (#9482)
Cassandra 3.11 reached EOL in July 2023. Upgrade both development and CI compose files to Cassandra 5.0 for current driver compatibility and feature parity with ScyllaDB. Changes: - develop/docker-compose: cassandra:3.11 -> cassandra:5.0 - develop/github CI compose: cassandra:3.11 -> cassandra:5.0, increase healthcheck retries from 30 to 60 (5.0 is slower to start) - macOS docs: update to 5.0, remove stale ARM JNA workaround that is no longer needed ## What changed? Big change, but: 1. Cassandra 3.11 is End-of-Life. 2. Allowed me separately to change the Golang CQL driver to ScyllaDB's, which doesn't support that EOL Cassandra anymore (my fault too, I removed that support I think). ## Why? If I wanted (and I do) to switch to ScyllaDB's GoCQL driver, I needed to perform this change. ## How did you test it? - [x] built - [x] run locally and tested manually - [x] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s) ## Potential risks I also did not see any performance regression!
This commit is contained in:
@@ -15,7 +15,7 @@ services:
|
||||
networks:
|
||||
- temporal-dev-network
|
||||
cassandra:
|
||||
image: cassandra:3.11
|
||||
image: cassandra:5.0
|
||||
container_name: temporal-dev-cassandra
|
||||
ports:
|
||||
- "9042:9042"
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
x-healthcheck-defaults: &healthcheck-defaults
|
||||
interval: 3s
|
||||
timeout: 3s
|
||||
retries: 30
|
||||
retries: 60
|
||||
|
||||
services:
|
||||
cassandra:
|
||||
image: cassandra:3.11
|
||||
image: cassandra:5.0
|
||||
ports:
|
||||
- "9042:9042"
|
||||
environment:
|
||||
|
||||
@@ -1,22 +1,17 @@
|
||||
# Run Cassandra v3.11 on macOS
|
||||
# Run Cassandra v5.0 on macOS
|
||||
|
||||
### Install
|
||||
```bash
|
||||
brew install cassandra@3.11
|
||||
brew install cassandra
|
||||
```
|
||||
|
||||
For MacBook with ARM chip, you need to replace the JNA library with a recent version.
|
||||
1. Locate the JNA file (`find $(brew --prefix) -name "jna-*.jar"`) and remove it.
|
||||
2. Download a recent version of JNA jar file (5.8+) from [Maven](https://search.maven.org/artifact/net.java.dev.jna/jna).
|
||||
3. Move the file you downloaded to the folder in step 1.
|
||||
|
||||
### Start
|
||||
```bash
|
||||
cassandra -f
|
||||
```
|
||||
|
||||
### Post Installation
|
||||
Verify Cassandra v3.11 is running and accessible:
|
||||
Verify Cassandra v5.0 is running and accessible:
|
||||
```bash
|
||||
cqlsh
|
||||
```
|
||||
Reference in New Issue
Block a user