Online mass delete (truncate) cassandra keyspace

I read that after turning off the node you can delete the files and restart them. It works fine, but I tried it only by draining all the nodes, disconnecting the entire cluster, deleting files, and restarting.

What happens if I restart only one node at a time? As I understand it, there is a risk that a restarted node will accept read requests and repair reads using data from another replica.

Does anyone know the most fault-tolerant procedure to truncate the key space, leaving the entire cluster and running to serve other clusters?

+5
source share
1 answer
$ bin/cassandra-cli -h localhost
[default@unknown] use keyspace1;
Authenticated to keyspace: Keyspace1
[default@Keyspace1] truncate standard1;     
standard1 truncated.

, ( ); , CF, . - , ( " standard1 read_repair_chance = 0" ).

+8

All Articles