Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text file busy while running hoverfly with surefire forkmode #233

Open
datenbrille opened this issue Mar 26, 2020 · 1 comment
Open

Text file busy while running hoverfly with surefire forkmode #233

datenbrille opened this issue Mar 26, 2020 · 1 comment

Comments

@datenbrille
Copy link

Description of the bug

Currently we run a larger testsuite from maven and used hoverfly to simulate request. Lately we switched from sequential task execution to parallel execution with surefire and fork mode. This mean we are starting up to 4 JVM processes and run those simultaneously. After the switch ones or twice a day a test run fails with the mentioned error below. It seems that two JVM trying to access the same hoverfly file.

Steps to reproduce the issue

Run multiple hoverfly test with surefire fork mode more then 2.

Observed result

Hoverfly Java and Hoverfly error messages seen (If none, say none)

java.lang.IllegalStateException: Could not start Hoverfly process
Caused by: org.zeroturnaround.exec.ProcessInitException: Could not execute [/tmp/hoverfly.8441131355742916126/hoverfly_linux_amd64, -pp, 34205, -ap, 45433, -logs, json] in /tmp/hoverfly.8441131355742916126. Error=26, Text file busy
Caused by: java.io.IOException: Cannot run program "/tmp/hoverfly.8441131355742916126/hoverfly_linux_amd64" (in directory "/tmp/hoverfly.8441131355742916126"): error=26, Text file busy
Caused by: java.io.IOException: error=26, Text file busy

Expected result

Two JVM do not share the same hoverfly binary.

Additional relevant information

If not indicated above:

  1. Hoverfly Java version: 0.12.2, openjdk 1.8 Update 241
@tommysitu
Copy link
Member

Not sure if it's related to this JDK bug: https://bugs.openjdk.java.net/browse/JDK-8068370
Here is a similar issue: flapdoodle-oss/de.flapdoodle.embed.mongo#246

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

No branches or pull requests

2 participants