-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tests): remove sync_empty_state (#12473)
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](https://github.com/near/nearcore/blob/8e0b26f161b43ef03e41342cd08e1363dfa23db9/core/store/src/db/rocksdb.rs#L475) 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)
- Loading branch information
1 parent
1a3382c
commit 7dfdfb0
Showing
3 changed files
with
58 additions
and
151 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