-
Notifications
You must be signed in to change notification settings - Fork 502
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
ingest/ledgerbackend: getLogLineWriter() leaks goroutines and pipes #5342
Comments
Discovered while investigating failing tests at stellar/stellar-rpc#207 |
I think |
It looks like there are a few createCmd calls where we do not close the log line writers:
go/ingest/ledgerbackend/stellar_core_runner.go Lines 400 to 404 in a4e5a3f
|
Merged
2opremio
added a commit
to 2opremio/soroban-rpc
that referenced
this issue
Jun 18, 2024
Add a workaround for stellar/go#5342 , which is causing a race in integration tests.
2opremio
added a commit
to 2opremio/soroban-rpc
that referenced
this issue
Jun 18, 2024
Add a workaround for stellar/go#5342 , which is causing a race in integration tests.
2opremio
added a commit
to 2opremio/soroban-rpc
that referenced
this issue
Jun 18, 2024
Add a workaround for stellar/go#5342 , which is causing a race in integration tests.
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
getLogLineWriter()
creates a pipe and a goroutine, but the goroutine sometimes doesn't exit (and the pipe is never released).Every time captive core is restarted this causes a leak.
The easiest fix is probably returning a
CloseWriter
and making sure that the writer is closed (releasing the pipe and the goroutine).The text was updated successfully, but these errors were encountered: