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

cassandra-cli and cqlsh report two different values for a setting, partially update it and partially report it

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0.15
    • Legacy/Tools
    • 2.0.9

    • Low

    Description

      cassandra-cli updates and prints out a min_compaction_threshold that is not shown by cqlsh (it shows a different min_threshold attribute)

      cqlsh updates "both" values but only shows one of them

      cassandra-cli:
      UPDATE COLUMN FAMILY foo WITH min_compaction_threshold = 8;
      
      $ echo "describe foo;" | cassandra-cli -h `hostname` -k bar
            Compaction min/max thresholds: 8/32
      
      $ echo "describe table foo;" | cqlsh -k bar `hostname`
        compaction={'class': 'SizeTieredCompactionStrategy'} AND
      
      cqlsh:
      ALTER TABLE foo WITH compaction = {'class' : 'SizeTieredCompactionStrategy', 'min_threshold' : 16};
      
      cassandra-cli:
            Compaction min/max thresholds: 16/32
            Compaction Strategy Options:
              min_threshold: 16
      cqlsh:
        compaction={'min_threshold': '16', 'class': 'SizeTieredCompactionStrategy'} AND
      
      cassandra-cli:
      UPDATE COLUMN FAMILY foo WITH min_compaction_threshold = 8;
      
      cassandra-cli:
            Compaction min/max thresholds: 8/32
            Compaction Strategy Options:
              min_threshold: 16
      
      cqlsh:
        compaction={'min_threshold': '16', 'class': 'SizeTieredCompactionStrategy'} AND
      

      Attachments

        1. 8102-2.0.txt
          2 kB
          Tom Hobbs

        Issue Links

          Activity

            People

              stefania Stefania Alborghetti
              peter-librato Peter Haggerty
              Stefania Alborghetti
              Tom Hobbs
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: