Skip to content

Backends should access files safely #34

@DanielRJohnson

Description

@DanielRJohnson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions