You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Harry Metske (JIRA)" <ji...@apache.org> on 2010/05/01 19:28:57 UTC
[jira] Closed: (JSPWIKI-610) Too fast shutdown causes hang
[ https://issues.apache.org/jira/browse/JSPWIKI-610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Harry Metske closed JSPWIKI-610.
--------------------------------
Fix Version/s: 3.0
Resolution: Fixed
Can't reproduce on 3.0.0-svn-217.
> 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
> Fix For: 3.0
>
>
> 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.