forked from yugabyte/yugabyte-db
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BACKPORT 2.14][yugabyte#17713] docdb: Add master side migration for …
…TableInfo namespace_name Summary: Original commit: 8afc03a / D27040 The namespace_name field was introduced in 2.3 but we didn't do any migration for it. This has led to issues on newer versions where newer code expects that this field is present, causing issues with ycql system.partitions, snapshots, metrics. Using the master migration framework to migrate this field. As part of this, I have moved the namespace loader to be before the table loader (since that way we have the namespace info when loading tables). Note: We still need to migrate the TableInfo stored in Raft Superblocks as well, but that will be done in a later diff, after we finalize the design there. Jira: DB-6815 Test Plan: ``` ybd --cxx-test sys_catalog-test --gtest_filter SysCatalogTest.TestNamespaceNameMigration ybd --cxx-test yb-admin-test_ent --gtest_filter AdminCliTest.TestListSnapshotWithNamespaceNameMigration ``` Reviewers: hsunder, zdrudi, asrivastava, skedia Reviewed By: zdrudi Subscribers: yql, yguan, ybase, bogdan Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D29560
- Loading branch information
Showing
5 changed files
with
157 additions
and
4 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