-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[ML] Preserve lost thread context in node inference action #132973
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
Conversation
Pinging @elastic/ml-core (Team:ML) |
Hi @davidkyle, I've created a changelog YAML for you. |
The thread context was meant to be preserved by this code Line 49 in f1b48de
However there are 2 problems with that:
Anomaly detection uses the same |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this locally and it is working. Dave and I chatted about how to create a end to end test for this. We'll follow up on that later.
…32973) Fixes a memory leak if APM tracing is enabled as the lost context meant the trace was never closed and the span never released
…32973) Fixes a memory leak if APM tracing is enabled as the lost context meant the trace was never closed and the span never released
…32973) Fixes a memory leak if APM tracing is enabled as the lost context meant the trace was never closed and the span never released
…32973) Fixes a memory leak if APM tracing is enabled as the lost context meant the trace was never closed and the span never released
…32973) Fixes a memory leak if APM tracing is enabled as the lost context meant the trace was never closed and the span never released
If APM tracing is enabled the lost context meant the trace was never stopped and the span never released. After many calls to the action this small memory leak can amount to a substantial amount of memory potentially causing out of memory errors.