Closed ostefano closed 7 years ago
Hi @ostefano,
we need all migrations to be performed before running Reaper, otherwise it cannot work properly.
What you can do is perform the migrations yourself and update the schema_migration
table by hand : https://github.com/thelastpickle/cassandra-reaper/tree/master/src/main/resources/db/cassandra
You need to match the version numbers and have applied_successful
set to True.
Hi @adejanovski ,
yes, makes sense. I was wondering if we could increase the timeout so for that query to succeed on busy clusters.
You can raise the timeout on the client side by changing the read timeout in the SocketOptions :
cassandra:
clusterName: "test"
contactPoints: ["127.0.0.1"]
keyspace: reaper_db
queryOptions:
consistencyLevel: LOCAL_QUORUM
serialConsistencyLevel: SERIAL
socketOptions:
readTimeoutMillis: 20000
You'll then be limited by the server side timeouts that are related to the write_request_timeout_in_ms
of the cassandra.yaml file. A schema migration is a set of mutations, so they go into timeout if any of those mutations goes into timeout.
The stacktrace you pasted shows a client side timeout though, so you should not need to change the nodes configuration.
Thanks, I missed that option. Nice! Closing the issue accordingly.
DDL statements (when using Cassandra as storage) can be quite expensive, so they might take more time than usual. Current 'master' fails migration if any of the migration scripts timeouts.