Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.nio.channels.OverlappingFileLockException when set property for one vertex that indexed using lucene #757

Closed
huiwenhan opened this issue Sep 12, 2014 · 3 comments
Assignees
Labels
Milestone

Comments

@huiwenhan
Copy link

Get following error:
ERROR [com.thinkaurelius.titan.graphdb.database.StandardTitanGraph] Error while commiting index mutations for transaction [2364] on index: search
com.thinkaurelius.titan.core.TitanException: Could not execute operation due to backend exception
at com.thinkaurelius.titan.diskstorage.util.BackendOperation.execute(BackendOperation.java:44)
at com.thinkaurelius.titan.diskstorage.indexing.IndexTransaction.flushInternal(IndexTransaction.java:119)
at com.thinkaurelius.titan.diskstorage.indexing.IndexTransaction.commit(IndexTransaction.java:100)
at com.thinkaurelius.titan.diskstorage.BackendTransaction.commitIndexes(BackendTransaction.java:124)
at com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.commit(StandardTitanGraph.java:639)
at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx.commit(StandardTitanTx.java:1228)
at com.sfb.wsa.cd.uptake.graph.titan.model.vertex.access.TagDao.add(TagDao.java:32)
at com.sfb.wsa.cd.uptake.profiles.jobs.ImportProfileJob.main(ImportProfileJob.java:108)
Caused by: com.thinkaurelius.titan.diskstorage.PermanentBackendException: Could not create writer
at com.thinkaurelius.titan.diskstorage.lucene.LuceneIndex.getWriter(LuceneIndex.java:111)
at com.thinkaurelius.titan.diskstorage.lucene.LuceneIndex.mutate(LuceneIndex.java:146)
at com.thinkaurelius.titan.diskstorage.indexing.IndexTransaction$1.call(IndexTransaction.java:122)
at com.thinkaurelius.titan.diskstorage.indexing.IndexTransaction$1.call(IndexTransaction.java:119)
at com.thinkaurelius.titan.diskstorage.util.BackendOperation.executeDirect(BackendOperation.java:56)
at com.thinkaurelius.titan.diskstorage.util.BackendOperation.execute(BackendOperation.java:42)
... 7 more
Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@C:\tmp\titan\wsa\emp\lucene\tagmixedIndex\write.lock: java.nio.channels.OverlappingFileLockException
at org.apache.lucene.store.Lock.obtain(Lock.java:89)
at org.apache.lucene.index.IndexWriter.(IndexWriter.java:710)
at com.thinkaurelius.titan.diskstorage.lucene.LuceneIndex.getWriter(LuceneIndex.java:108)
... 12 more
Caused by: java.nio.channels.OverlappingFileLockException
at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:267)
at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:164)
at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1078)
at java.nio.channels.FileChannel.tryLock(FileChannel.java:1165)
at org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:148)
at org.apache.lucene.store.Lock.obtain(Lock.java:100)
... 14 more

@dalaro dalaro self-assigned this Sep 22, 2014
@dalaro dalaro added bug and removed bug labels Sep 22, 2014
@dalaro
Copy link
Member

dalaro commented Sep 22, 2014

Did you call TitanFactory.open multiple times in one Java VM? If so, did you have only one graph open at a time, and did you call graph.shutdown() on all of the graphs when you were done with them?

If you can reproduce this reliably, then please show us how.

@dalaro
Copy link
Member

dalaro commented Sep 22, 2014

Incidentally, I initially thought this could potentially be related to #761, but IndexReaders do not appear to have any bearing on the Writer locks. I might be mistaken though.

@mbroecheler mbroecheler added this to the Consideration milestone Sep 26, 2014
@mbroecheler mbroecheler modified the milestones: Titan0.5.2, Consideration Nov 12, 2014
@mukil
Copy link

mukil commented Mar 29, 2018

Google brought me here, so I just wanted to leave you this hint:

This seems to be related to using Java to initialize an existing file-db which is located on a storage formatted as MS-DOS FAT (e.g. usb stick) on Mac OS X.

See also: elastic/elasticsearch#1451

(I have this issue when trying to init my neo4j file-db with lucene)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants