cassandra-count icon indicating copy to clipboard operation
cassandra-count copied to clipboard

Enhancement: detect incorrect keyspace replication setting and warn about it

Open weideng1 opened this issue 8 years ago • 1 comments

I was helping a user to try out cassandra-count and they ran into some interesting timeout errors like the following:

$ ./cassandra-count -host 127.0.0.1 -keyspace testks -table testcf -numFutures 10 -consistencyLevel ALL
An OperationTimedOutException occurred. Try increasing -numSplits or reducing -splitSize

Turned out their RF setting in testks keyspace is wrong, as this is a single node cluster, and they use SimpleStrategy with RF=3. Since this is an error condition that's often encountered by green user, can we add some logic to check RF setting for the target keyspace and complain about it when it detects an impossible condition (such as trying to get 3 replicas on a single-node cluster)?

weideng1 avatar Nov 26 '16 23:11 weideng1

Its not an "impossible condition" because user might add new nodes the the cluster and it won't be a single-node cluster anymore

apoorvbirthare avatar Jul 05 '17 22:07 apoorvbirthare