Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.11] Harden discard logic in ExchangeBuffer (#100636) #100683

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Oct 11, 2023

Backports the following commits to 8.11:

We can leave pages in the ExchangeBuffer if the noMoreInputs flag is set 
to true after we've checked it but before we add pages to the queue. I
can reliably reproduce the testFromLimit by inserting a delay in
between. This change hardens the discard logic by moving the check after
we've added a Page to the queue. If the noMoreInputs flag is set to
true, we will drain the pages from the queue.
@dnhatn dnhatn added :Analytics/ES|QL AKA ESQL >non-issue auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:QL (Deprecated) Meta label for query languages team labels Oct 11, 2023
@elasticsearchmachine elasticsearchmachine merged commit 9cf4fc7 into elastic:8.11 Oct 11, 2023
@dnhatn dnhatn deleted the backport/8.11/pr-100636 branch October 11, 2023 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >non-issue Team:QL (Deprecated) Meta label for query languages team v8.11.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants