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

Resolve panic on shutdown with offline eth1 node #8033

Merged
merged 6 commits into from
Dec 7, 2020

Conversation

shayzluf
Copy link
Contributor

@shayzluf shayzluf commented Dec 3, 2020

Bug fix

What does this PR do? Why is it needed?
When a node that already had a genesis state is started with an offline eth1 node it panics on shutdown somtimes.
this Pr aims to fix this issue

Which issues(s) does this PR fix?

Fixes #8014

@shayzluf shayzluf requested a review from a team as a code owner December 3, 2020 09:49
@shayzluf shayzluf self-assigned this Dec 3, 2020
@shayzluf shayzluf added the Ready For Review A pull request ready for code review label Dec 3, 2020
Copy link
Member

@nisdas nisdas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please handle this in the appropriate place, we initiate our main eth1 event loop after the context is cancelled. The correct thing would be to check this in the correct place which is after
https://github.com/prysmaticlabs/prysm/blob/develop/beacon-chain/powchain/service.go#L257

@shayzluf shayzluf removed the Ready For Review A pull request ready for code review label Dec 3, 2020
@prestonvanloon prestonvanloon marked this pull request as draft December 4, 2020 23:01
@shayzluf shayzluf requested a review from nisdas December 7, 2020 09:16
@shayzluf shayzluf marked this pull request as ready for review December 7, 2020 09:30
@shayzluf
Copy link
Contributor Author

shayzluf commented Dec 7, 2020

@nisdas thanks
fixed

@prylabs-bulldozer prylabs-bulldozer bot merged commit fbbdd94 into develop Dec 7, 2020
@delete-merged-branch delete-merged-branch bot deleted the panic_on_shutdown_fix branch December 7, 2020 10:16
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.

Panic on shutdown with failed eth1 connection
2 participants