-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAT-16801][PLAT-16549]: Restrict restore of PG-15 backups on PG-11 …
…universes and make catalog upgrade time configurable Summary: - Implemented changes to prevent the restoration of a backup from a PostgreSQL-15 universe to a PostgreSQL-11 universe. To achieve this, YBA now stores the YSQL major version of the source universe in the backup success file during backup creation and validates it against the YSQL major version of the target universe during restoration. - Additionally, introduced configurability for the catalog upgrade timeout via a public runtime configuration. The default settings have been set to 30 minutes (or 30 attempts) with a 1-minute interval between each attempt. Test Plan: - Added unit tests - Manually verified that backups created from PostgreSQL-15 universes cannot be restored on PostgreSQL-11 universes, while backups from PostgreSQL-11 universes can be successfully restored on PostgreSQL-15 universes. Reviewers: dshubin, sanketh, hsunder Reviewed By: dshubin Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D42098
- Loading branch information
Showing
8 changed files
with
103 additions
and
8 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
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