forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backupccl: remove exceptional backups
The xDBRef and duplicate-db exceptional backups can no longer be restored since they were generated >1 major version in the past. This change does add a test inspired by the duplicate-db test to expand coverage. Release note: None
- Loading branch information
1 parent
9305349
commit 7066e9e
Showing
24 changed files
with
36 additions
and
112 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
36 changes: 36 additions & 0 deletions
36
pkg/ccl/backupccl/testdata/backup-restore/regression-tests
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
new-cluster name=s1 | ||
---- | ||
|
||
subtest double-db | ||
|
||
exec-sql | ||
CREATE DATABASE db1; | ||
DROP DATABASE db1; | ||
CREATE DATABASE db1; | ||
---- | ||
|
||
exec-sql | ||
BACKUP INTO 'nodelocal://1/doubleDB' WITH revision_history; | ||
---- | ||
|
||
new-cluster name=s2 share-io-dir=s1 | ||
---- | ||
|
||
exec-sql | ||
RESTORE FROM LATEST IN 'nodelocal://1/doubleDB' | ||
---- | ||
|
||
exec-sql | ||
DROP DATABASE db1; | ||
---- | ||
|
||
exec-sql | ||
RESTORE DATABASE db1 FROM LATEST IN 'nodelocal://1/doubleDB'; | ||
---- | ||
|
||
query-sql | ||
SELECT count(*) FROM [SHOW DATABASES] WHERE database_name = 'db1' | ||
---- | ||
1 | ||
|
||
subtest end |
1 change: 0 additions & 1 deletion
1
...a/restore_old_versions/exceptional/doubleDB/BACKUP-CHECKPOINT-682219251044745217-CHECKSUM
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...l/backupccl/testdata/restore_old_versions/exceptional/doubleDB/BACKUP-CHECKPOINT-CHECKSUM
This file was deleted.
Oops, something went wrong.
Empty file.
Binary file removed
BIN
-4.97 KB
pkg/ccl/backupccl/testdata/restore_old_versions/exceptional/doubleDB/BACKUP_MANIFEST
Binary file not shown.
1 change: 0 additions & 1 deletion
1
...ccl/backupccl/testdata/restore_old_versions/exceptional/doubleDB/BACKUP_MANIFEST-CHECKSUM
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-931 Bytes
.../backupccl/testdata/restore_old_versions/exceptional/doubleDB/data/682219256804900865.sst
Binary file not shown.
Binary file removed
BIN
-1.23 KB
.../backupccl/testdata/restore_old_versions/exceptional/doubleDB/data/682219256805654532.sst
Binary file not shown.
Binary file removed
BIN
-1014 Bytes
.../backupccl/testdata/restore_old_versions/exceptional/doubleDB/data/682219256806211585.sst
Binary file not shown.
Binary file removed
BIN
-6.6 KB
.../backupccl/testdata/restore_old_versions/exceptional/doubleDB/data/682219256807063553.sst
Binary file not shown.
Binary file removed
BIN
-992 Bytes
.../backupccl/testdata/restore_old_versions/exceptional/doubleDB/data/682219256808407042.sst
Binary file not shown.
Binary file removed
BIN
-1.12 KB
.../backupccl/testdata/restore_old_versions/exceptional/doubleDB/data/682219256808538114.sst
Binary file not shown.
Binary file removed
BIN
-1.05 KB
.../backupccl/testdata/restore_old_versions/exceptional/doubleDB/data/682219256954355713.sst
Binary file not shown.
Binary file removed
BIN
-1.37 KB
.../backupccl/testdata/restore_old_versions/exceptional/doubleDB/data/682219256954388481.sst
Binary file not shown.
Binary file removed
BIN
-3.28 KB
.../backupccl/testdata/restore_old_versions/exceptional/doubleDB/data/682219256957206529.sst
Binary file not shown.
Binary file removed
BIN
-1.01 KB
.../backupccl/testdata/restore_old_versions/exceptional/doubleDB/data/682219257023922177.sst
Binary file not shown.
Binary file removed
BIN
-1.74 KB
.../backupccl/testdata/restore_old_versions/exceptional/doubleDB/data/682219257064292353.sst
Binary file not shown.
Binary file removed
BIN
-1.3 KB
.../backupccl/testdata/restore_old_versions/exceptional/doubleDB/data/682219257066815489.sst
Binary file not shown.
Binary file removed
BIN
-7.43 KB
.../backupccl/testdata/restore_old_versions/exceptional/doubleDB/data/682219257160073219.sst
Binary file not shown.
1 change: 0 additions & 1 deletion
1
...ccl/backupccl/testdata/restore_old_versions/exceptional/xDbRef/BACKUP-CHECKPOINT-CHECKSUM
This file was deleted.
Oops, something went wrong.
Empty file removed
0
pkg/ccl/backupccl/testdata/restore_old_versions/exceptional/xDbRef/BACKUP-STATISTICS
Empty file.
Binary file removed
BIN
-728 Bytes
pkg/ccl/backupccl/testdata/restore_old_versions/exceptional/xDbRef/BACKUP_MANIFEST
Binary file not shown.
1 change: 0 additions & 1 deletion
1
pkg/ccl/backupccl/testdata/restore_old_versions/exceptional/xDbRef/BACKUP_MANIFEST-CHECKSUM
This file was deleted.
Oops, something went wrong.