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

bugfix: fix Resubscribe deadlock when unsubscribing after inner sub ends #76

Merged
merged 3 commits into from
Mar 29, 2024

Conversation

welkin22
Copy link
Contributor

Description

See ethereum-optimism/optimism#8086
We encountered the same issue, where a deadlock caused op-node to be unable to gracefully shutdown.
Therefore, we need to introduce this fix as soon as possible to resolve our current op-node issue.

Rationale

op-node uses the ResubscribeErr method, but the size of the unsubscribed channel is 0, causing a deadlock during the shutdown process.

Example

none

Changes

Notable changes:

  • fix ResubscribeErr method issue
  • add ut

Copy link
Contributor

@andyzhang2023 andyzhang2023 left a comment

Choose a reason for hiding this comment

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

Seams good.

@welkin22 welkin22 merged commit d6fbbc7 into bnb-chain:develop Mar 29, 2024
1 check passed
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