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

Hal Deadman (JIRA) noreply at atlassian.com
Tue Nov 17 00:44:08 EST 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=34631#action_34631 ] 

Hal Deadman commented on HSEARCH-417:
-------------------------------------

I will withdraw this bug report. Maven 2 had brought Hibernate 3.2 into the webapp I am working with and it was probably getting picked up over hibernate-core 3.3.1GA. My unconfirmed guess is that Hibernate 3.3.1 must be calling the cleanup method on FullTextIndexEventListener and Hibernate 3.2 was not calling it.

> 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