Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ private ElasticsearchStatusException unexpectedResultTypeException(String got, S
public void onFailure(Exception e) {
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.

}

if (resultCount.incrementAndGet() == totalNumberOfRequests) {
Expand Down
Loading