cli read_repair_chance input not validated
------------------------------------------
Key: CASSANDRA-2146
URL: https://issues.apache.org/jira/browse/CASSANDRA-2146
Project: Cassandra
Issue Type: Bug
Components: Core
Affects Versions: 0.7.1
Reporter: Chris Burroughs
Priority: Minor
{noformat}
put(ColumnFamilyArgument.READ_REPAIR_CHANCE, "Probability (0.0-1.0) with which
to perform read repairs on CL.ONE reads");
{noformat}
The input range is not enforced so
{noformat}
create column family ... with ... read_repair_chance = 25;
{noformat}
Will result in
{noformat}
Keyspace: ks1:
Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
Replication Factor: 3
Column Families:
ColumnFamily: cf1
Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
...
Read repair chance: 25.0
{noformat}
I am unsure if in practice this means RR chance 100%, or something surprising.
(I ran into this because read_repair_chance requires a leading 0 and ommiting
it results in an unhelpful "Command not found:" message).
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira