forked from yugabyte/yugabyte-db
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[yugabyte#8543] PITR: Add test for need to increase table version on …
…restore Summary: This diff adds that fails if we don't patch schema version on restore. Consider the following scenario, w/o patching: 1) Create table. Schema version - 0. 2) Add text column to table. Schema version - 1. 3) Insert values into table. Each CQL proxy suppose schema version 1 for this table. 4) Restore to time between (1) and (2). Schema version - 0. 5) Add int column to table. Schema version - 1. 6) Try insert values with wrong type into table. So table has schema version 1, but new column is INT. CQL proxy suppose schema version is also 1, but the last column is TEXT. If we patch schema version on restore and set it to last version + 1, then each CQL proxy will have to reload schema for this table. Test Plan: ybd --gtest_filter YbAdminSnapshotScheduleTest.AlterTable Reviewers: bogdan Reviewed By: bogdan Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D11693
- Loading branch information
Showing
7 changed files
with
214 additions
and
23 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.