Lucence
org.apache.lucene.store.LockObtainFailedException
org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@F:\...\write.lock
at org.apache.lucene.store.Lock.obtain(Lock.java:85)
at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1054)
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:670)
解决方案:
删除存储文件,重新建一个。
(服务器启动时)有可能同时建两次,还没来得及建成就报错,让它建一次就行了。
org.apache.lucene.store.LockObtainFailedException
org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@F:\...\write.lock
at org.apache.lucene.store.Lock.obtain(Lock.java:85)
at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1054)
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:670)
解决方案:
删除存储文件,重新建一个。
(服务器启动时)有可能同时建两次,还没来得及建成就报错,让它建一次就行了。
本文解决Lucene组织中出现的存储文件锁定失败问题,建议在服务器启动时检查并删除现有存储文件,避免因同时尝试创建多次而引发的错误。
5047

被折叠的 条评论
为什么被折叠?



