Skip to content

Conversation

@jan-elastic
Copy link
Contributor

No description provided.

@jan-elastic jan-elastic requested a review from davidkyle October 16, 2024 12:10
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.0.0 labels Oct 16, 2024
var errorResult = new ErrorChunkedInferenceResults(e);
for (var pos : positions) {
errors.setOnce(pos.inputIndex(), errorResult);
errors.set(pos.inputIndex(), errorResult);
Copy link
Contributor Author

@jan-elastic jan-elastic Oct 16, 2024

Choose a reason for hiding this comment

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

Multiple chunks of the same input text can fail. In that case pos.inputIndex is the same and setOnce fails, leading to Elasticsearch crashing.

@jan-elastic jan-elastic added :ml Machine learning Team:ML Meta label for the ML team >non-issue v8.16.0 and removed needs:triage Requires assignment of a team area label labels Oct 16, 2024
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Member

@dan-rubinstein dan-rubinstein left a comment

Choose a reason for hiding this comment

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

LGTM

@jan-elastic jan-elastic added the auto-backport Automatically create backport pull requests when merged label Oct 16, 2024
@jan-elastic jan-elastic merged commit 0cd306f into main Oct 16, 2024
17 checks passed
@jan-elastic jan-elastic deleted the fix-setOnce-EmbeddingRequestChunker branch October 16, 2024 13:25
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

The backport operation could not be completed due to the following error:

An unexpected error occurred when attempting to backport this PR.

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 114900

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged backport pending :ml Machine learning >non-issue Team:ML Meta label for the ML team v8.16.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants