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

Open
jkinkead opened this issue Sep 4, 2015 · 0 comments
Open

Race condition in run-class.sh #182

jkinkead opened this issue Sep 4, 2015 · 0 comments

Comments

@jkinkead
Copy link
Contributor

jkinkead commented Sep 4, 2015

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant