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
Tracking issue: #12050
#### Summary
Currently the changes should be almost no-op, as we do not explicitly
save anything to `DBCol::ShardUIdMapping`.
The only difference is that we make an additional read from
`DBCol::ShardUIdMapping` column every time we access `State` column.
The main logic is in `Store::get_impl_state()`.
These changes implement mapping for reads, writes will be handled in the
next PR.
#### Changes:
- Added `DBCol::ShardUIdMapping` that is initially empty and will be
populated on future resharding events.
- Slight refactor: only allow `Store` to create `StoreUpdate`.
- `Store::get_impl_state()` - special `get()` implementation for the
State column.
#### Next steps (see tracking issue
#12050):
- Use mapping for writes to db.
- Handle `copy_state_from_store` in `cold_storage.rs`.
- Integration.
- State clean up (e.g. gc parent state when it is no longer referenced
by any child).
- Tests.
We agreed to use the mapping strategy (design doc).
Implementation plan:
Store::get()
for State column.copy_state_from_store
incold_storage.rs
(see comment).load_one_subtree
inparallel_loader.rs
.The text was updated successfully, but these errors were encountered: