This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
expands number of erasure coding shreds in the last batch in slots (backport #16484) #16707
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
…16484) Number of parity coding shreds is always less than the number of data shreds in FEC blocks: https://github.com/solana-labs/solana/blob/6907a2366/ledger/src/shred.rs#L719 Data shreds are batched in chunks of 32 shreds each: https://github.com/solana-labs/solana/blob/6907a2366/ledger/src/shred.rs#L714 However the very last batch of data shreds in a slot can be small, in which case the loss rate can be exacerbated. This commit expands the number of coding shreds in the last FEC block in slots to: 64 - number of data shreds; so that FEC blocks are always 64 data and parity coding shreds each. As a consequence of this, the last FEC block has more parity coding shreds than data shreds. So for some shred indices we will have a coding shred but no data shreds. This should not cause any kind of overlapping FEC blocks as in: #10095 since this is done only for the very last batch in a slot, and the next slot will reset the shred index. (cherry picked from commit 37b8587) # Conflicts: # core/benches/shredder.rs # ledger/src/shred.rs
mergify
bot
added
conflicts
automerge
Merge this Pull Request automatically once CI passes
labels
Apr 21, 2021
automerge label removed due to a CI failure |
mergify
bot
removed
the
automerge
Merge this Pull Request automatically once CI passes
label
Apr 21, 2021
mergify
bot
added
the
automerge
Merge this Pull Request automatically once CI passes
label
Apr 21, 2021
automerge label removed due to a CI failure |
mergify
bot
added
automerge
Merge this Pull Request automatically once CI passes
and removed
automerge
Merge this Pull Request automatically once CI passes
labels
Apr 21, 2021
automerge label removed due to a CI failure |
mergify
bot
added
automerge
Merge this Pull Request automatically once CI passes
and removed
automerge
Merge this Pull Request automatically once CI passes
labels
Apr 21, 2021
automerge label removed due to a CI failure |
behzadnouri
force-pushed
the
mergify/bp/v1.6/pr-16484
branch
from
April 21, 2021 14:10
550339a
to
a756684
Compare
mergify
bot
added
automerge
Merge this Pull Request automatically once CI passes
and removed
automerge
Merge this Pull Request automatically once CI passes
labels
Apr 21, 2021
automerge label removed due to a CI failure |
mergify
bot
added
the
automerge
Merge this Pull Request automatically once CI passes
label
Apr 21, 2021
Codecov Report
@@ Coverage Diff @@
## v1.6 #16707 +/- ##
=========================================
- Coverage 82.9% 82.9% -0.1%
=========================================
Files 414 414
Lines 113921 113956 +35
=========================================
+ Hits 94482 94494 +12
- Misses 19439 19462 +23 |
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This is an automatic backport of pull request #16484 done by Mergify.
Cherry-pick of 37b8587 has failed:
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/
Mergify commands and options
More conditions and actions can be found in the documentation.
You can also trigger Mergify actions by commenting on this pull request:
@Mergifyio refresh
will re-evaluate the rules@Mergifyio rebase
will rebase this PR on its base branch@Mergifyio update
will merge the base branch into this PR@Mergifyio backport <destination>
will backport this PR on<destination>
branchAdditionally, on Mergify dashboard you can:
Finally, you can contact us on https://mergify.io/