-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#11749] YSQL: Improve/refactor tablegroups and colocation
Summary: The main objective of this diff it to make colocation/tablegroups code cleaner and clearer. - Introduced `YsqlTablegroupManager` responsible for tracking tablegroups on master side - Did a bunch of renames for clarity - tried to remove as much ambiguity from the term "colocation" as possible - Fixed `TablegroupExists` erroneously returning `false` before - Reworked how colocation is treated in `CreateTable` - `CreateTablegroup` and `DeleteTablegroup` implementation slightly reworked and moved from `client` to `client-internal` - Added `IsIdentifierLikeUuid` and a bunch of sanity DCHECKs using it - Reworked `GetTablegroupSchema` and 2DC using it Smaller changes: - Added `IsColocationParentTable` - `IsTablegroupParentTableId`, etc. moved to `master_util`, encapsulated colocation suffixes there too - Removed unused `CatalogManager::HasTablegroups` - Removed unnecessary database name from `DeleteTablegroup` request - Improved `TestTablespaceProperties` --- Resolves #11749 Test Plan: Existing tests, specifically: - PgLibPqTest.ColocatedTablegroups - MasterTest.TestTablegroups - TwoDCYsqlTest.TablegroupReplication - org.yb.pgsql.TestPgRegressTablegroup Reviewers: mihnea, nicolas, rahuldesirazu, jason Reviewed By: jason Subscribers: rahuldesirazu, nicolas, yql, bogdan Differential Revision: https://phabricator.dev.yugabyte.com/D16158
- Loading branch information
1 parent
11d2f23
commit fffd1ae
Showing
64 changed files
with
1,093 additions
and
838 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
Oops, something went wrong.