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 race condition in initial point sync #729

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

aprudhomme
Copy link
Contributor

Apply some fixes to the initial nrt point sync

  • Update the curVersion after the copy job completes, to ensure the latest version is used in the while condition. Otherwise, there may be an extra loop iteration/copy job run.
  • Use the primary index version instead of MAX_VALUE to start the copy job. This was initially done to ensure a job always starts, but this can cause issues if a new job is created when the index version has not changed on the primary.
  • Add version logging to the job start log line

@aprudhomme aprudhomme merged commit 06790b7 into Yelp:main Sep 25, 2024
1 check passed
aprudhomme added a commit to aprudhomme/nrtsearch that referenced this pull request Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants