forked from apache/zookeeper
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add timetable support for ZooKeeper backup and restore (#32)
This commit adds the support for timetable (data model and backup thereof). The backup timetable is to be used to look up the closest zxid given the timestamp to enable point-in-time restoration. More specifically, this commit includes: 1. definition of timetable metadata, timetable backup process, timetable recorder child thread 2. moves BackupProcess thread out so that it is no longer an inner class 3. TimetableUtil class that provides static methods for timetable-zxid lookup 4. unit and integration tests: BackupManagerTest::testTimetableBackup() and TimetableUtilTest 5. fix an unstable test: BackupManagerTest::testBackupManager() There will be follow-up PRs for 1) timetable backup status check and 2) timetable backup metrics.
- Loading branch information
Showing
18 changed files
with
975 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.