-
Notifications
You must be signed in to change notification settings - Fork 284
Snapshot support for databases and tables (#22635) #22641
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
Conversation
Snapshot support for databases and tables Approved by: @XuPeng-SH
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
matrixorigin#22641)" This reverts commit 7abfd01.
matrixorigin#22641)" This reverts commit 7abfd01.
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #22634
What this PR does / why we need it:
Snapshot support for databases and tables
PR Type
Enhancement, Bug fix
Description
Refactored snapshot handling to support database and table-level snapshots
map[uint32]containers.Vectorto*logtail.SnapshotInfostructureUnified PITR and Snapshot functionality through shared
SnapshotInfostructurePitrInfoan alias forSnapshotInfofor backward compatibilityEnhanced snapshot distribution logic to apply table snapshots across database
Removed manual snapshot cleanup and vector transformation code
TransformToTSList()andCloseSnapshotList()functionsDiagram Walkthrough
File Walkthrough
7 files
Updated snapshot parameter types throughout GC logicChanged snapshot field from map to SnapshotInfo pointerUpdated mock GetSnapshots return type signatureUpdated Cleaner interface GetSnapshots method signatureRemoved TransformToTSList transformation functionUpdated ExecuteGlobalCheckpointBasedGC snapshot parameterUpdated FillUsageBatOfCompacted to use SnapshotInfo parameter3 files
Updated mock AccountToTableSnapshots return typeUpdated TestSnapshotMeta to use new SnapshotInfo APIAdded comprehensive tests for SnapshotInfo functionality1 files
Refactored SnapshotInfo structure with multi-level support