Skip to content

atomicity and thread safety #40

Description

@leoyala

dstrack creates snapshots mainly from the CLI. This could create clashes and incorrect snapshots in the following scenarios:

  1. Usre launches a snapshot creation, user modified underlying data while snapshot is being computed.
  2. User launches dstrack across threads or processes.

Potential solution:
Implement file locking, to make threads and processes wait for file to be unlocked before creating a snapshot. The file should only be released by dstrack after a snapshot is created. It should still be possible to give users control of this behavior in case they can ensure that files are not modified during snapshot creation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions