Skip to content

Conversation

@jimczi
Copy link
Contributor

@jimczi jimczi commented Mar 18, 2025

Backports the following commits to 8.19:

This commit integrates `MinimalServiceSettings` (introduced in elastic#120560) into the cluster state for all registered models in the `ModelRegistry`.
These settings allow consumers to access configuration details without requiring asynchronous calls to retrieve full model configurations.

To ensure consistency, the cluster state metadata must remain synchronized with the models in the inference index.
If a mismatch is detected during startup, the master node performs an upgrade to load all model settings from the index.
jimczi added 5 commits March 19, 2025 20:22
…ic#125242)

When retrieving a default inference endpoint for the first time, the system automatically creates the endpoint.
However, unlike the `put inference model` action, the `get` action does not redirect the request to the master node.

Since elastic#121106, we rely on the assumption that every model creation (`put model`) must run on the master node, as it modifies the cluster state. However, this assumption led to a bug where the get action tries to store default inference endpoints from a different node.

This change resolves the issue by preventing default inference endpoints from being added to the cluster state. These endpoints are not strictly needed there, as they are already reported by inference services upon startup.

**Note:** This bug did not prevent the default endpoints from being used, but it caused repeated attempts to store them in the index, resulting in logging errors on every usage.
@jimczi jimczi added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Mar 20, 2025
@elasticsearchmachine elasticsearchmachine merged commit 7794914 into elastic:8.x Mar 20, 2025
15 checks passed
@jimczi jimczi deleted the backport_121106_8_x branch March 20, 2025 09:29
jimczi added a commit to jimczi/elasticsearch that referenced this pull request Mar 20, 2025
ModelRegistryMetadata has now been backported to 8.19 via elastic#125150. This update ensures that we properly differentiate between nodes running 8.19.x (which supports the new custom metadata) and 9.0.x (which does not).
To achieve this, this PR introduces a new `supportsVersion(TransportVersion)` method for `NamedWriteable` and `NamedDiff`, allowing subclasses to customize their backward compatibility behavior.
jimczi added a commit that referenced this pull request Mar 21, 2025
ModelRegistryMetadata has now been backported to 8.19 via #125150. This update ensures that we properly differentiate between nodes running 8.19.x (which supports the new custom metadata) and 9.0.x (which does not).
To achieve this, this PR introduces a new `supportsVersion(TransportVersion)` method for `NamedWriteable` and `NamedDiff`, allowing subclasses to customize their backward compatibility behavior.
afoucret pushed a commit to afoucret/elasticsearch that referenced this pull request Mar 21, 2025
ModelRegistryMetadata has now been backported to 8.19 via elastic#125150. This update ensures that we properly differentiate between nodes running 8.19.x (which supports the new custom metadata) and 9.0.x (which does not).
To achieve this, this PR introduces a new `supportsVersion(TransportVersion)` method for `NamedWriteable` and `NamedDiff`, allowing subclasses to customize their backward compatibility behavior.
smalyshev pushed a commit to smalyshev/elasticsearch that referenced this pull request Mar 21, 2025
ModelRegistryMetadata has now been backported to 8.19 via elastic#125150. This update ensures that we properly differentiate between nodes running 8.19.x (which supports the new custom metadata) and 9.0.x (which does not).
To achieve this, this PR introduces a new `supportsVersion(TransportVersion)` method for `NamedWriteable` and `NamedDiff`, allowing subclasses to customize their backward compatibility behavior.
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
ModelRegistryMetadata has now been backported to 8.19 via elastic#125150. This update ensures that we properly differentiate between nodes running 8.19.x (which supports the new custom metadata) and 9.0.x (which does not).
To achieve this, this PR introduces a new `supportsVersion(TransportVersion)` method for `NamedWriteable` and `NamedDiff`, allowing subclasses to customize their backward compatibility behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >enhancement :ml Machine learning v8.19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants