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

Enforce file locks on cache files. #3336

Merged
merged 1 commit into from
Sep 6, 2023
Merged

Conversation

thallgren
Copy link
Member

Description

Introduces a new lockedFS to the dos package that uses the rogpeppe clone of the go internal lockedfile package to do advisory locking on the files. The Telepresence cache then uses this file system for all file accesses in the cache.

Checklist

  • I made sure to update ./CHANGELOG.yml.
  • I made sure to add any docs changes required for my change (including release notes).
  • My change is adequately tested.
  • I updated DEVELOPING.md with any special dev tricks I had to use to work on this code efficiently.
  • I updated TELEMETRY.md if I added, changed, or removed a metric name.
  • Once my PR is ready to have integration tests ran, I posted the PR in #telepresence-dev in the datawire-oss slack so that the "ok to test" label can be applied.

Introduces a new `lockedFS` to the `dos` package that uses the
rogpeppe clone of the go internal `lockedfile` package to do advisory
locking on the files. The Telepresence cache then uses this file system
for all file accesses in the cache.

Signed-off-by: Thomas Hallgren <thomas@datawire.io>
@thallgren thallgren linked an issue Sep 6, 2023 that may be closed by this pull request
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Sep 6, 2023
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Sep 6, 2023
@thallgren thallgren requested review from a team and josecv and removed request for a team September 6, 2023 10:05
@thallgren thallgren self-assigned this Sep 6, 2023
@thallgren thallgren merged commit e4c0691 into release/v2 Sep 6, 2023
15 checks passed
@thallgren thallgren deleted the thallgren/locked-cache branch September 6, 2023 19:37
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.

Add process wide concurrency protection to Telepresence cache files.
2 participants