Skip to content

Commit

Permalink
Add crc32 files to the backup globs for Cassandra
Browse files Browse the repository at this point in the history
These files are used during pre-compaction (and other) sstable
validation. Their absence might cause performance issues during
the first post-restore compactions.
  • Loading branch information
dmitry-potepalov committed Oct 17, 2023
1 parent 017eb53 commit fef6c5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions astacus/coordinator/plugins/cassandra/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def get_backup_steps(self, *, context: OperationContext) -> List[Step]:
snapshot_groups = [
SnapshotGroup(root_glob=f"data/*/*/snapshots/{SNAPSHOT_NAME}/*.db"),
SnapshotGroup(root_glob=f"data/*/*/snapshots/{SNAPSHOT_NAME}/*.txt"),
SnapshotGroup(root_glob=f"data/*/*/snapshots/{SNAPSHOT_NAME}/*.crc32"),
]

return [
Expand All @@ -111,6 +112,7 @@ def get_delta_backup_steps(self, *, context: OperationContext) -> List[Step]:
delta_snapshot_groups = [
SnapshotGroup(root_glob="data/*/*/backups/*.db"),
SnapshotGroup(root_glob="data/*/*/backups/*.txt"),
SnapshotGroup(root_glob="data/*/*/backups/*.crc32"),
]

@dataclasses.dataclass
Expand Down

0 comments on commit fef6c5a

Please sign in to comment.