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

Do not panic if initial sync fails #4477

Merged
merged 6 commits into from Jan 10, 2020
Merged

Do not panic if initial sync fails #4477

merged 6 commits into from Jan 10, 2020

Conversation

mcdee
Copy link
Contributor

@mcdee mcdee commented Jan 10, 2020

This (hasty) patch stops a panic if a node is interrupted during initial sync and as such doesn't complete sync. Sync will end without being marked as complete and will continue next run.

nisdas
nisdas previously approved these changes Jan 10, 2020
@codecov
Copy link

codecov bot commented Jan 10, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@ae2f788). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #4477   +/-   ##
=========================================
  Coverage          ?   42.51%           
=========================================
  Files             ?      193           
  Lines             ?    12842           
  Branches          ?        0           
=========================================
  Hits              ?     5460           
  Misses            ?     6459           
  Partials          ?      923

@mcdee
Copy link
Contributor Author

mcdee commented Jan 10, 2020

Additional fixes for handling sync issues:

  • when considering the peers to use in BestFinalized ignore any that are at an earlier epoch than us
  • when counting peers against which we will sync use our selection method to count them rather than just the number of active peers
  • ensure that we still work if the user-supplied min-sync-peers is higher than the system-defined maximum

@prylabs-bulldozer prylabs-bulldozer bot merged commit 22a3bf5 into prysmaticlabs:master Jan 10, 2020
@mcdee mcdee deleted the mvlog branch January 10, 2020 21:41
prestonvanloon added a commit that referenced this pull request Jan 15, 2020
prylabs-bulldozer bot pushed a commit that referenced this pull request Jan 15, 2020
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 24, 2020
* Do not panic if initial sync fails
* Only consider peers with non-0 finalized epoch
* Additional fixes
* Fix tests
* Merge branch 'master' into mvlog
* Merge branch 'master' into mvlog
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 24, 2020
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 28, 2020
* Do not panic if initial sync fails
* Only consider peers with non-0 finalized epoch
* Additional fixes
* Fix tests
* Merge branch 'master' into mvlog
* Merge branch 'master' into mvlog
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants