Skip to content
This repository was archived by the owner on Oct 24, 2022. It is now read-only.

Race condition in run-class.sh #182

@jkinkead

Description

@jkinkead

If run-class.sh is invoked with restart or start twice in quick succession, two servers can end up running at the same time.

This is because there is no special locking, and the .pid file isn't written until the script sleeps for 2 seconds after starting.

There should probably be file locking added.

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