Skip to content

Conversation

@Michal-Leszczynski
Copy link
Collaborator

This PR validates that LWT state tables (system.paxos or ks.tab&paxos) are not backed up nor restored.
In terms of the backup, their sstables are not backed up and those tables are not a part of the manifest. We also don't store their alternator friendly schema. On the other hand, they are still a part of the DESC SCHEMA WITH INTERNALS output, which is saved with backup files.
In terms of restore, their schema is not restored for alternator nor cql. Their sstables are also not restored, even if for some reason they ended up with the backup files.

The rationale for this change can be found in #4732, but most importantly:

  • we lack procedure for restoring them
  • they just contain paxos state needed for ongoing LWT queries
  • we lack synchronous snapshot of LWT state table and base table
  • it's not a regression, as previously LWT state was kept in system.paxos table, which either way wasn't backed up nor restored
  • those tables will be recreated automatically if user continues to use LWT queries on them

Fixes #4732

@Michal-Leszczynski Michal-Leszczynski force-pushed the ml/4732-dont-backup-restore-lwt branch 2 times, most recently from 9e06015 to 9907a47 Compare January 20, 2026 11:35
This commit adds helper functions for executing LWT
queries on both cql and alternator tables. Moreover,
it allows for more granular control over creating
alternator table with vnodes or tablets.

Refs #4732
It doesn't make sense to back up LWT state tables because:
- we lack procedure for restoring them
- they just contain paxos state needed for ongoing LWT queries
- we lack synchronous snapshot of LWT state table and base table

This commit ensures that such tables are
filtered out during backup procedure.

Refs #4732
It doesn't make sense to restore LWT state tables because:
- we lack procedure for restoring them
- they just contain paxos state needed for ongoing LWT queries
- we lack synchronous snapshot of LWT state table and base table

This commit ensures that such tables are
filtered out during restore procedure.

Fixes #4732
@Michal-Leszczynski Michal-Leszczynski force-pushed the ml/4732-dont-backup-restore-lwt branch from 9907a47 to 3b8e984 Compare January 20, 2026 20:50
@Michal-Leszczynski Michal-Leszczynski marked this pull request as ready for review January 20, 2026 21: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.

Don't back up and restore LWT tables

2 participants