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:
After tablet splitting, currently we don't update the partition list version which can lead
to the meta cache getting stale and thus queries failing.
This diff increments the partition list version post restoration. We also had a unit-test already
existing that was passing falsely. This existing unit-test has deficiencies:
1. Splitting was never happening because of less data.
2. After splitting, we didn't touch the data so the cache was still the old partition. Thus, when we
query after restoration (we restore to a time before the split), it works because the stale cache is technically correct.
3. The cluster had 3 tservers, and the leaders of 2 tablets were on different tservers. So it
happened that the cache invalidation in (2) happened for a different tserver and the data was read from
another tserver again passing falsely.
Fixed the unit-test to address these problems.
Test Plan:
ybd --cxx_test yb_admin_snapshot_schedule_test --gtest-filter
YbAdminSnapshotScheduleTest.RestoreAfterSplit
Reviewers: sergei, bogdan, timur
Reviewed By: timur
Subscribers: ybase
Differential Revision: https://phabricator.dev.yugabyte.com/D16303
DB Version: 2.8.0.0-b2
Steps:
Observations:
The text was updated successfully, but these errors were encountered: