-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
74918: sql,ccl: remove catalogkv package r=postamar a=postamar sql,ccl: remove catalogkv package Previously, the catalogkv package allowed unmediated access to catalog descriptors and namespace entries. Instead, we want like all such accessess to be mediated by descs.Collection. This commit is a step in this direction. The catalogkv package has been broken up in multiple packages in sql/catalog: - descidgen, for descriptor ID generation; - descbuilder, for catalog.Descriptor builders; - internal/catkv, for everything else. This commit also gets rid of the DescGetter and BatchDescGetter interfaces and makes descriptor validation internal to the catalog packages. In so doing, this commit also modifies the DescriptorBuilder interface to reflect the fact that there are two upgrade paths: - the existing RunPostDeserializationChanges path which gets exercised in mixed-version clusters; - a new RunPostRestoreChanges which gets exercised following a RESTORE, or any time a possibly-old descriptor comes into existence bypassing cluster upgrades and migrations which upgrade descriptor representations. This commit also introduces nstree.Catalog, which is roughly what the catalog.MapDescGetter used to be, but with the added benefit of preserving ordering. In doing all these things, it's been possible to streamline descriptor and namespace lookups in some specific cases, which reduces the number of roundtrips to the KV layer. Generally speaking, this commit doesn't fundamentally change much in terms of behavior. Release note: None 75450: go.mod: update to cockroach-go 2.2.6 r=rafiss a=rafiss This contains a fix for the error message when retrying a transaction fails. refs #74892 Release note: None 75489: cli: update debug recover command procedure help r=erikgrinaker a=aliher1911 Updated recovery procedure with steps that user need to perform when executing unsafe loss of quorum recovery. Release note: None Co-authored-by: Marius Posta <[email protected]> Co-authored-by: Rafi Shamim <[email protected]> Co-authored-by: Oleg Afanasyev <[email protected]>
- Loading branch information
Showing
245 changed files
with
3,085 additions
and
3,178 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
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
Oops, something went wrong.