[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-1038) MassIndexer doesn't release Write Lock after completion

Marc Schipperheyn (JIRA) noreply at atlassian.com
Fri Feb 3 07:05:10 EST 2012


    [ https://hibernate.onjira.com/browse/HSEARCH-1038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45363#comment-45363 ] 

Marc Schipperheyn commented on HSEARCH-1038:
--------------------------------------------

It seems to be alright now. One thing that does still go wrong is that the MassIndexer never releases its write.lock. Do you want me to create a JIRA for that?

> MassIndexer doesn't release Write Lock after completion
> -------------------------------------------------------
>
>                 Key: HSEARCH-1038
>                 URL: https://hibernate.onjira.com/browse/HSEARCH-1038
>             Project: Hibernate Search
>          Issue Type: Bug
>          Components: massindexer
>    Affects Versions: 4.1.0.Alpha1
>            Reporter: Marc Schipperheyn
>
> Massindexer doesn't seem to be releasing the write.lock after it completes.
> My code for calling MassIndexer is
> 	fts.createIndexer(clazz).purgeAllOnStart(true)
> 						.optimizeOnFinish(true).threadsToLoadObjects(3)
> 						.batchSizeToLoadObjects(30)
> 						.threadsForSubsequentFetching(12).startAndWait();
> My Hibernate configuration is
> <bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
>         <property name="dataSource" ref="dataSource"/>
>         <property name="configLocation" value="classpath:hibernate.cfg.xml"/>
>         <property name="hibernateProperties">
>             <value>
>             	hibernate.bytecode.provider=javaassist
>             	hibernate.connection.driver_class=${jdbc.driverClassName}
>             	hibernate.connection.is-connection-validation-required=true
>             	hibernate.jdbc.batch_size=30
>                 hibernate.dialect=${hibernate.dialect}
>                 hibernate.use_sql_comments=false
>                 hibernate.query.substitutions=true
>                	hibernate.generate_statistics=true
>                 hibernate.search.default.directory_provider=filesystem
> 		hibernate.search.default.exclusive_index_user=false 
>                 hibernate.search.default.locking_strategy=native
>                 hibernate.search.default.indexBase=${hibsearch.hibernate_index_dir}
>                 hibernate.search.analyzer=nl.project.dao.hibernate.search.MyStandardAnalyzer
>                 hibernate.search.autoregister_listeners=true
>                 hibernate.connection.autoReconnect=true
>             	hibernate.connection.autoReconnectForPools=true
>             	hibernate.show_sql=${hibernate.show_sql}
>     		hibernate.format_sql=${hibernate.format_sql}
>     		hibernate.cache.region.factory_class=org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory
>                 hibernate.cache.provider_configuration_file_resource_path=/ehcache.xml 
> 		hibernate.cache.use_query_cache=true
>                 hibernate.cache.use_second_level_cache=true
>                 hibernate.cache.region_prefix=mercadosa
>                 hibernate.cache.use_structured_entries=false
>                 hibernate.hbm2ddl.auto=update
>             </value>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list