-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
123520: sqlinstance: write backwards compatible binary version r=RaduBerinde a=renatolabs We keep track of sql instances in multi-tenant deployments using the `system.sql_instances` table. One of the columns in this table is `binary_version`: this is the encoding of the version that the sql instance is running. SQL instances know how to reach each other by reading from that table (more accurately, setting up a rangefeed on that table and updating a local cache). In #115223, we introduced a new, more understandable string representation of cockroach internal versions. This new format is, however, backwards incompatible: older releases of cockroach are not able to parse it. As a result, a mixed-version multi-tenant deployments may face errors if some of the instances are running an internal version: the older releases won't be able to parse the new version format. As a result, the cache will be stale and we might see query errors and distsql timeouts. In this commit, we introduce a backwards compatible implementation of the the string representation of a version. Specifically, we continue to use the old format if the minimum supported version is less than 24.1 (the version in which the new formatting was added). This commit should eventually be reverted when we no longer support versions older than 24.1. Epic: none Release note: None Co-authored-by: Renato Costa <renato@cockroachlabs.com>
- Loading branch information
Showing
4 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters