org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@target/index/org.appfuse.model.User/write.lock

AppFuse JIRA | Matt Raible | 3 years ago
  1. 0

    If I run jetty:run with a clean target directory, everything works OK. However, when I run it a 2nd time, I get a stack trace. Users should be able to run "jetty:run" multiple times w/o running "clean" first. ERROR [Hibernate Search: Index updates queue processor for index org.appfuse.model.User-1] LogErrorHandler.handleException(83) | HSEARCH000058: Exception occurred org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@target/index/org.appfuse.model.User/write.lock Primary Failure: Entity org.appfuse.model.User Id null Work Type org.hibernate.search.backend.PurgeAllLuceneWork org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@target/index/org.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$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)

    AppFuse JIRA | 3 years ago | Matt Raible
    org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@target/index/org.appfuse.model.User/write.lock
  2. 0

    If I run jetty:run with a clean target directory, everything works OK. However, when I run it a 2nd time, I get a stack trace. Users should be able to run "jetty:run" multiple times w/o running "clean" first. ERROR [Hibernate Search: Index updates queue processor for index org.appfuse.model.User-1] LogErrorHandler.handleException(83) | HSEARCH000058: Exception occurred org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@target/index/org.appfuse.model.User/write.lock Primary Failure: Entity org.appfuse.model.User Id null Work Type org.hibernate.search.backend.PurgeAllLuceneWork org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@target/index/org.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$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)

    AppFuse JIRA | 3 years ago | Matt Raible
    org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@target/index/org.appfuse.model.User/write.lock
  3. 0

    AppFuse - User - org.apache.lucene.store.LockObtainFailedException with Tomcat 7

    nabble.com | 1 year ago
    org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@target\index\org.appfuse.model.User\write.lock
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate Community • View topic - Hibernate Search and Infinispan Directory lock timeout issue

    hibernate.org | 1 year ago
    org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: org.infinispan.lucene.locking.BaseLuceneLock@2a10b73d
  6. 0

    none: Lucene tip

    blogspot.com | 1 year ago
    org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/path/to/index/com.mypackage.MyEntity/write.lock

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.lucene.store.LockObtainFailedException

      Lock obtain timed out: SimpleFSLock@target/index/org.appfuse.model.User/write.lock

      at org.apache.lucene.store.Lock.obtain()
    2. Lucene
      IndexWriter.<init>
      1. org.apache.lucene.store.Lock.obtain(Lock.java:84)
      2. org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1108)
      2 frames
    3. Hibernate Search Engine
      LuceneBackendQueueTask.run
      1. org.hibernate.search.backend.impl.lucene.IndexWriterHolder.createNewIndexWriter(IndexWriterHolder.java:127)
      2. org.hibernate.search.backend.impl.lucene.IndexWriterHolder.getIndexWriter(IndexWriterHolder.java:102)
      3. org.hibernate.search.backend.impl.lucene.AbstractWorkspaceImpl.getIndexWriter(AbstractWorkspaceImpl.java:119)
      4. org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.applyUpdates(LuceneBackendQueueTask.java:99)
      5. org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.run(LuceneBackendQueueTask.java:67)
      5 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      6. java.lang.Thread.run(Thread.java:722)
      6 frames