We're updating the issue view to help you get more done. 

Locking strategy "native" ignoring "index base" on Infinispan Directory

Description

Setting

1 2 "default.locking_strategy" => "native" "default.indexBase" => /a/dir/somehwere/

causes

1 2 3 4 Caused by: org.hibernate.search.SearchException: To use "native" as a LockFactory strategy an indexBase path must be set at org.hibernate.search.store.impl.DirectoryProviderHelper.createLockFactory(DirectoryProviderHelper.java:216) at org.hibernate.search.infinispan.impl.InfinispanDirectoryProvider.initialize(InfinispanDirectoryProvider.java:99) at org.hibernate.search.store.impl.DirectoryProviderFactory.createDirectoryProvider(DirectoryProviderFactory.java:88)

The initialization of the Directory provider always uses null as the indexDir parameter
https://github.com/hibernate/hibernate-search/blob/4.5.2.Final/infinispan/src/main/java/org/hibernate/search/infinispan/impl/InfinispanDirectoryProvider.java#L99

https://github.com/hibernate/hibernate-search/blob/4.5.2.Final/engine/src/main/java/org/hibernate/search/store/impl/DirectoryProviderHelper.java#L199

Environment

None

Status

Assignee

Gustavo Fernandes

Reporter

Gustavo Fernandes

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Affects versions

4.5.2.Final

Priority

Major