This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Snapshot restoration overhaul #11219
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
a2a3257
Comments and todos
dvdplm c543a46
Merge branch 'master' into dp/chore/ensure-we-ignore-old-snapshots
dvdplm 86f0450
fix compilation
dvdplm e250df2
More todos, more logs
dvdplm 5655285
Fix picking snapshot peer: prefer the one with the highest block number
dvdplm 9e79bc0
Adjust WAIT_PEERS_TIMEOUT to be a multiple of MAINTAIN_SYNC_TIMER to …
dvdplm 41f583c
Merge branch 'master' into dp/chore/ensure-we-ignore-old-snapshots
dvdplm ec6e4a5
Tabs
dvdplm 74ce5e8
Formatting
dvdplm 241675f
Don't build new rlp::EMPTY_LIST_RLP instances
dvdplm b8a1504
Dial down debug logging
dvdplm 956e237
Don't warn about missing hashes in the manifest: it's normal
dvdplm f7c7a8a
Cleanup
dvdplm 3ab9017
Do not skip snapshots further away than 30k block from the highest bl…
dvdplm 34cef68
lockfile
dvdplm fff43cc
Add a `ChunkType::Dupe` variant so that we do not disconnect a peer i…
dvdplm f4ccf20
tweak log message
dvdplm decb18c
Don't warp sync twice
dvdplm d79a4f4
Avoid iterating over all snapshot block/state hashes to find the next…
dvdplm ebab778
Address review grumbles
dvdplm 2e75fb4
Log correct number of bytes written to disk
dvdplm 5970b80
Revert ChunkType::Dup change
dvdplm 100ca6b
whitespace grumble
dvdplm bd9fc20
Cleanup debugging code
dvdplm 29a26c9
Fix docs
dvdplm ac4cd10
Fix import and a typo
dvdplm 81d46cb
Fix test impl
dvdplm d2c347a
Use `indexmap::IndexSet` to ensure chunk hashes are accessed in order
dvdplm 1ebd119
Revert increased SNAPSHOT_MANIFEST_TIMEOUT: 5sec should be enough
dvdplm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it's not an abnormal condition, it's expected when we start syncing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To elaborate on that: when we see that there was a partial restoration going on before us, we try to re-use the chunks we already have on disk. This warning looks scary to users but it's not really something we need to worry about I think: it just means we can't use the chunk because we're now working on a different snapshot.
I can put it back as a
trace!
perhaps?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that a yes? put the log back as a
trace!
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
either way is fine :)