Skip to content

Locking files when writing to avoid concurrency issues #137

Closed

Description

@nicola

The idea is to avoid two people writing at the same time

Activity

  1. nicola commented on Dec 21, 2015

    @nicola
    ContributorAuthor

    I have done some thinking and I think there is only a way to achieve this and still being working async. In other words, reads are fine to be async as they are, but for writes, the server has to have a global state of what file is being written at the moment which has some sort of queuing (or even simpler nextTick) until the resource is free.

    By bringing back sync, a possible attack could be loading a 10 GB file while two people are chatting (hence breaking their conversation)

  2. RubenVerborgh commented on Jul 19, 2018

    @RubenVerborgh
    Contributor

    Not a problem right now, can reconsider in the future.

  3. RubenVerborgh commented on Feb 14, 2019

    @RubenVerborgh
    Contributor

    Reopening, as the future is now.

  4. added and removed
    revisitNot a current priority, reconsider later
    on Feb 14, 2019
  5. RubenVerborgh commented on Sep 7, 2020

    @RubenVerborgh
    Contributor

    Fixed in #1116

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions