-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backupccl: re-backup spans that come online during incremental backups
This commit fixes a bug where backup would miss non-transactional writes (via AddSSTable) during incremental backups. These backups were missed because AddSSTable can write to a timestamp that is before the previous incremental backup. So, if a table was written to while OFFLINE (e.g. by a RESTORE or an IMPORT), during a backup, the following incremental backup may miss some data. To resolve this, BACKUP now re-backs up all of the data of OFFLINE tables on incremental backups that put this table back online. This comes with the drawback of some incremental backups (when a restore or import completes) will be much slower since it has to recapture all of the data. There is planned future work so that these incrementals only the new data written by the RESTORE or IMPORT, rather than resorting to backing up the entire table again. This will be addressed in a later PR. Release note (bug fix): Incremental cluster backups may have missed data written to tables while they were OFFLINE. In practice this can happen if a RESTORE or IMPORT was running across incremental backups.
- Loading branch information
Showing
4 changed files
with
188 additions
and
21 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
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
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
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