Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stops pushing legacy snapshot hashes to crds #33576

Conversation

brooksprumo
Copy link
Contributor

@brooksprumo brooksprumo commented Oct 7, 2023

Problem

Now that the clusters are on v1.16 (or later), we no longer query LegacySnapshotHashes during bootstrap to discover snapshots to download (as of #31275). This means we can also stop pushing that information to CRDS.

Summary of Changes

Stop pushing legacy snapshot hashes.

Fixes #31282

Note, this PR purposely does not remove anything from CRDS itself. That will be handled in subsequent PRs.

@brooksprumo brooksprumo added noCI Suppress CI on this Pull Request blocked Unable to proceed labels Oct 7, 2023
@brooksprumo brooksprumo self-assigned this Oct 7, 2023
@brooksprumo brooksprumo added CI Pull Request is ready to enter CI and removed noCI Suppress CI on this Pull Request blocked Unable to proceed labels Oct 7, 2023
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Oct 7, 2023
@brooksprumo brooksprumo added the v1.17 PRs that should be backported to v1.17 label Oct 7, 2023
@brooksprumo brooksprumo marked this pull request as ready for review October 7, 2023 13:48
@brooksprumo brooksprumo requested a review from bw-solana October 7, 2023 13:50
Comment on lines -160 to -163
self.cluster_info
.push_legacy_snapshot_hashes(clone_hashes_for_crds(
self.legacy_full_snapshot_hashes.as_slice(),
));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main change. Because we remove this call, then all the other code removals fall out from here.

@bw-solana
Copy link
Contributor

What happens if a node running legacy v1.14 tries to query the legacy snapshot hash?

@brooksprumo
Copy link
Contributor Author

What happens if a node running legacy v1.14 tries to query the legacy snapshot hash?

If the majority of nodes on the cluster are running v1.16 or older, the v1.14 node will bootstrap without issue. This is mnb today.

If the cluster has already enabled v1.16 feature gates, then a v1.14 node cannot join the network at all, so its bootstrap process is moot. This is testnet today.

This PR will only be backported to v1.17, and v1.16 is compatible with it. So testnet is fine.

If someone runs v1.17+ on mnb, it shouldn't impact a v1.14 node. This is because (1) the v1.17 node is unlikely to be listed as one of the v1.14 node's known validators, and (2), almost all the nodes on mnb are v1.16, since v1.17 is not recommended for mnb.

(And soon mnb's floor will raise to v1.16 due to feature gate activations, rendering v1.14 moot there as well.)

Copy link
Contributor

@bw-solana bw-solana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@brooksprumo brooksprumo merged commit c588f25 into solana-labs:master Oct 7, 2023
16 checks passed
@brooksprumo brooksprumo deleted the bsb/stop-pushing-legacy-snapshot-hashes branch October 7, 2023 18:29
mergify bot pushed a commit that referenced this pull request Oct 7, 2023
brooksprumo added a commit that referenced this pull request Oct 7, 2023
deanmlittle pushed a commit to deanmlittle/solana that referenced this pull request Oct 8, 2023
deanmlittle pushed a commit to deanmlittle/solana that referenced this pull request Oct 8, 2023
behzadnouri added a commit to behzadnouri/solana that referenced this pull request Oct 9, 2023
solana-labs#33576
stops broadcasting legacy snapshot hashes over gossip, and the commit
removes unused legacy snapshot hashed code in gossip.
behzadnouri added a commit to behzadnouri/solana that referenced this pull request Oct 9, 2023
solana-labs#33576
stops broadcasting legacy snapshot hashes over gossip, and this commit
removes unused legacy snapshot hashed code in gossip.
mergify bot pushed a commit that referenced this pull request Oct 9, 2023
#33576
stops broadcasting legacy snapshot hashes over gossip, and this commit
removes unused legacy snapshot hashed code in gossip.
brooksprumo added a commit that referenced this pull request Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.17 PRs that should be backported to v1.17
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Stop pushing to LegacySnapshotHashes
3 participants