rotty3000/liferay-plugins — pull request #6 by ivicac (2012-02-14 12:39:40+00:00)
Title: LPS-24178: Tomcat warns of potential memory leak error due to unhalted threads on undeploying Solr-Web

Hi Ray,
Juan told me you are solr expert so I am sending this pull request to you.
Regarding to this issue there is a problem with a normal and clustered configuration as well of solr-web(see LPS-23985). In both cases I am getting the message about memory leak so I have tested both cases and have made changes for both cases.

The only way to get rid of the message is to call MultiThreadedHttpConnectionManager.shutdownAll(); method. I call it now in a SolrServletContextListener class. Other changes are mostly try-catch expressions because after doPortalDestroy call in SolrServletContextListener I have a last call to request method of BasicAuthSolrServer. I don't know a better way how to stop calling this method after context is destroyed.