-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Unexpected error when calling waitForExit #47
Comments
@mihneagiurgea do you want to check if #96 from @cardamon might fix this problem? |
@mihneagiurgea if you are still seeing this with the new 3.1.5 I am about to release, I would welcome a PR to fix! |
@mosesn perhaps you would like to chime in here - do you know if this one can be closed? Still needs a fix? |
I'm still working on the MariaDB4J upgrade–the SLF4J 2.x upgrade is incompatible with some of the versions of the other libraries we use (Spark, Dropwizard, etc) so it has been a bit of a slog. I'm hoping to merge it in soon, and I should be able to give you better feedback once that's done. |
@mosesn any news? |
Here's the issue that we're seeing:
waitForExit
fails with this:This is failing randomly, at a rate of say 5%. Succeeds after retries.
Based on the comment from here:
ch.vorburger.exec/src/main/java/ch/vorburger/exec/ManagedProcess.java
Line 198 in 07f2511
... I suspect (without being able to prove this via a test) that what's happening is this, inside
startExecute()
executor.execute
starts execution of something that will failthis.wait(100)
returns with no error, but incorrectly fails to detect that the background thread has an errorisAlive = watchDog.isWatching()
correctly returns False, because the background thread has indeed failedwaitForExit
will callassertWaitForIsValid()
, which throws becauseisAlive = False
(from 3) andhasResult = False
(from 2)The text was updated successfully, but these errors were encountered: