Skip to content

Conversation

@jan-elastic
Copy link
Contributor

Fixes #137134

@jan-elastic jan-elastic added >bug :ml Machine learning Team:ML Meta label for the ML team v9.3.0 labels Oct 28, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@elasticsearchmachine
Copy link
Collaborator

Hi @jan-elastic, I've created a changelog YAML for you.

@jan-elastic jan-elastic force-pushed the preserve-0-alloc-deployments-in-planning branch from 552761f to b506b2e Compare October 28, 2025 12:43
Copy link
Contributor

@jonathan-buttner jonathan-buttner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did some manual testing and confirmed this works. I'll do some more testing tomorrow as well though 👍

Copy link
Contributor

@valeriy42 valeriy42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on figuring out the bug! 🚀 You have my approve. ✅ I left a couple of non-essential comments and suggestions.


Map<Node, List<Tuple<Deployment, Integer>>> nodeToModel = new HashMap<>();
for (Deployment m : assignments.keySet()) {
for (Node n : assignments.get(m).keySet()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for (Node n : assignments.get(m).keySet()) { // Note: zero-allocation deployments are not printed

nit: zero-allocation deployments will have an empty map. So they won't be pretty-printed. Maybe either comment this nuance or extend prettyPrint() to handle zero-allocation deployments as well.

@jan-elastic jan-elastic force-pushed the preserve-0-alloc-deployments-in-planning branch from b506b2e to cbe6923 Compare October 31, 2025 13:03
@jan-elastic jan-elastic merged commit f3cc558 into elastic:main Oct 31, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :ml Machine learning Team:ML Meta label for the ML team v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ML] Old trained model deployment got deleted unexpectedly after a new one is added through inference API

5 participants