Hi,
I'm testing against Hibernate Search 4.1.0Alpha1 and I have a problem with the lock not being released.
First of all, I'm using lockstrategy is native, which doesn't seem to work. If I kill the Tomcat process, the lock file is still there (Windows 7).
Code:
<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.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
[...]
Second, MassIndexer creates a lock when it starts running but after it completes, it's still there.
The code for calling MassIndexer is
Code:
fts.createIndexer(clazz).purgeAllOnStart(true)
.optimizeOnFinish(true).threadsToLoadObjects(3)
.batchSizeToLoadObjects(30)
.threadsForSubsequentFetching(12).startAndWait()
Any suggestions?
Marc