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

Use flock to guard against concurrent cache access #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

samliddicott
Copy link

Lock the local dir with flock -Fs for shared read locks and flock -Fx when updating

This prevents certain failure at concurrency >=5 and succedes past concurrency of 70

Change-Id: I5beda9168b13b0525dc108c2ca85f9d21e126780

Lock the `local` dir with `flock -Fs` for shared read locks
and `flock -Fx` when updating

This prevents certain failure at concurrency >=5 and succedes past
concurrency of 70

Change-Id: I5beda9168b13b0525dc108c2ca85f9d21e126780
@jacobschloss
Copy link

I've had some trouble with the cache server seeming to corrupt already-cached repos on client fetch/update with 6 CI machines. I'll try this patch out.

@samliddicott
Copy link
Author

I've had some trouble with the cache server seeming to corrupt already-cached repos on client fetch/update with 6 CI machines. I'll try this patch out.

Did it help @jacobschloss ?

@jacobschloss
Copy link

jacobschloss commented Sep 25, 2024

It helped, decreased from near constant corruption to maybe once every few weeks (6 machines on either 10G or 25G LAN).

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