Summary:
The pg15-upgrade branch has implementations of 3 RPCs needed for the YSQL major version upgrade:
* StartYsqlMajorVersionUpgradeInitdb
* IsYsqlMajorVersionUpgradeInitdbDone
* RollbackYsqlMajorVersionUpgrade
In order to facilitate integration with tools such as YBA, add stubs for these methods to the master branch.
Upgrade/Downgrade safety:
No issues. New, unimplemented interface.
Jira: DB-1591
Test Plan:
Jenkins
Using a recent pg15-upgrade build, manually run:
yb-admin ysql_major_version_upgrade_initdb
yb-admin rollback_ysql_major_version_upgrade
Verify it shows something like the following errors:
Error running ysql_major_version_upgrade_initdb: Not implemented (yb/master/catalog_manager.cc:3281): Unable to run initdb for ysql major version upgrade: Ysql major version upgrade is not supported
Error running rollback_ysql_major_version_upgrade: Not implemented (yb/master/catalog_manager.cc:3294): Unable to roll back ysql major version upgrade: Ysql major version upgrade is not supported
Note yb-admin doesn't have a command for IsYsqlMajorVersionUpgradeInitdbDone because it implements its own blocking on the pg15-upgrade branch, but the code is similar for the 3 RPCs.
Reviewers: hsunder
Reviewed By: hsunder
Subscribers: vbansal, ybase, yql
Differential Revision: https://phorge.dev.yugabyte.com/D36940