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 when creating indexes #4555

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

rnewson
Copy link
Member

@rnewson rnewson commented Apr 27, 2023

two concurrent attempts to create the same index can fail (in our case this is the fabric rpc worker racing against the ken worker). take a lock to prevent this, but use a striped pattern to allow some concurrency between independent index creations.

Copy link
Contributor

@nickva nickva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Should we re-enable ken building the index in the test?

@rnewson rnewson force-pushed the nouveau-race-condition-creating-index branch 2 times, most recently from a6951fb to d4f7fd4 Compare April 27, 2023 22:10
@rnewson rnewson force-pushed the nouveau-race-condition-creating-index branch from d4f7fd4 to 23dfab5 Compare April 27, 2023 22:19
@rnewson rnewson merged commit 6f4711f into main Apr 27, 2023
@rnewson rnewson deleted the nouveau-race-condition-creating-index branch April 27, 2023 23:03
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.

None yet

2 participants