Michael Wu created EAGLE-500:
--------------------------------
Summary: inaccurate IllegalStateException not caught within
unit-test-cases when MongoDB normal stop() fails
Key: EAGLE-500
URL: https://issues.apache.org/jira/browse/EAGLE-500
Project: Eagle
Issue Type: Bug
Reporter: Michael Wu
Assignee: Michael Wu
Looking at stopOrDestroyProcess() and waitForProcessGotKilled() methods of
de.flapdoodle.embed.process.runtime.ProcessControl.java, when the returnCode
returns from stopOrDestroyProcess() with "null", the process should have been
destroyed by a native method implementation.
So, the IllegalStateException thrown from waitForProcessGotKilled() seem not
very accurate because it doesn't reflect the state of destroying result.
To avoid false failure led by this issue in unit-test-case teardown(), I'd try
catching the IllegalStateException when calling stop() of the MongodProcess
instance, and filter the exception message "Couldn't kill .+ process!".
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)