Skip to content

Conversation

DonalEvans
Copy link
Contributor

Backport

This will backport the following commits from main to 9.2:

Questions ?

Please refer to the Backport tool documentation

…136577)

Prior to this change, if only one of the .inference or
.secrets-inference indices was updated when creating an inference
endpoint, the endpoint creation would fail, but the successfully written
doc was not removed, leading to inconsistent document counts between the
two indices.

This commit removes any documents that were written in the case that a
partial failure occurred, but does not change the behaviour in the case
where no updates to the indices were made.

- Invoke a cleanup listener if a partial failure occurred when storing
  inference endpoint information in the .inference and
  .secrets-inference indices
- Refactor ModelRegistry to use
  BulkRequestBuilder.add(IndexRequestBuilder) instead of the deprecated
  BulkRequestBuilder.add(IndexRequest)
- Include cause when logging bulk failure during inference endpoint
  creation
- Add integration tests for the new behaviour
- Update docs/changelog/136577.yaml

Closes elastic#123726

(cherry picked from commit 9abc0bd)
@DonalEvans DonalEvans merged commit 95aff8e into elastic:9.2 Oct 17, 2025
34 checks passed
@DonalEvans DonalEvans deleted the backport/9.2/pr-136577 branch October 17, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants