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

Fix data race which can occur when using script and derived expression features with concurrent segment search #54

Conversation

jhinch-at-atlassian-com

Description

A candidate fix as discussed in #52. It is implemented using thread locals to share state between nested data structures in order to share common statistics such as the terms stats and feature vector

Issues Resolved

Fixes: #52

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…n features with concurrent segment search

Signed-off-by: Jason Hinch <jhinch@atlassian.com>
@sstults sstults merged commit 0220ef8 into opensearch-project:main Oct 29, 2024
5 checks passed
sstults pushed a commit to sstults/opensearch-learning-to-rank-base that referenced this pull request Oct 31, 2024
…n features with concurrent segment search (opensearch-project#54)

Signed-off-by: Jason Hinch <jhinch@atlassian.com>
Signed-off-by: Scott Stults <sstults@opensourceconnections.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants