]
Sanne Grinovero closed HSEARCH-417.
-----------------------------------
Resolution: Rejected
SearchFactoryImpl close method is not called on application
undeployment, leaving file handles open to indexes
--------------------------------------------------------------------------------------------------------------
Key: HSEARCH-417
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-417
Project: Hibernate Search
Issue Type: Bug
Components: engine
Affects Versions: 3.1.1.GA
Environment: Hibernate 3.3.1.GA, Oracle 11g, Weblogic 10, Spring 2.5.6
Reporter: Hal Deadman
I have an application that does manual index builds periodically and when I undeploy the
application I can still see all the file handles to the lucene indexes open (using
sysinternals process explorer). The close method on SearchFactoryImpl is never called on
application shutdown.
I was able to make a disposable spring bean that calls something like:
SearchFactory searchFactory = Search.getFullTextSession(session).getSearchFactory();
((SearchFactoryImpl ) searchFactory).close();
and that caused the file handles on the indexes to be closed.
I think the hibernate search objects need to clean up after themselves when the hibernate
session factory is shut down. The close method is called in the cleanup method for
FullTextIndexEventListener but that doesn't appear to get called with my
configuration, possibly because the application does manual index builds?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: