Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

tracks erasure coding shreds indices explicitly#21822

Merged
behzadnouri merged 1 commit intosolana-labs:masterfrom
behzadnouri:next-code-index
Dec 19, 2021
Merged

tracks erasure coding shreds indices explicitly#21822
behzadnouri merged 1 commit intosolana-labs:masterfrom
behzadnouri:next-code-index

Conversation

@behzadnouri
Copy link
Copy Markdown
Contributor

Problem

The indices for erasure coding shreds are tied to data shreds:
https://github.com/solana-labs/solana/blob/90f41fd9b/ledger/src/shred.rs#L921

However with upcoming changes to erasure schema there will be more erasure coding shreds than data shreds and we can no longer infer coding shreds indices from data shreds.

Summary of Changes

  • The commit adds constructs to track coding shreds indices explicitly.

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 13, 2021

Codecov Report

Merging #21822 (db1e9dc) into master (8d22ca5) will increase coverage by 0.1%.
The diff coverage is 95.0%.

❗ Current head db1e9dc differs from pull request most recent head 0eb9a11. Consider uploading reports for the commit 0eb9a11 to get more accurate results

@@            Coverage Diff            @@
##           master   #21822     +/-   ##
=========================================
+ Coverage    81.2%    81.3%   +0.1%     
=========================================
  Files         516      516             
  Lines      144284   144936    +652     
=========================================
+ Hits       117256   117941    +685     
+ Misses      27028    26995     -33     

@behzadnouri behzadnouri force-pushed the next-code-index branch 5 times, most recently from 9a6ab95 to db1e9dc Compare December 17, 2021 15:03
The indices for erasure coding shreds are tied to data shreds:
https://github.com/solana-labs/solana/blob/90f41fd9b/ledger/src/shred.rs#L921

However with the upcoming changes to erasure schema, there will be more
erasure coding shreds than data shreds and we can no longer infer coding
shreds indices from data shreds.

The commit adds constructs to track coding shreds indices explicitly.
@behzadnouri behzadnouri marked this pull request as ready for review December 17, 2021 19:24
@behzadnouri behzadnouri merged commit 65d59f4 into solana-labs:master Dec 19, 2021
@behzadnouri behzadnouri deleted the next-code-index branch December 19, 2021 22:37
mergify Bot pushed a commit that referenced this pull request Dec 23, 2021
The indices for erasure coding shreds are tied to data shreds:
https://github.com/solana-labs/solana/blob/90f41fd9b/ledger/src/shred.rs#L921

However with the upcoming changes to erasure schema, there will be more
erasure coding shreds than data shreds and we can no longer infer coding
shreds indices from data shreds.

The commit adds constructs to track coding shreds indices explicitly.

(cherry picked from commit 65d59f4)
mergify Bot added a commit that referenced this pull request Dec 23, 2021
The indices for erasure coding shreds are tied to data shreds:
https://github.com/solana-labs/solana/blob/90f41fd9b/ledger/src/shred.rs#L921

However with the upcoming changes to erasure schema, there will be more
erasure coding shreds than data shreds and we can no longer infer coding
shreds indices from data shreds.

The commit adds constructs to track coding shreds indices explicitly.

(cherry picked from commit 65d59f4)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
@brooksprumo brooksprumo mentioned this pull request Jan 5, 2022
@behzadnouri behzadnouri added v1.8 and removed v1.8 labels Feb 5, 2022
mergify Bot pushed a commit that referenced this pull request Feb 5, 2022
The indices for erasure coding shreds are tied to data shreds:
https://github.com/solana-labs/solana/blob/90f41fd9b/ledger/src/shred.rs#L921

However with the upcoming changes to erasure schema, there will be more
erasure coding shreds than data shreds and we can no longer infer coding
shreds indices from data shreds.

The commit adds constructs to track coding shreds indices explicitly.

(cherry picked from commit 65d59f4)

# Conflicts:
#	core/benches/retransmit_stage.rs
#	core/benches/shredder.rs
#	core/src/broadcast_stage/broadcast_duplicates_run.rs
#	core/src/broadcast_stage/broadcast_fake_shreds_run.rs
#	core/src/broadcast_stage/fail_entry_verification_broadcast_run.rs
#	core/src/window_service.rs
#	ledger/src/blockstore.rs
#	ledger/src/shred.rs
#	ledger/tests/shred.rs
mergify Bot added a commit that referenced this pull request Feb 6, 2022
…2969)

* tracks erasure coding shreds' indices explicitly (#21822)

The indices for erasure coding shreds are tied to data shreds:
https://github.com/solana-labs/solana/blob/90f41fd9b/ledger/src/shred.rs#L921

However with the upcoming changes to erasure schema, there will be more
erasure coding shreds than data shreds and we can no longer infer coding
shreds indices from data shreds.

The commit adds constructs to track coding shreds indices explicitly.

(cherry picked from commit 65d59f4)

# Conflicts:
#	core/benches/retransmit_stage.rs
#	core/benches/shredder.rs
#	core/src/broadcast_stage/broadcast_duplicates_run.rs
#	core/src/broadcast_stage/broadcast_fake_shreds_run.rs
#	core/src/broadcast_stage/fail_entry_verification_broadcast_run.rs
#	core/src/window_service.rs
#	ledger/src/blockstore.rs
#	ledger/src/shred.rs
#	ledger/tests/shred.rs

* removes mergify merge conflicts

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants