Skip to content

Conversation

@stefreak
Copy link
Contributor

@stefreak stefreak commented May 16, 2025

What this PR does / why we need it:
We've seen some users encountering error messages when Garden couldn't
acquire the config store lock.

We're already preventing data corruption on concurrent modification by
relying on atomically writing by creating a new file and moving it.

This commit changes the lock mechanism to only protect concurrent writes
from the same garden process, but we accept data loss in the unlikely
event another garden process also updates the config store at the same
time (one of the writes will win).

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

We've seen some users encountering error messages when Garden couldn't
acquire the config store lock.

We're already preventing data corruption on concurrent modification by
relying on atomically writing by creating a new file and moving it.

This commit changes the lock mechanism to only protect concurrent writes
from the same garden process, but we accept data loss in the unlikely
event another garden process also updates the config store at the same
time (one of the writes will win).
@stefreak stefreak requested review from thsig, trymbill and vvagaytsev May 16, 2025 07:39
@stefreak stefreak enabled auto-merge May 16, 2025 07:51
@stefreak stefreak added this pull request to the merge queue May 16, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 16, 2025
@vvagaytsev vvagaytsev added this pull request to the merge queue May 16, 2025
Merged via the queue into main with commit c78183e May 16, 2025
38 checks passed
@vvagaytsev vvagaytsev deleted the remove-configstore-filelock branch May 16, 2025 09:25
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.

3 participants