Skip to content

[8.19] Use new source loader when lower docId is accessed (#128320) #128408

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

Merged

Conversation

parkertimmins
Copy link
Contributor

Backports the following commits to 8.19:

When using synthetic source, runtime fields data may come from doc values. Doc values iterators can only be read once, and in increasing docId order. But if a runtime field is referenced multiple times in a query, currently the same doc value iterator will be used. This causes an error, as the second field reference will attempt to read the same iterator from a lower docId than was previously used. The fix is to create a new source loader, and thus a new doc value iterator, if the requested docId is lower than the last seen docId.
@parkertimmins parkertimmins added :StorageEngine/Codec >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:StorageEngine labels May 23, 2025
@elasticsearchmachine elasticsearchmachine merged commit c32b447 into elastic:8.19 May 23, 2025
15 checks passed
@parkertimmins parkertimmins deleted the backport/8.19/pr-128320 branch May 23, 2025 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :StorageEngine/Codec Team:StorageEngine v8.19.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants