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

adds feature gated code to drop legacy shreds #34328

Merged

Conversation

behzadnouri
Copy link
Contributor

Problem

Moving on from legacy shreds.

Summary of Changes

Added feature to drop legacy shreds.

Copy link

codecov bot commented Dec 5, 2023

Codecov Report

Merging #34328 (c944cec) into master (61fa130) will decrease coverage by 0.1%.
Report is 3 commits behind head on master.
The diff coverage is 34.8%.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #34328     +/-   ##
=========================================
- Coverage    81.9%    81.9%   -0.1%     
=========================================
  Files         819      819             
  Lines      220530   220572     +42     
=========================================
+ Hits       180786   180811     +25     
- Misses      39744    39761     +17     

@behzadnouri behzadnouri force-pushed the reject-turbine-legacy-shreds branch 2 times, most recently from 7ad9af0 to 4266ef5 Compare December 6, 2023 13:56
@behzadnouri behzadnouri changed the title adds feature to drop legacy shreds adds feature gated code to drop legacy shreds Dec 6, 2023
@behzadnouri behzadnouri added the v1.17 PRs that should be backported to v1.17 label Dec 6, 2023
Copy link
Contributor

mergify bot commented Dec 6, 2023

Backports to the beta branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. Exceptions include CI/metrics changes, CLI improvements and documentation updates on a case by case basis.

t-nelson
t-nelson previously approved these changes Dec 6, 2023
Copy link
Contributor

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

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

lgtm assuming the comment is correct

Some(feature_slot) => {
let feature_epoch = epoch_schedule.get_epoch(feature_slot);
let shred_epoch = epoch_schedule.get_epoch(shred_slot);
feature_epoch < shred_epoch
Copy link
Contributor

Choose a reason for hiding this comment

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

one epoch delay is intentional, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, at epoch boundary, if shreds are from the next epoch, we don't know if the feature is activated or not,

@behzadnouri
Copy link
Contributor Author

@t-nelson
can you plz approve #34338 so that I can merge that one first?

@behzadnouri behzadnouri merged commit d5eee01 into solana-labs:master Dec 6, 2023
43 checks passed
@behzadnouri behzadnouri deleted the reject-turbine-legacy-shreds branch December 6, 2023 22:47
mergify bot pushed a commit that referenced this pull request Dec 6, 2023
behzadnouri added a commit that referenced this pull request Dec 7, 2023
) (#34346)

* adds feature gated code to drop legacy shreds (#34328)

(cherry picked from commit d5eee01)

* derefrences instead of clone

---------

Co-authored-by: behzad nouri <[email protected]>
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
None yet
Development

Successfully merging this pull request may close these issues.

2 participants