schemachanger: add checkNoRegionChangeUnderway
checks
#136320
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
In
TestRegionChangeRacingRegionalByRowChange
, we ensure that firing off anADD/DROP REGION
whilst an index-related change on an RBR table is happening (and vice versa) fails properly.In the declarative schema changer, this means we need to ensure that no regions on the database are being modified before we can proceed with the schema change -- like in drop index
cockroach/pkg/sql/drop_index.go
Lines 330 to 338 in 9f8f1e8
In other words, this tracks the implementation of
checkNoRegionChangeUnderway
in the DSC.Jira issue: CRDB-44972
The text was updated successfully, but these errors were encountered: