-
Notifications
You must be signed in to change notification settings - Fork 665
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[reshardingV3] State ShardUIdMapping - initial implementation (#12084)
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.
- Loading branch information
Showing
8 changed files
with
83 additions
and
47 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
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