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

Add shred version filters to Crds Accessors #8027

Merged
merged 2 commits into from
Jan 30, 2020

Conversation

sagar-solana
Copy link
Contributor

@sagar-solana sagar-solana commented Jan 30, 2020

Problem

Gossiped Shred Versions aren't really used.
Having clusters running with different shred versions simultaneously causes undesired interactions between clusters because of gossip.

Summary of Changes

  • Added a shred_version check to all crds_version accessor functions.
    Turbine, Broadcast, Repair should all be considering nodes running on the same version of the cluster and ignore those on different versions.
  • Added all_* variants to some accessor functions so that spy nodes can function correctly
  • Added a workaround for Archivers where Gosssip services will automatically pick up the entrypoint's shred_version if one is not specified.

Gossip, however, will still continue to work across all shred versions of clusters.

@mvines
Copy link
Member

mvines commented Jan 30, 2020

Can you please rebase on the tip of master to pick up bea9cd9, it contains some extra logging that might help debug why CI failed

@codecov
Copy link

codecov bot commented Jan 30, 2020

Codecov Report

Merging #8027 into master will decrease coverage by <.1%.
The diff coverage is 60%.

@@           Coverage Diff            @@
##           master   #8027     +/-   ##
========================================
- Coverage    82.1%     82%   -0.1%     
========================================
  Files         245     245             
  Lines       53067   53101     +34     
========================================
- Hits        43579   43577      -2     
- Misses       9488    9524     +36

@sagar-solana sagar-solana merged commit 64c42e2 into solana-labs:master Jan 30, 2020
@sagar-solana sagar-solana deleted the checK_shred_version branch January 30, 2020 08:15
mergify bot pushed a commit that referenced this pull request Jan 30, 2020
* Add shred version filters to Crds Accessors

* Adopt entrypoint shred_version if one isn't provided

(cherry picked from commit 64c42e2)
mergify bot pushed a commit that referenced this pull request Jan 30, 2020
* Add shred version filters to Crds Accessors

* Adopt entrypoint shred_version if one isn't provided

(cherry picked from commit 64c42e2)
mvines pushed a commit that referenced this pull request Jan 30, 2020
* Add shred version filters to Crds Accessors

* Adopt entrypoint shred_version if one isn't provided

(cherry picked from commit 64c42e2)
mvines pushed a commit that referenced this pull request Jan 30, 2020
* Add shred version filters to Crds Accessors

* Adopt entrypoint shred_version if one isn't provided

(cherry picked from commit 64c42e2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants