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

Save init sync cached blocks before regenerate state #5501

Merged
merged 6 commits into from
Apr 18, 2020

Conversation

terencechain
Copy link
Member

This fixes #5496

Right after initial syncing, during request block parent phase, there could be an overlapping time where the initial sync blocks are still preserved in cache and not yet getting saved in the DB. This force saves the cached initial sync blocks to DB when a node needs to regenerate the state

@terencechain terencechain requested a review from a team as a code owner April 18, 2020 22:28
@terencechain terencechain self-assigned this Apr 18, 2020
@terencechain terencechain added Ready For Review A pull request ready for code review Priority: Critical Highest, immediate priority item labels Apr 18, 2020
@codecov
Copy link

codecov bot commented Apr 18, 2020

Codecov Report

Merging #5501 into master will decrease coverage by 14.27%.
The diff coverage is 30.00%.

@@             Coverage Diff             @@
##           master    #5501       +/-   ##
===========================================
- Coverage   55.13%   40.85%   -14.28%     
===========================================
  Files         307      237       -70     
  Lines       25791    20227     -5564     
===========================================
- Hits        14219     8264     -5955     
- Misses       9573    10445      +872     
+ Partials     1999     1518      -481     

@prylabs-bulldozer prylabs-bulldozer bot merged commit c3217ab into master Apr 18, 2020
@delete-merged-branch delete-merged-branch bot deleted the save-blocks-before-gen-state branch April 18, 2020 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Critical Highest, immediate priority item Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Beacon Node Restarts with New State Mgmt Causes Chain Stall
2 participants