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

Fix update of CF comparator (including adding new collections)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.2.0 beta 1
    • None
    • None
    • Normal

    Description

      Updating the comparator of a column family (which is authorized if the new comparator is "compatible" with the old one, and that includes adding a new component to a CompositeType, or adding a new collection to a CQL3 table) doesn't completely work. The problem is that even if we change the comparator in CFMetada, the old comparator will still be aliased by the current memtable. This means updates (that expect the new comparator) will fail until a new memtable is created.

      Attachments

        1. 0002-Fix-ALTER-logic.txt
          3 kB
          Sylvain Lebresne
        2. 0001-Flush-after-CFStore-reload.txt
          1 kB
          Sylvain Lebresne

        Activity

          People

            slebresne Sylvain Lebresne
            slebresne Sylvain Lebresne
            Sylvain Lebresne
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: