You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Xiaolong Zheng <Xi...@mathworks.com> on 2017/05/31 16:41:52 UTC

Changing the default FSLockFactory implementation

Hello,

We are experiencing some “Lock obtain timed out: NativeFSLock@” issues on or NFS file system, could someone please show me, what’s the right way to switch the Lucene default NativeFSLockFactory to SimpleFSLockFactory?


Thanks,
Xiaolong

Re: Changing the default FSLockFactory implementation

Posted by Xiaolong Zheng <Xi...@mathworks.com>.
Yes, that’s what I need! Thank you!

On 5/31/17, 1:58 PM, "Chris Hostetter" <ho...@fucit.org> wrote:

    
    
    : We are experiencing some “Lock obtain timed out: NativeFSLock@” issues 
    : on or NFS file system, could someone please show me, what’s the right 
    : way to switch the Lucene default NativeFSLockFactory to 
    : SimpleFSLockFactory?
    
    You can specify the LockFactory used when opening your Directory...
    
    http://lucene.apache.org/core/6_5_0/core/org/apache/lucene/store/FSDirectory.html#open-java.nio.file.Path-org.apache.lucene.store.LockFactory-
    
    
    
    
    -Hoss
    http://www.lucidworks.com/
    


Re: Changing the default FSLockFactory implementation

Posted by Chris Hostetter <ho...@fucit.org>.

: We are experiencing some “Lock obtain timed out: NativeFSLock@” issues 
: on or NFS file system, could someone please show me, what’s the right 
: way to switch the Lucene default NativeFSLockFactory to 
: SimpleFSLockFactory?

You can specify the LockFactory used when opening your Directory...

http://lucene.apache.org/core/6_5_0/core/org/apache/lucene/store/FSDirectory.html#open-java.nio.file.Path-org.apache.lucene.store.LockFactory-




-Hoss
http://www.lucidworks.com/