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

Paul Ayers updated CASSANDRA-18760:
-----------------------------------
    Description: 
Recently hit an uncoverable situation 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.


  was:
Recently hit an uncoverable situation after dropping a 'map' column and adding 
it back as a 'blob', which caused corruption that neither offline nor online 
scrub could fix.
When moving 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.



> 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
>            Reporter: Paul Ayers
>            Priority: Normal
>
> Recently hit an uncoverable situation 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