Error: Lock obtain timed out

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Error: Lock obtain timed out

musicpxg
This post was updated on .
Hi,

I am really sorry to ask so many question here. Actually, I ask only when I cannot find a solution from internet :)

The error occurred when I saved an item to database. The item was successfully saved indeed. But, there were some errors alarmed. I do not know why?

ERROR [Hibernate Search: Index updates queue processor for index com.pro.appfuse.model.Projects-1] LogErrorHandler.handleException(83) | HSEARCH000058: Exception occurred org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@target\index\com.pro.appfuse.model.Projects\write.lock
Primary Failure:
        Entity com.pro.appfuse.model.Projects  Id 8  Work Type  org.hibernate.search.backend.AddLuceneWork

org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@target\index\com.pro.appfuse.model.Projects\write.lock
        at org.apache.lucene.store.Lock.obtain(Lock.java:84)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1108)
        at org.hibernate.search.backend.impl.lucene.IndexWriterHolder.createNewIndexWriter(IndexWriterHolder.java:127)
        at org.hibernate.search.backend.impl.lucene.IndexWriterHolder.getIndexWriter(IndexWriterHolder.java:102)
        at org.hibernate.search.backend.impl.lucene.AbstractWorkspaceImpl.getIndexWriter(AbstractWorkspaceImpl.java:119)
        at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.applyUpdates(LuceneBackendQueueTask.java:99)
        at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.run(LuceneBackendQueueTask.java:67)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
ERROR [Hibernate Search: Index updates queue processor for index com.pro.appfuse.model.Projects-1] LuceneBackendQueueTask.applyUpdates(101) | HSEARCH000072: Couldn't open the IndexWriter because of previous error: operation skipped, index ouf of sync!
DEBUG [qtp1803091-185] UserDaoHibernate.saveUser(56) | user's id: -1
ERROR [Hibernate Search: Index updates queue processor for index com.pro.appfuse.model.User-1] LogErrorHandler.handleException(83) | HSEARCH000058: Exception occurred org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@target\index\com.pro.appfuse.model.User\write.lock
Primary Failure:
        Entity com.pro.appfuse.model.User  Id -1  Work Type  org.hibernate.search.backend.UpdateLuceneWork

org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@target\index\com.pro.appfuse.model.User\write.lock
        at org.apache.lucene.store.Lock.obtain(Lock.java:84)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1108)
        at org.hibernate.search.backend.impl.lucene.IndexWriterHolder.createNewIndexWriter(IndexWriterHolder.java:127)
        at org.hibernate.search.backend.impl.lucene.IndexWriterHolder.getIndexWriter(IndexWriterHolder.java:102)
        at org.hibernate.search.backend.impl.lucene.AbstractWorkspaceImpl.getIndexWriter(AbstractWorkspaceImpl.java:119)
        at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.applyUpdates(LuceneBackendQueueTask.java:99)
        at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.run(LuceneBackendQueueTask.java:67)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
ERROR [Hibernate Search: Index updates queue processor for index com.pro.appfuse.model.User-1] LuceneBackendQueueTask.applyUpdates(101) | HSEARCH000072: Couldn't open the IndexWriter because of previous error: operation skipped, index ouf of sync!


Thank you!

Best wishes,
Yang