| Title | Live thread with infinite loop keeps Tomcat from closing gracefully. |
| Date | 15-Oct-2005 00:11:07 EEST |
| Version | 2.2.33 |
| Submitter | 82.234.174.84 |
| Bug criticality | MediumBug |
| Browser version | N/A |
| Bug status | ClosedBug |
| PageProvider used | com.ecyrd.jspwiki.providers.CachingProvider with Real provider: com.ecyrd.jspwiki.providers.VersioningFileProvider |
| Servlet Container | Tomcat 4.1 |
| Operating System | Linux (Ubuntu distro) |
| URL | N/A |
| Java version | 1.4.2 |
Eversince I installed JSPWiki on my Linux server (Ubuntu distro), I cannot stop Tomcat gracefully (/etc/init.d/tomcat stop). I have to kill it (kill -9 pid) !!!
I looked at the source code, and I may have found something in class LuceneSearchProvider, method startLuceneUpdateThread: there is an infinite loop in a non-deamon thread. Maybe if you could just create a deamon thread instead of a regular user thread, it might solve the problem. Or maybe you could check Tomcat's state and stop the infinite loop if Tomcat is stopped.
Thanks!
In 2.4 we should now be killing all threads gracefully, so it should stop. Closing this, but if you still see it, please reopen.