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

removes turbine legacy code and already activated features #24080

Merged
merged 3 commits into from
Apr 5, 2022

Conversation

behzadnouri
Copy link
Contributor

Problem

Features are already activated on all clusters,
so the old compatibility code is no longer needed.

Summary of Changes

  • Removed features and legacy compatibility code.
  • Cleaning up the code to ease out path for upcoming changes.

@@ -120,20 +116,12 @@ impl ClusterNodes<BroadcastStage> {
pub(crate) fn get_broadcast_addrs(
&self,
shred: &Shred,
root_bank: &Bank,
_root_bank: &Bank,
Copy link
Contributor

Choose a reason for hiding this comment

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

remove _root_bank?

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 was intentional. The upcoming changes need to be feature gated as well, so we will need the root bank here to obtain the feature set. I didn't want to remove the plumbing here and then add it back in the next commit.

&self,
slot_leader: Pubkey,
shred: &Shred,
root_bank: &Bank,
_root_bank: &Bank,
Copy link
Contributor

Choose a reason for hiding this comment

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

remove _root_bank?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

same as above

@behzadnouri behzadnouri requested a review from jbiseda April 4, 2022 13:19
@behzadnouri behzadnouri merged commit 2b718d0 into solana-labs:master Apr 5, 2022
@behzadnouri behzadnouri deleted the rm-turbine-legacy branch April 5, 2022 12:04
behzadnouri added a commit to behzadnouri/solana that referenced this pull request Apr 5, 2022
test_skip_repair in retransmit-stage is no longer relevant because
following: solana-labs#19233
repair packets are filtered out earlier in window-service and so
retransmit stage does not know if a shred is repaired or not.
Also, following turbine peer shuffle changes:
solana-labs#24080
the test has become flaky since it does not take into account how peers
are shuffled for each shred.
behzadnouri added a commit that referenced this pull request Apr 5, 2022
…4121)

test_skip_repair in retransmit-stage is no longer relevant because
following: #19233
repair packets are filtered out earlier in window-service and so
retransmit stage does not know if a shred is repaired or not.
Also, following turbine peer shuffle changes:
#24080
the test has become flaky since it does not take into account how peers
are shuffled for each shred.
mergify bot pushed a commit that referenced this pull request Apr 5, 2022
…4121)

test_skip_repair in retransmit-stage is no longer relevant because
following: #19233
repair packets are filtered out earlier in window-service and so
retransmit stage does not know if a shred is repaired or not.
Also, following turbine peer shuffle changes:
#24080
the test has become flaky since it does not take into account how peers
are shuffled for each shred.

(cherry picked from commit 2282571)
behzadnouri added a commit that referenced this pull request Apr 5, 2022
…4121) (#24126)

test_skip_repair in retransmit-stage is no longer relevant because
following: #19233
repair packets are filtered out earlier in window-service and so
retransmit stage does not know if a shred is repaired or not.
Also, following turbine peer shuffle changes:
#24080
the test has become flaky since it does not take into account how peers
are shuffled for each shred.

(cherry picked from commit 2282571)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
mergify bot pushed a commit that referenced this pull request Apr 25, 2022
…4121)

test_skip_repair in retransmit-stage is no longer relevant because
following: #19233
repair packets are filtered out earlier in window-service and so
retransmit stage does not know if a shred is repaired or not.
Also, following turbine peer shuffle changes:
#24080
the test has become flaky since it does not take into account how peers
are shuffled for each shred.

(cherry picked from commit 2282571)

# Conflicts:
#	core/src/retransmit_stage.rs
mergify bot added a commit that referenced this pull request Apr 25, 2022
…ckport #24121) (#24663)

* removes outdated and flaky test_skip_repair from retransmit-stage (#24121)

test_skip_repair in retransmit-stage is no longer relevant because
following: #19233
repair packets are filtered out earlier in window-service and so
retransmit stage does not know if a shred is repaired or not.
Also, following turbine peer shuffle changes:
#24080
the test has become flaky since it does not take into account how peers
are shuffled for each shred.

(cherry picked from commit 2282571)

# Conflicts:
#	core/src/retransmit_stage.rs

* removes mergify merge conflicts

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
mergify bot added a commit that referenced this pull request Apr 26, 2022
…24080) (#24671)

* removes deterministic-shred-seed feature

(cherry picked from commit 855801c)

* removes turbine peers shuffle patch feature

(cherry picked from commit d0b850c)

# Conflicts:
#	core/benches/cluster_nodes.rs
#	core/src/cluster_nodes.rs

* removes legacy compatibility turbine peers shuffle code

(cherry picked from commit 2b718d0)

# Conflicts:
#	core/src/cluster_nodes.rs
#	gossip/tests/cluster_info.rs

* removes mergify merge conflicts

* retains feature-ids in feature_set.rs

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
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.

None yet

2 participants