[ 
https://issues.apache.org/jira/browse/CASSANDRA-18760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Miklosovic updated CASSANDRA-18760:
------------------------------------------
          Fix Version/s: 3.0.30
                         3.11.16
                         4.0.12
                             (was: 3.0.x)
                             (was: 3.11.x)
                             (was: 5.x)
                             (was: 4.0.x)
                             (was: 4.1.x)
                             (was: 5.0.x)
          Since Version: NA
    Source Control Link: 
https://github.com/apache/cassandra/commit/f0280fb6f863582125bfd16b8a90c345972c4a8c
             Resolution: Fixed
                 Status: Resolved  (was: Ready to Commit)

backport to 3.0, 3.11 and 4.0

https://github.com/apache/cassandra/commit/f0280fb6f863582125bfd16b8a90c345972c4a8c

tests 
https://github.com/apache/cassandra/commit/65a3d36eb9def5eb34bdb1fde1c452d365d45be8

note: do not remember to bump fix version of 3.11.16 to just released 3.11.17

> Need to block the ability to DROP table column of 'map' type and add back as 
> 'blob' type
> ----------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-18760
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18760
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Cluster/Schema
>            Reporter: Paul Ayers
>            Assignee: Stefan Miklosovic
>            Priority: Urgent
>              Labels: 4.0.10
>             Fix For: 3.0.30, 3.11.16, 4.0.12
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Recently hit an un-recoverable situation in Cassandra 4.0.10 after dropping a 
> 'map' column and adding it back as a 'blob', which caused corruption that 
> neither offline nor online scrub could fix.
> When dropping a 'blob' column and attempting to add it back as a 'map' type, 
> the operation is blocked with:
> {code:java}
> InvalidRequest: Error from server: code=2200 [Invalid query] message="Cannot 
> re-add previously dropped column 'col1' of type map<int, tinyint>, 
> incompatible with previous type blob"
> {code}
> We need to do the same going from 'map' to 'blob' to avoid this potentially 
> very bad scenario that can cause data loss.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to