test(resharding): add test case for state sync the epoch after resharding #12691
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a test that has an extra node that tracks an unrelated shard for both the pre and post resharding epochs, and then tracks a child in the next epoch after that. This hits the case where
apply_state_part()
called by the state sync code will set the state for the child, and no resharding code was involved. Here we also callcheck_state_shard_uid_mapping_after_resharding()
for all clients, so that we can check this for the one we added.The test is currently ignored because of
MissingTrieValue
errors incheck_state_shard_uid_mapping_after_resharding()
, plus an assertion in that function that checks that no child shards are directly stored in the state column, which won't be true for this state synced child shard.