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.x] Fix issues with ReinitializingSourceProvider (#118370) #118431

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

martijnvg
Copy link
Member

Backports the following commits to 8.x:

The previous fix to ensure that each thread uses its own SearchProvider wasn't good enough.  The read from `perThreadProvider` field could be stale and therefore returning a previous source provider.  Instead the source provider should be returned from `provider` local variable.

This change also addresses another issue, sometimes current docid goes backwards compared to last seen docid and this causes issue when synthetic source provider is used, as doc values can't advance backwards. This change addresses that by returning a new source provider if backwards docid is detected.

Closes elastic#118238
@martijnvg martijnvg added :StorageEngine/Mapping The storage related side of mappings >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:StorageEngine labels Dec 11, 2024
@martijnvg
Copy link
Member Author

@elasticmachine run elasticsearch-ci/part-3

@martijnvg
Copy link
Member Author

@elasticmachine update branch

@martijnvg
Copy link
Member Author

@elasticmachine run elasticsearch-ci/part-3

@elasticsearchmachine elasticsearchmachine merged commit e1d83e9 into elastic:8.x Dec 11, 2024
14 checks passed
@martijnvg martijnvg deleted the backport/8.x/pr-118370 branch December 11, 2024 18:21
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/Mapping The storage related side of mappings Team:StorageEngine v8.18.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants