-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrade: adding is_draining to sql_instances fails on MR system database #135736
Labels
branch-master
Failures and bugs on the master branch.
branch-release-24.3
Used to mark GA and release blockers, technical advisories, and bugs for 24.3
branch-release-24.3.0-rc
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Comments
fqazi
added
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
branch-master
Failures and bugs on the master branch.
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
branch-release-24.3
Used to mark GA and release blockers, technical advisories, and bugs for 24.3
labels
Nov 19, 2024
fqazi
added a commit
to fqazi/cockroach
that referenced
this issue
Nov 19, 2024
Previously, the logic to add the is_draining column to the system.sql_instance descriptor would copy the bootstrap descriptor directly. While this works fine for non-multiregion system databases, this approach breaks for multi-region system databases. This is because bootstrap descriptors do not have multi-region modifications applied on top. To address this, this change modifies the upgrade to use ALTER TABLE ADD COLUMN. Fixes: cockroachdb#135736 Release note: None
fqazi
added a commit
to fqazi/cockroach
that referenced
this issue
Nov 19, 2024
Previously, the logic to add the is_draining column to the system.sql_instance descriptor would copy the bootstrap descriptor directly. While this works fine for non-multiregion system databases, this approach breaks for multi-region system databases. This is because bootstrap descriptors do not have multi-region modifications applied on top. To address this, this change modifies the upgrade to use ALTER TABLE ADD COLUMN. Fixes: cockroachdb#135736 Release note: None
fqazi
added a commit
to fqazi/cockroach
that referenced
this issue
Nov 19, 2024
Previously, the logic to add the is_draining column to the system.sql_instance descriptor would copy the bootstrap descriptor directly. While this works fine for non-multiregion system databases, this approach breaks for multi-region system databases. This is because bootstrap descriptors do not have multi-region modifications applied on top. To address this, this change modifies the upgrade to use ALTER TABLE ADD COLUMN. Fixes: cockroachdb#135736 Release note: None
craig bot
pushed a commit
that referenced
this issue
Nov 20, 2024
135737: upgrade: adding is_draining to system.sql_instance can fail r=fqazi a=fqazi Previously, the logic to add the is_draining column to the system.sql_instance descriptor would copy the bootstrap descriptor directly. While this works fine for non-multiregion system databases, this approach breaks for multi-region system databases. This is because bootstrap descriptors do not have multi-region modifications applied on top. To address this, this change modifies the upgrade to use ALTER TABLE ADD COLUMN. Fixes: #135736 Release note: None Co-authored-by: Faizan Qazi <[email protected]>
Based on the specified backports for linked PR #135737, I applied the following new label(s) to this issue: branch-release-24.3.0-rc. Please adjust the labels as needed to match the branches actually affected by this issue, including adding any known older branches. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
fqazi
added a commit
to fqazi/cockroach
that referenced
this issue
Nov 20, 2024
Previously, the logic to add the is_draining column to the system.sql_instance descriptor would copy the bootstrap descriptor directly. While this works fine for non-multiregion system databases, this approach breaks for multi-region system databases. This is because bootstrap descriptors do not have multi-region modifications applied on top. To address this, this change modifies the upgrade to use ALTER TABLE ADD COLUMN. Fixes: cockroachdb#135736 Release note: None
fqazi
added a commit
to fqazi/cockroach
that referenced
this issue
Nov 20, 2024
Previously, the logic to add the is_draining column to the system.sql_instance descriptor would copy the bootstrap descriptor directly. While this works fine for non-multiregion system databases, this approach breaks for multi-region system databases. This is because bootstrap descriptors do not have multi-region modifications applied on top. To address this, this change modifies the upgrade to use ALTER TABLE ADD COLUMN. Fixes: cockroachdb#135736 Release note: None
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
branch-master
Failures and bugs on the master branch.
branch-release-24.3
Used to mark GA and release blockers, technical advisories, and bugs for 24.3
branch-release-24.3.0-rc
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
When upgrading from 24.2 to 24.3 with a multi-region system database the upgrade the can fail with the following error:
This happens because the existing upgrade attempts to copy the bootstrap descriptor directly. While this is fine for single region system databases. This is approach does not work for multi-region system databases. To address this we should just use an alter command for the upgrade.
Jira issue: CRDB-44694
The text was updated successfully, but these errors were encountered: