[hibernate-issues] [Hibernate-JIRA] Closed: (HSEARCH-417) SearchFactoryImpl close method is not called on application undeployment, leaving file handles open to indexes

Sanne Grinovero (JIRA) noreply at atlassian.com
Tue Nov 17 03:52:08 EST 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list