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

Migrate resutIndex and requestIndex state inconsistency issue #174

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

penghuo
Copy link
Collaborator

@penghuo penghuo commented Nov 22, 2023

Description

  • Add sleep 2 seconds between write result index and update state.
    • choose 2 seconds because by default index refresh interval is 1s. add 1s as buffer.
    • sleep 2s does not impact current query latency.
    • sleep 2s increase query latency of query in waiting state. we does not expect much query in the queue, we accept this risk for now.
  • It is a migration plan, it does fix the bug.
  • Test with script and spark, 50 times, not issue found.

More detail in #171

Issues Resolved

#171

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.

@penghuo penghuo added the enhancement New feature or request label Nov 22, 2023
@penghuo penghuo self-assigned this Nov 22, 2023
@penghuo penghuo merged commit be82024 into opensearch-project:main Nov 22, 2023
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants