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

cassandra_cli: CREATE CF HELP should list option as key_cache_save_period instead of keys_cached_save_period

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.8.0 beta 2
    • Legacy/Tools
    • None
    • Low

    Description

      cassandra-cli: output from create cf command

      [default@cqldb]  create column family supa_dupa2 with keys_cached_save_period = 124000;
      
      No enum const class org.apache.cassandra.cli.CliClient$ColumnFamilyArgument.KEYS_CACHED_SAVE_PERIOD
      

      cassandra-cli: help create column family

      - keys_cached_save_period: Duration in seconds after which Cassandra should
        safe the keys cache. Caches are saved to saved_caches_directory as
        specified in conf/Cassandra.yaml. Default is 14400 or 4 hours.
      
        Saved caches greatly improve cold-start speeds, and is relatively cheap in
        terms of I/O for the key cache. Row cache saving is much more expensive and
        has limited use.
      

      cqlsh: documentation for create column family options

      key_cache_save_period_in_seconds	14400	Number of seconds between saving key caches.
      

      cqlsh: this actually works

      cqlsh>  CREATE COLUMNFAMILY cf1 (KEY varchar PRIMARY KEY) WITH key_cache_save_period_in_seconds=10000;
      

      cassandra-cli: CF definition via show keyspace

          ColumnFamily: cf1
            Key Validation Class: org.apache.cassandra.db.marshal.UTF8Type
            Default column value validator: org.apache.cassandra.db.marshal.UTF8Type
            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/10000
            Memtable thresholds: 0.140625/30/1440 (millions of ops/MB/minutes)
            GC grace seconds: 864000
            Compaction min/max thresholds: 4/32
            Read repair chance: 1.0
            Replicate on write: true
            Built indexes: []
      

      Attachments

        1. CASSANDRA-2572.patch
          1 kB
          Pavel Yaskevich
        2. CASSANDRA-0.7-2572.patch
          2 kB
          David Weiser

        Activity

          People

            xedin Pavel Yaskevich
            cdaw Cathy Daw
            Pavel Yaskevich
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: