ajermakovics / eclipse-instasearch

Eclipse plug-in for fast code search
http://marketplace.eclipse.org/content/instasearch
Eclipse Public License 2.0
170 stars 48 forks source link

Lock obtain timed out #88

Closed nimo23 closed 7 years ago

nimo23 commented 7 years ago

In eclipse neon sr2, this error occurs when using the plugin:

Lock obtain timed out: NativeFSLock@/Users/test/workspace/.metadata/.plugins/it.unibz.instasearch/searchindex/write.lock

org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/Users/sun/A/workspace/ide/.metadata/.plugins/it.unibz.instasearch/searchindex/write.lock
    at org.apache.lucene.store.Lock.obtain(Lock.java:85)
    at org.apache.lucene.index.DirectoryReader.acquireWriteLock(DirectoryReader.java:668)
    at org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:1160)
    at org.apache.lucene.index.IndexReader.deleteDocuments(IndexReader.java:1196)
    at it.unibz.instasearch.indexing.StorageIndexer.deleteStorage(StorageIndexer.java:333)
    at it.unibz.instasearch.indexing.WorkspaceIndexer.updateFile(WorkspaceIndexer.java:266)
    at it.unibz.instasearch.jobs.IndexUpdateJob.runInWorkspace(IndexUpdateJob.java:190)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
ajermakovics commented 7 years ago

Hi

Does deleting the write.lock file help at all?

nimo23 commented 7 years ago

yes, this was the reason. thanks.