Skip to content

Check on race conditionsΒ #268

@jrising

Description

@jrising

Assume that there will be many (>10) threads with separate API instances, which may (though I try to avoid it) be near the same execution step in their use of DataFS. Please check that the following scenarios are handled gracefully:

  1. One instance begins downloading file A, and the next moment another instance requests the same file.

  2. Instance 1 checks for file A and determines that it does not need to download it because it is already in the cache; before it has a chance to copy it out, instance 2 deletes file A from the cache.

  3. Instance 1 is repeatedly accessing version 1 of file A, while instance 2 is repeatedly accessing version 2 of file A. Both have a caching policy of last-accessed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions