-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(resharding): catchup children shards to one block before the fina…
…l chain (#12557) PR to fix a failure in the resharding test loop. The wrong assumption was that flat storage for children shards should catchup deltas up to and including the last final block. This creates a mismatch in the state between memtries and flat storage in the first block after resharding is completed; to put it simply, flat storage was ahead of one block and it would return in sync with memtries after the next chunk application. The fix is to apply deltas only up to the previous final block, like it is done in `Chain`. Also adding a test (which currently fails) combining single shard tracking and "longer" resharding.
- Loading branch information
Showing
2 changed files
with
48 additions
and
16 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