fix(tests): remove sync_empty_state #12473
Merged
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 test can fail with nightly features and block PR merges: https://nayduck.nearone.org/#/test/231517. The reason it fails is that it sets up a node with a real rocksdb database in a temp dir, and creating snapshots actually takes several seconds even with small state because this loop takes a while. So the node trying to state sync can't request parts from the other node because it doesn't have a snapshot yet, and it doesn't retry its request until long after the current epoch is over and the other node has already deleted that snapshot. The fact that that loop in
create_checkpoint()
takes so long is something that perhaps we could look into, but it's not an issue in practice with long epoch lengths, so it's not a super high priority thing that should be causing test failures.Fix it by just deleting that test and modifying the test loop state sync test to get the same conditions where we have fewer accounts than shards so that one of them is empty. (Although it should be noted that with nightly features, the state won't actually be empty since there'll be
BandwidthSchedulerState
data in the shards without accounts)