You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eagle.apache.org by "Michael Wu (JIRA)" <ji...@apache.org> on 2016/10/11 03:11:20 UTC

[jira] [Closed] (EAGLE-500) inaccurate IllegalStateException not caught within unit-test-cases when MongoDB normal stop() fails

     [ https://issues.apache.org/jira/browse/EAGLE-500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Wu closed EAGLE-500.
----------------------------
    Resolution: Fixed

> 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)