-
1. Re: Shutdown issue
rhauch Oct 2, 2012 12:33 PM (in response to kurtstam)There are two forms of ModeShapeEngine.shutdown(...) - which are you calling.
Note that these methods return a Future<Boolean>. If you want to block until the repository is shutdown, you need to call "get()" to wait until the engine is shutdown or "get(long,TimeUnit)" to wait at most the specified time until the engine is shutdown.
The garbage collection process runs using this "modeshape-cron-*" thread every 5 minutes. By chance does Tomcat shutdown after 5-6 minutes? If so, that'll help narrow down the issue.
-
2. Re: Shutdown issue
kurtstam Oct 2, 2012 12:49 PM (in response to rhauch)I'm calling
((org.modeshape.jcr.api.RepositoryFactory)theFactory).shutdown().get();
which actually returns without any delay, but after 20 min tomcat still hangs.
--Kurt
-
3. Re: Shutdown issue
rhauch Oct 2, 2012 1:06 PM (in response to kurtstam)Okay, great. I'll reopen the issue, and we'll try to fix it ASAP.
-
4. Re: Shutdown issue
rhauch Oct 2, 2012 3:44 PM (in response to rhauch)The problem turned out to be an invalid namespace prefix (see MODE-1655), which prevented the repository from starting up properly, and which prevented the repository from shutting down properly. Fixing the namespace prefix problem corrected the issue.