Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Cache Server should not allow file overwrites during reads #75

@stephen-palmer

Description

@stephen-palmer

There is a test that presumes to allow the cache server to overwrite a file version, while that version is being sent to a client. The test was passing on both cache modules (RAM and FS), but the RAM module has a logic error that causes a false positive for this test. The test passes on the FS module due to the nature of disk caching and read streams in node that are non-locking.

Really, we shouldn't allow this behavior at all - if a file is being sent to one client, it cannot be overwritten by a different client at the same time (i.e., a PUT transaction).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions