Creating or updating CF key_validation_class with the CLI doesn't works -----------------------------------------------------------------------
Key: CASSANDRA-2831 URL: https://issues.apache.org/jira/browse/CASSANDRA-2831 Project: Cassandra Issue Type: Bug Components: Core Affects Versions: 0.8.2 Environment: Ubuntu 10.10, 32 bits java version "1.6.0_24" Brisk beta-2 installed from Debian packages Reporter: Silvère Lestang In the command line: {code} create column family test with key_validation_class = 'AsciiType' and comparator = 'LongType' and default_validation_class = 'IntegerType'; describe keyspace; Keyspace: Test: Replication Strategy: org.apache.cassandra.locator.SimpleStrategy Durable Writes: true Options: [replication_factor:1] Column Families: ColumnFamily: test Key Validation Class: org.apache.cassandra.db.marshal.AsciiType Default column value validator: org.apache.cassandra.db.marshal.BytesType Columns sorted by: org.apache.cassandra.db.marshal.LongType Row cache size / save period in seconds: 0.0/0 Key cache size / save period in seconds: 200000.0/14400 Memtable thresholds: 0.571875/122/1440 (millions of ops/MB/minutes) GC grace seconds: 864000 Compaction min/max thresholds: 4/32 Read repair chance: 1.0 Replicate on write: false Built indexes: [] {code} The "Default column value validator" is BytesType instead of IntegerType. Also tested with other types or with the "update column family" command, same problem occur. {code} [default@Test] update column family test with default_validation_class = 'LongType'; 51a37430-a0bb-11e0-0000-ef8993101fdf Waiting for schema agreement... ... schemas agree across the cluster [default@Test] describe keyspace; Keyspace: Test: Replication Strategy: org.apache.cassandra.locator.SimpleStrategy Durable Writes: true Options: [replication_factor:1] Column Families: ColumnFamily: test Key Validation Class: org.apache.cassandra.db.marshal.AsciiType Default column value validator: org.apache.cassandra.db.marshal.BytesType Columns sorted by: org.apache.cassandra.db.marshal.LongType Row cache size / save period in seconds: 0.0/0 Key cache size / save period in seconds: 200000.0/14400 Memtable thresholds: 0.571875/122/1440 (millions of ops/MB/minutes) GC grace seconds: 864000 Compaction min/max thresholds: 4/32 Read repair chance: 1.0 Replicate on write: false Built indexes: [] {code} Btw, they are a typo in file src/resources/org/apache/cassandra/cli/CliHelp.yaml line 642: key_valiation_class > key_validation_class Very annoying for people like me who stupidly copy/paste the help. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira