This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Rename snapshot.tar.bz2 to snapshot-<slot>-<hash>.tar.bz2 #8482
Merged
Conversation
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
488e138
to
a60dbf9
Compare
|
Codecov Report
@@ Coverage Diff @@
## master #8482 +/- ##
========================================
Coverage ? 80.3%
========================================
Files ? 256
Lines ? 56548
Branches ? 0
========================================
Hits ? 45410
Misses ? 11138
Partials ? 0 |
This was referenced Feb 27, 2020
solana-grimes
pushed a commit
that referenced
this pull request
Feb 27, 2020
solana-grimes
pushed a commit
that referenced
this pull request
Feb 27, 2020
Hello @mvines, slot of my RPC node is behind the cluster and difference is increasing with time, as you mention the name change in snapshot can solve the issue, but i am not able to see any snapshot file in my repo. I have a snapshot directory which is empty. can you help me with what should be done next to solve the issue in #8406. |
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
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.
Fetching snapshot.tar.bz2 over RPC doesn't allow the caller to be explicit about the snapshot hash they want to fetch. This was a problem for TdS where nodes were advertising newer snapshots over gossip but then serving older snapshots over RPC.
Now snapshot archives are stored on disk as
snapshot-<slot>-<hash>.tar.bz2
and referenced over RPC in the same way. The two latestsnapshot-<slot>-<hash>.tar.bz2
files are now stored, and as an added bonus if the desiredsnapshot-<slot>-<hash>.tar.bz2
is already present on disk then a validator at boot will no longer needlessly re-download it.Fixes #8168
This PR also works towards #8432 but does not yet fully resolve it, as a node could still respond to the request for a snapshot for slot X with a snapshot for slot Y.