Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions docs/changelog/154972.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
area: ES|QL
issues:
- 154866
pr: 154972
summary: Addressing inference timeout issues on inference operator tests
type: bug
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,10 @@ public BulkInferenceRequestItem pollNextRequest() {
}

synchronized (checkpoint) {
if (requestItemIterator.hasNext() == false) {
// Re-check under the lock: completeIfFinished() releases the request iterator (and its backing block) while holding
// this lock when a failure occurs. Without re-checking, a concurrent poller that passed the guard above could invoke
// requestItemIterator.next() on an already-released block. See https://github.com/elastic/elasticsearch/issues/154866

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

shoudl we remove mention of the issue here: "#154866" and keep comment general overall.

if (hasFailure() || completed.get() || requestItemIterator.hasNext() == false) {
return null;
}

Expand Down
Loading