-
Notifications
You must be signed in to change notification settings - Fork 20.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ethclient/simulated: add goroutine leak test #31033
Merged
fjl
merged 1 commit into
ethereum:master
from
jwasinger:simulated-backend-gr-leak-check
Feb 25, 2025
Merged
ethclient/simulated: add goroutine leak test #31033
fjl
merged 1 commit into
ethereum:master
from
jwasinger:simulated-backend-gr-leak-check
Feb 25, 2025
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
f802e0e
to
fbd661b
Compare
Currently these are the leaked go-routines that do not have PRs open to fix them:
|
cd31eac
to
c50e6ba
Compare
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.
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.
5de3b7c
to
1e30cbb
Compare
…ulated backend doesn't leak goroutines
0b2ff28
to
5edadd8
Compare
# for free
to join this conversation on GitHub.
Already have an account?
# 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)