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

[Searchable Snapshots] Correctly clone IndexInputs to avoid race #6367

Merged
merged 1 commit into from
Feb 20, 2023

Commits on Feb 20, 2023

  1. Correctly clone IndexInputs to avoid race

    In PR opensearch-project#6345 I did remove a duplicate clone, however this resulted in
    cloning the IndexInput in the wrong place. When requesting a file that
    needs to be downloaded, we have a mechanism to ensure that concurrent
    calls do not end up duplicating the download, which results in multiple
    threads being given the same instance. The clone must happen _after_
    this point to ensure that each thread gets its own clone.
    
    Signed-off-by: Andrew Ross <andrross@amazon.com>
    andrross committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    c168022 View commit details
    Browse the repository at this point in the history