Caleb Rackliffe created CASSANDRA-16361:
-------------------------------------------

             Summary: DROP COMPACT STORAGE should invalidate prepared 
statements still using CompactTableMetadata
                 Key: CASSANDRA-16361
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16361
             Project: Cassandra
          Issue Type: Bug
          Components: Legacy/CQL
            Reporter: Caleb Rackliffe


When we drop compact storage from a table, existing prepared statements 
continue to refer to an instance of {{CompactTableMetadata}}, rather than being 
invalidated so they can be assigned a new {{TableMetadata}} instance. There are 
perhaps some brute force ways to fix this, like bouncing the node, but that 
obviously sub-optimal.

One idea is to have {{TableMetadata#changeAffectsPreparedStatements()}} return 
true when we go from having to not having the DENSE flag. It should be pretty 
easy to validate a fix with a small addition to {{CompactTableTest}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to