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

Parallel runs of pack instances are not synronised and can lead to inconsistent state #278

Open
buzden opened this issue Feb 8, 2024 · 0 comments
Labels
problem Something isn't working

Comments

@buzden
Copy link
Collaborator

buzden commented Feb 8, 2024

Different instances of pack can change files inside $PACK_DIR. Sometimes, especially when there is a need of updating $PACK_DIR/.cache, they are trying to do same things on the same files.

We can try to synchronise some operations like caching and installing using file-system-based synchonisations. The most portable way that I know is mkdir. The most convenient way is flock, but I think it is available mostly on Linux machines.

Anyway, we need to think of the design of this, I mean how to determine when do we need to synchronise and at what granularity.

@buzden buzden added the problem Something isn't working label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant