akkapaint icon indicating copy to clipboard operation
akkapaint copied to clipboard

Persistence fails with Cassandra 4

Open vizog opened this issue 3 years ago • 0 comments

Running the project with the latest Cassandra image leads to errors and the persistence plugin fails. This is the error:

[ERROR] [08/11/2021 14:35:52.324] [AkkaPaintSystem-akka.actor.default-dispatcher-42] [akka.tcp://[email protected]:2551/system/sharding/AkkaPaintShard/1/0] Persistence failure when replaying events for persistenceId [akkaPaintActor/system/sharding/AkkaPaintShard/1/0]. Last known sequence number [0]
java.util.concurrent.ExecutionException: com.datastax.driver.core.exceptions.InvalidQueryException: Materialized views are disabled. Enable in cassandra.yaml to use.

It works fine with Cassandra 3.11.10:

docker run --name akka-paint-cassandra -p 9042:9042 -d cassandra:3.11.10

I can help with a quick PR to change the readme if that's the preferred fix.

vizog avatar Aug 11 '21 18:08 vizog