Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: CQLSh safe mode. Example: are you sure prompt before dropping a table/keyspace #79

Open
tzach opened this issue Apr 30, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@tzach
Copy link

tzach commented Apr 30, 2024

This is from a disclose user

I accidentally dropped the wrong keyspace... We don't have backups running . Is there any way that I can stop the keyspace from dropping and losing all the data?

It would be nice if cqlsh can validate before doing an irreversible dangerous action, like dropping a keyspace.

For example:

Are you sure you want to DROP KEYSPACE xxx? [N/y]

This can be part of a "safe-mode" or Garudrail CQLSh mode (not sure it is needed)
https://issues.apache.org/jira/browse/CASSANDRA-12349

One can claim this should be a core feature, but since IMHO, it does not make sense to add such limits on API calls.

@tzach tzach added enhancement New feature or request good first issue Good for newcomers labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant