As part of this issue, we should enhance backup/restore test coverage on the DRT/DRP clusters through adding an operation that does a backup, followed by a restore, followed by a verification of results between the backup and the restore.
One possible way to implement this operation is to do a backup of a table or db with an AS OF SYSTEM TIME, restore that backup into a db/table with a new name, and then SELECT both tables AS OF SYSTEM TIME and verify that the sums of some column(s) match. As part of the cleanup, we could DROP the restored db/table. Alternatively we could have the operation specifically look for a tpcc db/table, and run TPCC consistency checks on the restored db.
As part of this issue, we should enhance backup/restore test coverage on the DRT/DRP clusters through adding an operation that does a backup, followed by a restore, followed by a verification of results between the backup and the restore.
One possible way to implement this operation is to do a backup of a table or db with an
AS OF SYSTEM TIME
, restore that backup into a db/table with a new name, and thenSELECT
both tables AS OF SYSTEM TIME and verify that the sums of some column(s) match. As part of the cleanup, we could DROP the restored db/table. Alternatively we could have the operation specifically look for atpcc
db/table, and run TPCC consistency checks on the restored db.Jira issue: CRDB-39943