Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
staffik committed Dec 13, 2024
1 parent 958c1da commit 5ad68f8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions neps/nep-0568.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,13 @@ Once a node stops tracking all children and descendants of a shard, the entry fo
This mapping strategy enables efficient shard management during resharding events,
supporting smooth transitions without altering storage structures directly.

#### Integration with Cold Storage
#### Integration with cold storage (archival nodes)
Cold storage uses the same mapping strategy to manage shard state during resharding:

* When state data is migrated from hot to cold storage, it retains the parent shard’s `ShardUId` prefix, ensuring consistency with the mapping strategy.
* During the final block of the epoch where resharding occurs, the `DBCol::StateShardUIdMapping` column is copied into cold storage. This ensures that mappings are updated alongside the shard state data.
* While copying data for the final block of the epoch where resharding occured, the `DBCol::StateShardUIdMapping` column is copied into cold storage. This ensures that mappings are updated alongside the shard state data.
* These mappings are permanent in cold storage, aligning with its role in preserving historical state.

This approach minimizes complexity while maintaining consistency across hot and cold storage during and after resharding.
This approach minimizes complexity while maintaining consistency across hot and cold storage.

### Stateless Validation

Expand Down

0 comments on commit 5ad68f8

Please sign in to comment.