You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Martin Lichtin (JIRA)" <ji...@apache.org> on 2013/06/27 11:46:20 UTC

[jira] [Updated] (KARAF-2348) Tooling-Exam does not wait for a complete test container shutdown

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

Martin Lichtin updated KARAF-2348:
----------------------------------

    Description: 
Symptoms of the issue:
 - a subsequent Karaf tooling exam test cannot open its ports
 - the target folder cannot be deleted. log output:
   ("Can't remove runtime system; shedule it for exit of the jvm.")

The approach to stop Karaf is to stop bundle 0. However, KarafJavaRunner
should then also wait for the Karaf process in its shutdown() method.
Probably something like

{code} 
    @Override
    public synchronized void shutdown() {
        // runner.shutdown();
        runner.waitForExit(); // and calls runner.shutdown()
    }
{code} 


  was:
Symptoms of the issue:
 - a subsequent Karaf tooling exam test cannot open its ports
 - the target folder cannot be deleted. log output:
   ("Can't remove runtime system; shedule it for exit of the jvm.")

The approach to stop Karaf is to stop bundle 0. However, KarafJavaRunner
should then also wait for the Karaf process in its shutdown() method.
Probably something like

    @Override
    public synchronized void shutdown() {
        // runner.shutdown();
        runner.waitForExit(); // and calls runner.shutdown()
    }



    
> Tooling-Exam does not wait for a complete test container shutdown
> -----------------------------------------------------------------
>
>                 Key: KARAF-2348
>                 URL: https://issues.apache.org/jira/browse/KARAF-2348
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 2.3.1
>            Reporter: Martin Lichtin
>
> Symptoms of the issue:
>  - a subsequent Karaf tooling exam test cannot open its ports
>  - the target folder cannot be deleted. log output:
>    ("Can't remove runtime system; shedule it for exit of the jvm.")
> The approach to stop Karaf is to stop bundle 0. However, KarafJavaRunner
> should then also wait for the Karaf process in its shutdown() method.
> Probably something like
> {code} 
>     @Override
>     public synchronized void shutdown() {
>         // runner.shutdown();
>         runner.waitForExit(); // and calls runner.shutdown()
>     }
> {code} 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira