-
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: Stopping captive core can be slow #5349
Comments
For context: I found this during an integration test which spends most of the time waiting for captive core to close |
Uhm, actually moving the For more context, core was trying to
|
I think the issue is that there is a code path where we execute go/ingest/ledgerbackend/stellar_core_runner.go Lines 400 to 412 in a4e5a3f
In that code path we do not abort the |
yes, I think we need to also move the cancel before acquiring the lock |
Great analysis, thanks! |
We only cancel the running processes after acquiring the lock (which can be really slow in some cases)
I don't know if it's safe to cancel before acquiring the lock (I bet it is) or if we can reduce the critical sections around the lock.
Related to #5347 ?
The text was updated successfully, but these errors were encountered: