What operating system are you running on, which version of neo4j and how many threads are running in parallel?
Could you also try to reverse the operations (i.e. first do the index.remove() and then then node.delete();) Thanks Michael Am 08.08.2011 um 08:13 schrieb ahmed.elsharkasy: > i am still facing the same exception when i try to delete a node with this > code > Transaction tx = graphDb.beginTx(); > node.delete(); > graphDb.index().forNodes(wordsIndexName).remove(node); > tx.success(); > tx.finish() > > i get this exception at tx.finish > SEVERE: Commit failed > java.lang.RuntimeException: > org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: > nativefsl...@.....write.lock > at > org.neo4j.index.impl.lucene.LuceneDataSource.getIndexWriter(LuceneDataSource.java:601) > at > org.neo4j.index.impl.lucene.CommitContext.ensureWriterInstantiated(CommitContext.java:59) > at > org.neo4j.index.impl.lucene.LuceneCommand$RemoveCommand.perform(LuceneCommand.java:241) > at > org.neo4j.index.impl.lucene.LuceneTransaction.doCommit(LuceneTransaction.java:259) > at > org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.commit(XaTransaction.java:319) > at > org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.commit(XaResourceManager.java:456) > at > org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.commit(XaResourceHelpImpl.java:64) > at > org.neo4j.kernel.impl.transaction.TransactionImpl.doCommit(TransactionImpl.java:516) > at > org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:659) > at > org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:622) > at > org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:107) > at > org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:85) > at > databaseManagers.Neo4jDatabaseManager.deleteDocument(Neo4jDatabaseManager.java:199) > at > databaseManagers.Neo4jDatabaseManager.main(Neo4jDatabaseManager.java:452) > Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain > timed out: nativefsl...@....write.lock > at org.apache.lucene.store.Lock.obtain(Lock.java:84) > at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1115) > at > org.neo4j.index.impl.lucene.LuceneDataSource.getIndexWriter(LuceneDataSource.java:588) > ... 13 more > Aug 8, 2011 8:05:08 AM org.neo4j.kernel.impl.transaction.TxManager commit > > i spent a lot of time trying to resolve this , can you please guide me ? > > -- > View this message in context: > http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3234639.html > Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user