Skip to content

Race condition when adding the same project twice at the same time #66

@gmaclennan

Description

@gmaclennan

If a second PUT request to add a project with the same project ID is received before a first request reaches this line then the server will return a 500 error on the second request.

This is a low-impact and low-priority edge-case, but I encountered it in the test setup for testing duplicate add project requests, so I'm documenting it here so we don't forget it.

The fix would be to track inflight requests by projectId and await the first before continuing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions