MassIndexer doesn't release Write Lock after completion

Description

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>

Environment

None

Activity

Show:
Marc Schipperheyn
February 3, 2012, 12:54 PM

Ah darn, just saw your comment. Sorry and thanks

Sanne Grinovero
February 3, 2012, 1:33 PM

let me know if that was the problem, so I can close the issue or if I need to investigate further.

Marc Schipperheyn
February 3, 2012, 2:03 PM

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?

Sanne Grinovero
February 3, 2012, 2:08 PM

So you're saying that the MassIndexer is not releasing the write.lock even setting the property correctly? No need to another JIRA, this one seems to have a perfectly fitting title

Sanne Grinovero
February 6, 2012, 6:29 PM

Assignee

Sanne Grinovero

Reporter

Marc Schipperheyn

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Major
Configure