Skip to main content
Publication date: July 18, 2022

Description

The problem occurs on clusters which were running or an earlier version, and are now running versions to . Adding a column to a table which references a sequence, or creating a table with columns referencing sequences, adds an incomplete back-reference to the sequence metadata. Upgrading to versions v22.1.0 or v22.1.2 then either fails outright, or succeeds but causes the sequences and the tables to become inoperable. The error message in those cases matches the regular expression: depended-on-by relation.* does not have a column with ID 0 This problem can conclusively be diagnosed by running the following query:
If you get back a non-zero result, your cluster has the problem described in this technical advisory. If you get back zero, your cluster does not have this problem.

Statement

This is resolved in CockroachDB by a fix which relaxes the validation checks which detect descriptor corruption. The fix has been applied to maintenance release of CockroachDB.

Mitigation

Users of CockroachDB v22.1.0 to v22.1.2 are encouraged to upgrade to or later. Alternatively, users can run the following repair query:
If the query succeeds, that means the repair has succeeded. You can re-run the diagnostic query to confirm this. We encourage users to back up their clusters before undertaking such a repair.

Impact

Clusters which have been upgraded from v21.1 to v22.1, and which are currently running versions v22.1.0 to v22.1.2, may be affected. Questions about any technical alert can be directed to our support team.