You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
…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
…ersion 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.
Original diff: D11693/f2a2d0be68eb2f445d73fa8d94afc2bafe4642f7
Test Plan:
ybd --gtest_filter YbAdminSnapshotScheduleTest.AlterTable
Jenkins: rebase: 2.6
Reviewers: bogdan
Reviewed By: bogdan
Subscribers: ybase
Differential Revision: https://phabricator.dev.yugabyte.com/D11897
eg from
ent/src/yb/master/restore_sys_catalog_state.cc
The text was updated successfully, but these errors were encountered: