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

Race condition in ubelt.Cacher #163

Open
Erotemic opened this issue Dec 16, 2024 · 0 comments
Open

Race condition in ubelt.Cacher #163

Erotemic opened this issue Dec 16, 2024 · 0 comments

Comments

@Erotemic
Copy link
Owner

Describe the bug
There is a race condition in ubelt.Cacher if two processes or threads are trying to compute the same cached data.

This may or may not be ubelt's responsibility to deal with. We could offer mitigating features like optional use of safer when writing the cache file, or optional use of thread / inter process locks. This might add too much complexity to the cacher in terms of dependencies, but maybe not. Need to evaluate more.

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