Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-2512

Updating a column's validation class from AsciiType to UTF8Type does not actually work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 0.7.5
    • Component/s: None
    • Labels:
      None
    • Environment:

      Single Node on MacOSX, installed from 0.7.4 binary .tar ball.

    • Severity:
      Normal

      Description

      Please note this is reproducible on both Cassandra 0.74 and the April 18th trunk build.

      Reproduction Steps

      create column family users with comparator = UTF8Type
      and column_metadata = [{column_name: password, validation_class: UTF8Type},
      {column_name: gender, validation_class: AsciiType}];
      
      update column family users with comparator = UTF8Type
      and column_metadata = [{column_name: password, validation_class: UTF8Type}
      {column_name: gender, validation_class: UTF8Type}];
      

      Before & After quitting cassandra-cli: Notice the validation class for the gender client still shows AsciiType

      [default@demo] describe keyspace demo;
      Keyspace: demo:
        Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy
          Options: [datacenter1:1]
        Column Families:
          ColumnFamily: users
            Key Validation Class: org.apache.cassandra.db.marshal.BytesType
            Default column value validator: org.apache.cassandra.db.marshal.BytesType
            Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
            Row cache size / save period in seconds: 0.0/0
            Key cache size / save period in seconds: 200000.0/14400
            Memtable thresholds: 0.29062499999999997/62/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: []
            Column Metadata:
              Column Name: gender
                Validation Class: org.apache.cassandra.db.marshal.AsciiType
              Column Name: password
                Validation Class: org.apache.cassandra.db.marshal.UTF8Type
      
      

        Attachments

        1. 2512.txt
          6 kB
          Jonathan Ellis

          Activity

            People

            • Assignee:
              jbellis Jonathan Ellis
              Reporter:
              cdaw Cathy Daw
              Authors:
              Jonathan Ellis
              Reviewers:
              Sylvain Lebresne
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: