Skip to content

[ML] Release cluster state (#136769)#136835

Merged
prwhelan merged 1 commit intoelastic:8.19from
prwhelan:fix/8.19/136769
Oct 20, 2025
Merged

[ML] Release cluster state (#136769)#136835
prwhelan merged 1 commit intoelastic:8.19from
prwhelan:fix/8.19/136769

Conversation

@prwhelan
Copy link
Member

Backporting #136769

This is not a clean backport. ProjectMetadata.Custom had not replaced Metadata.Custom until 9.0, so we have to remove the Project-specific code for accessing custom metadata.

Refactoring TransportMlMemoryAction to not retain cluster state through
the lifecycle of the request so that it can be garbage collected as soon
as possible.

Fix elastic#123243
@prwhelan prwhelan added >bug :ml Machine learning backport Team:ML Meta label for the ML team v8.19.6 labels Oct 20, 2025
@prwhelan prwhelan marked this pull request as ready for review October 20, 2025 19:37
@prwhelan prwhelan enabled auto-merge (squash) October 20, 2025 19:48
@prwhelan prwhelan merged commit 8639ddf into elastic:8.19 Oct 20, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport >bug :ml Machine learning Team:ML Meta label for the ML team v8.19.6

2 participants