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

beacon/light: fix shutdown issues #29946

Merged
merged 4 commits into from
Jun 12, 2024
Merged

Conversation

zsfelfoldi
Copy link
Contributor

This PR fixes shutdown/server disconnection issues in the beacon light syncer:

  • as described in Crash on stopping geth w/ blsync #29915 the server event stream crashed during shutdown; this issue was simply caused by a double call to stream.Close().
  • the server implementation in beacon/light/request did not handle server disconnection properly. If an event callback arrived after unsubscribing from server events (shutdown occured while a request was pending) the server called the removed (nil) callback function. Also, the unsubscription from the parent was called while the server mutex was locked, which was both unnecessary and wrong because it broke the normal locking order (Scheduler -> serverWithLimits -> serverWithTimeout -> ApiServer) sometimes causing a deadlock during shutdown.

@fjl fjl merged commit 86150af into ethereum:master Jun 12, 2024
3 checks passed
@gballet gballet added this to the 1.14.6 milestone Jul 2, 2024
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.

3 participants