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

Backport dropped column checks to 3.0 and 3.11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 3.0.19, 3.11.5
    • Cluster/Schema
    • None

    Description

      This is a follow on from CASSANDRA-14913 and CASSANDRA-14843 that introduced some fixes to prevent and mitigate data corruption caused by dropping a column then re-adding it with the same name but an incompatible type (e.g. simple int to a complex map<>) or different kind (regular/static). 

      This patch backports the checks that now exist in trunk. This does include adding a column to the dropped_columns table to keep track of static columns like trunk, not sure it we are able to make that change in 3.11.x.

      Also not sure what our stance on backporting just the isValueCompatibleWith check to 3.0 is. I'd be for it since it prevents recreating a simple column as a map (or vice-versa) which will basically always lead to corruption.

      C* 3.11.x
      Patch

      Attachments

        Issue Links

          Activity

            People

              VincentWhite Vincent White
              VincentWhite Vincent White
              Aleksey Yeschenko, Vincent White
              Aleksey Yeschenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: