cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Burroughs (JIRA)" <>
Subject [jira] Created: (CASSANDRA-2146) cli read_repair_chance input not validated
Date Wed, 09 Feb 2011 18:29:57 GMT
cli read_repair_chance input not validated

                 Key: CASSANDRA-2146
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 0.7.1
            Reporter: Chris Burroughs
            Priority: Minor

put(ColumnFamilyArgument.READ_REPAIR_CHANCE, "Probability (0.0-1.0) with which to perform
read repairs on CL.ONE reads");

The input range is not enforced so 
create column family ... with ... read_repair_chance = 25;

Will result in
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

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:


View raw message