Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Code Clarity
-
Normal
-
All
-
None
-
Description
Metadata snapshots are stored locally in the system.metadata_snapshots table, which is keyed by epoch. Snapshots are retrieved from this table for three purposes:
- to replay locally during startup
- to provide log state for a peer requesting catchup
- to create point-in-time ClusterMetadata, for disaster recovery
In the majority of cases, we always want to replay from the most recent snapshot so we can usually select the appropriate snapshot by simply scanning the snapshots table in reverse, which allows us to considerably simplify the process of looking up the desired snapshot. We will continue to persist historical snapshots, at least for now, so that we are able to select arbitrary snapshots should we want to reconstruct metadata state for arbitrary epochs.
Attachments
Attachments
Issue Links
- is duplicated by
-
CASSANDRA-19138 Flush sealed period/snapshot tables on every write
- Resolved
- links to