Skip to content

Conversation

@dnhatn
Copy link
Member

@dnhatn dnhatn commented Feb 6, 2025

Backports the following commits to 9.0:

Today, the exchange buffer of an exchange source is finished in two 
cases: (1) when the downstream pipeline has received enough data and (2)
when all remote sinks have completed. In the first case, outstanding
pages could be safely discarded. In the second case, no new pages should
be received after finishing. In both scenarios, discarding all
outstanding pages was safe if noMoreInputs was switched while adding
pages.

However, with the stop API, the buffer may now finish while keeping 
outstanding pages, and new pages may still be received. This change
updates the exchange buffer to discard only the incoming page when
noMoreInputs is switched, rather than all pages in the buffer.

Closes elastic#120757
@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:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Feb 6, 2025
@elasticsearchmachine elasticsearchmachine merged commit 67dffc9 into elastic:9.0 Feb 6, 2025
16 checks passed
@dnhatn dnhatn deleted the backport/9.0/pr-121857 branch February 6, 2025 16:22
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:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.0.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants