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

service levels on raft: safe backup and restore #18751

Open
piodul opened this issue May 20, 2024 · 0 comments
Open

service levels on raft: safe backup and restore #18751

piodul opened this issue May 20, 2024 · 0 comments

Comments

@piodul
Copy link
Contributor

piodul commented May 20, 2024

Service levels are going to be managed via raft in 6.0.

As we know from the case of schema-on-raft (#16349), restoring data via the usual restore procedure (link) to a raft-managed table is prone to issues if different sstables are uploaded to different nodes. It can happen for example if one backs up the same table on two nodes at a different point in time and the contents of the table changes. For raft tables, there is no manual or automatic (like in the case of schema) mechanism of repair, so they might be inconsistent until a manual intervention happens.

In case of schema, we decided to go with the approach of using a CQL command DESCRIBE SCHEMA WITH INTERNALS which returns a list of CQL statements that can be used to reconstruct the schema. We can consider doing the same for service levels: introduce a DESCRIBE SERVICE LEVELS command which generates a sequence of the right CREATE SERVICE_LEVEL and ATTACH SERVICE_LEVEL commands.

Considerations:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants