-
Notifications
You must be signed in to change notification settings - Fork 20.5k
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
ethclient/simulated: add test case to ensure that a simulated backend does not leak go-routines after being closed #31033
Open
jwasinger
wants to merge
7
commits into
ethereum:master
Choose a base branch
from
jwasinger:simulated-backend-gr-leak-check
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
ethclient/simulated: add test case to ensure that a simulated backend does not leak go-routines after being closed #31033
jwasinger
wants to merge
7
commits into
ethereum:master
from
jwasinger:simulated-backend-gr-leak-check
+22
−0
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jwasinger
force-pushed
the
simulated-backend-gr-leak-check
branch
from
January 15, 2025 09:20
f802e0e
to
fbd661b
Compare
jwasinger
changed the title
ethclient/simulated: add test case to ensure that instantiation of a simulated backend does not leak go-routines.
ethclient/simulated: add test case to ensure that a simulated backend does not leak go-routines after being closed
Jan 15, 2025
Currently these are the leaked go-routines that do not have PRs open to fix them:
|
jwasinger
force-pushed
the
simulated-backend-gr-leak-check
branch
2 times, most recently
from
January 20, 2025 10:46
cd31eac
to
c50e6ba
Compare
jwasinger
force-pushed
the
simulated-backend-gr-leak-check
branch
from
January 21, 2025 08:35
53787e3
to
79f067d
Compare
fjl
pushed a commit
that referenced
this pull request
Jan 21, 2025
) Discovered from failing test introduced #31033 . We should ensure `timeoutLoop` terminates if the filter event system is terminated.
jwasinger
force-pushed
the
simulated-backend-gr-leak-check
branch
from
January 21, 2025 12:32
79f067d
to
c7bdcca
Compare
Out of curiosity is there reason why you went for a custom solution rather than goleak which the OP used? |
@s1na I was under the impression that the library wasn't sufficient for the case here, but looking into the documentation further: it definitely is and we should use it to simplify this PR. |
sebastianst
pushed a commit
to ethereum-optimism/op-geth
that referenced
this pull request
Jan 23, 2025
…056) Discovered from failing test introduced ethereum/go-ethereum#31033 . We should ensure `timeoutLoop` terminates if the filter event system is terminated.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a basic sanity test case to catch any go-routines leaked from instantiation/closing of a simulated backend (as reported in #31022)