incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harry Metske (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JSPWIKI-610) Too fast shutdown causes hang
Date Thu, 08 Apr 2010 19:01:37 GMT

    [ https://issues.apache.org/jira/browse/JSPWIKI-610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855090#action_12855090
] 

Harry Metske commented on JSPWIKI-610:
--------------------------------------

So, has this been fixed in 3.0.0-svn-204 ?


> Too fast shutdown causes hang
> -----------------------------
>
>                 Key: JSPWIKI-610
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-610
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Core & storage
>    Affects Versions: 3.0
>         Environment: OSX 10.5.8, 2.4 GHz Core2Duo.
>            Reporter: Janne Jalkanen
>            Priority: Minor
>
> Running WikiEngine.shutdown() too fast after WikiEngine initialization causes it to hang.
 Sample code.
> {code}
>         WikiEngine engine = null;
>         try
>         {
>             engine = WikiEngine.getInstance( new MockServletContext("JSPWiki"), props
);
>         }
>         catch( Exception e )
>         {
>             System.err.println("Error starting JSPWiki: "+e.getMessage());
>             e.printStackTrace( System.err );
>             System.exit(5);
>         }
> //        Thread.sleep(10);
>         
>         try
>         {
>             ContentManager mgr = engine.getContentManager();
>         }
>         finally
>         {
>             engine.shutdown();
>         }
>         
> {code}
> Depending on whether the Thread.sleep() is commented in or out this hangs or passes.
 My guess is that it's a race condition with some of the Threads that we start.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message