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

Consider possible race condition when registering keys #14

Open
srtfisher opened this issue Dec 3, 2022 · 0 comments
Open

Consider possible race condition when registering keys #14

srtfisher opened this issue Dec 3, 2022 · 0 comments

Comments

@srtfisher
Copy link
Member

A race condition is possible when registering meta keys across requests to the same collection. Consider an alternative approach to storage that uses sharded meta keys to store keys.

From @dlh01 in #11:

The use of a single array of keys is still, I think, subject to the race condition that you and Boynes discussed in Slack. However, using the metadata API allows for a possible workaround: for each key, store a separate meta row. That way, concurrent requests would write to their own rows, not the same row? I haven't played that all the way out in my head, so maybe it's a dead end.

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

No branches or pull requests

1 participant