Skip to content

[8.x] Cleanup swapSourceProvider(...) workaround (#118480)#120095

Merged
martijnvg merged 1 commit intoelastic:8.xfrom
martijnvg:backport/8.x/pr-118480
Jan 15, 2025
Merged

[8.x] Cleanup swapSourceProvider(...) workaround (#118480)#120095
martijnvg merged 1 commit intoelastic:8.xfrom
martijnvg:backport/8.x/pr-118480

Conversation

@martijnvg
Copy link
Copy Markdown
Member

Backports the following commits to 8.x:

This reverts the workaround that was introduced in elastic#117792 to avoid EOF error when an es|ql query uses multiple runtime fields that fallback to source when source mode is synthetic. This is now covered by the ReinitializingSourceProvider workaround that covers that and the concurrency problem. With this change, the main code for the required workarounds are now in isolated in ReinitializingSourceProvider.

Additional another in `ReinitializingSourceProvider` was fixed, the issue was the lastSeenDoc field was reused overwritten by different threads, the latest commit moves the lastSeenDoc field to PerThreadSourceProvider so that each thread gets its own place to store the last seen docid.
@martijnvg martijnvg added :StorageEngine/Mapping The storage related side of mappings >non-issue auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:StorageEngine labels Jan 14, 2025
@martijnvg martijnvg removed the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jan 14, 2025
@martijnvg martijnvg merged commit 10100a9 into elastic:8.x Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants