Skip to content

CASSANDRA-16733(3.0): Add flag to disable ALTER...DROP COMPACT STORAGE statements#1061

Closed
blerer wants to merge 4 commits intoapache:cassandra-3.0from
blerer:CASSANDRA-16733-3.0
Closed

CASSANDRA-16733(3.0): Add flag to disable ALTER...DROP COMPACT STORAGE statements#1061
blerer wants to merge 4 commits intoapache:cassandra-3.0from
blerer:CASSANDRA-16733-3.0

Conversation

@blerer
Copy link
Contributor

@blerer blerer commented Jun 11, 2021

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this one need to be volatile?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a set method in {{DatabaseDescriptor}} used by the test. So potentially, the variable can be read and written by 2 different threads. I prefered to be careful.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When we added the experimental flags for MVs and SASI indexes in CASSANDRA-14866 we also added a client warning for each of them, here and here. Shouldn't we warn users about DROP COMPACT STORAGE being experimatal too, especially given that it's allowed by default in the config?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course the warning is not going to be that useful since in this case the damage is already done when the query is run. So probably it's better to just disable it by default.

Copy link
Contributor Author

@blerer blerer Jun 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was my reasoning. Once you have run the command and saw the warning it is effectively too late :-(

@blerer blerer force-pushed the CASSANDRA-16733-3.0 branch 4 times, most recently from f23f808 to 651b464 Compare June 17, 2021 07:51
@blerer blerer force-pushed the CASSANDRA-16733-3.0 branch from 651b464 to 736ce72 Compare June 18, 2021 07:55
Comment on lines +134 to +138
public TestCase runBeforeNodeRestart(RunOnClusterAndNode runBeforeNodeRestart)
{
this.runBeforeNodeRestart = runBeforeNodeRestart;
return this;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@blerer blerer closed this Oct 20, 2021
@blerer blerer deleted the CASSANDRA-16733-3.0 branch October 20, 2021 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants