sql: Internal error when querying a REGIONAL BY ROW table during DROP REGION #64223
Labels
A-multiregion
Related to multi-region
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
If users query REGIONAL BY ROW tables while a background DROP REGION statement is occurring (more specifically, is in the schema changer), they may observe this:
The query then fails, but is likely to succeed if reissued.
This occurs because under the covers, the query detects the system in a partial state - the
crdb_internal_region
enum doesn't have the enum value present anymore, but the underlying RBR table hasn't yet been repartitioned.The fix for this problem is to ensure that queries can't find the system in this partial state.
The text was updated successfully, but these errors were encountered: