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

Fix Erasure Index #7319

Merged
merged 4 commits into from
Dec 9, 2019
Merged

Fix Erasure Index #7319

merged 4 commits into from
Dec 9, 2019

Conversation

carllin
Copy link
Contributor

@carllin carllin commented Dec 6, 2019

Problem

The erasure index is not updated in check_cache_coding_shred does not update the erasure index. Thus when the erasure status is queried here for recovery status: https://github.com/solana-labs/solana/blob/master/ledger/src/blocktree.rs#L389, it does not account for codes inserted here https://github.com/solana-labs/solana/blob/master/ledger/src/blocktree.rs#L364, so recovery may not occur even when possible.

Summary of Changes

Update erasure index in check_cache_coding_shred

Fixes #
Replay Stage Spikes up to 1.5s when idling:

Before:
Screen Shot 2019-12-06 at 2 32 02 AM

After:
Screen Shot 2019-12-06 at 2 31 42 AM

@codecov
Copy link

codecov bot commented Dec 6, 2019

Codecov Report

Merging #7319 into master will increase coverage by 0.2%.
The diff coverage is 100%.

@@           Coverage Diff            @@
##           master   #7319     +/-   ##
========================================
+ Coverage    80.4%   80.6%   +0.2%     
========================================
  Files         244     244             
  Lines       47617   47766    +149     
========================================
+ Hits        38297   38535    +238     
+ Misses       9320    9231     -89

@mvines mvines added the v0.21 label Dec 6, 2019
@carllin carllin force-pushed the FixBlocktree branch 2 times, most recently from f48338e to 66d7260 Compare December 7, 2019 01:46
@carllin carllin marked this pull request as ready for review December 7, 2019 02:18
@carllin carllin merged commit b55b646 into solana-labs:master Dec 9, 2019
mergify bot pushed a commit that referenced this pull request Dec 9, 2019
Fix Erasure Index Check to set the erasure presence

(cherry picked from commit b55b646)

# Conflicts:
#	ledger/src/blocktree.rs
@mergify mergify bot mentioned this pull request Dec 9, 2019
carllin added a commit that referenced this pull request Dec 9, 2019
Fix Erasure Index Check to set the erasure presence

(cherry picked from commit b55b646)
carllin added a commit that referenced this pull request Dec 9, 2019
Fix Erasure Index Check to set the erasure presence

(cherry picked from commit b55b646)
carllin added a commit that referenced this pull request Dec 9, 2019
Fix Erasure Index Check to set the erasure presence

(cherry picked from commit b55b646)
solana-grimes pushed a commit that referenced this pull request Dec 9, 2019
behzadnouri added a commit to behzadnouri/solana that referenced this pull request Jan 5, 2025
&mut was added in:
    solana-labs#7319
because coding shreds were removed after recovering shreds.

That logic was remove in:
    solana-labs#21052
and we don't need mutable references any more.
behzadnouri added a commit to behzadnouri/solana that referenced this pull request Jan 6, 2025
&mut was added in:
    solana-labs#7319
because coding shreds were removed after recovering the erasure batch.

That logic was removed in:
    solana-labs#21052
and we don't need mutable references any more.
behzadnouri added a commit to behzadnouri/solana that referenced this pull request Jan 7, 2025
&mut was added in:
    solana-labs#7319
because coding shreds were removed after recovering the erasure batch.

That logic was removed in:
    solana-labs#21052
and we don't need mutable references any more.
behzadnouri added a commit to anza-xyz/agave that referenced this pull request Jan 7, 2025
&mut was added in:
    solana-labs#7319
because coding shreds were removed after recovering the erasure batch.

That logic was removed in:
    solana-labs#21052
and we don't need mutable references any more.
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