You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could improve the error message when restoring before the GC TTL of the backup.
Reproduction Steps
CREATE DATABASE my_db;
CREATE TABLE my_db.my_table (a int);
BACKUP DATABASE my_db TO 'nodelocal://1/my_backup' WITH revision_history;
DROP DATABASE my_db CASCADE;
RESTORE DATABASE my_db FROM 'nodelocal://1/my_backup' AS OF SYSTEM TIME '-100h';
Note: GC TTL of the backup was 25h, so any RESTORE attempting to RESTORE before then should be invalid.
The error returned is: ERROR: unknown database "my_db", but it would be better if we returned something along the lines of ERROR: invalid RESTORE timestamp: supplied backups do not cover requested time.
The text was updated successfully, but these errors were encountered:
Previously, if a target database was not found for a RESTORE, whether it's due to AOST being before GC TTL or attempting to restore a database that has never existed, the same error message gets printed.
Since the errors do not occur for the same reason, having different error messages would be more informative for users to understand the cause of error.
Resolves: cockroachdb#47105
Release note (bug fix): more accurate error message for restoring AOST before GC TTL
66025: backupccl: error message for restoring databases with AOST before GC TTL r=adityamaru a=annezhu98
Previously, if a target database was not found for a RESTORE, whether it's due to AOST being before GC TTL or attempting to restore a database that has never existed, the same error message gets printed.
Since the errors do not occur for the same reason, having different error messages would be more informative for users to understand the cause of error.
Resolves: #47105
Release note (bug fix): more accurate error message for restoring AOST before GC TTL
Co-authored-by: Anne Zhu <[email protected]>
We could improve the error message when restoring before the GC TTL of the backup.
Reproduction Steps
Note: GC TTL of the backup was 25h, so any RESTORE attempting to RESTORE before then should be invalid.
The error returned is:
ERROR: unknown database "my_db"
, but it would be better if we returned something along the lines ofERROR: invalid RESTORE timestamp: supplied backups do not cover requested time
.The text was updated successfully, but these errors were encountered: