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

Drivers should access files safely #34

Open
DanielRJohnson opened this issue Jun 22, 2023 · 0 comments
Open

Drivers should access files safely #34

DanielRJohnson opened this issue Jun 22, 2023 · 0 comments

Comments

@DanielRJohnson
Copy link
Collaborator

There is a potential point of failure of backend file access in the following scenarios:

  • Another user program is using a backend file (Probably not advised, but possible)
  • Multiple instances of DSI are trying to read/write from the same file on a shared filesystem at the same time (Very possible)

There are a couple ways of solving this:

  • Have each driver implementation be responsible for the stability of its file accesses
  • Have a method somewhere higher up in the driver hierarchy that enables safety (locks, retries, etc.)
    I believe the latter is the better idea. Maybe there are other better solutions as well, these are just ideas.
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