Re: [Neo4j] cant use index after commit
i followed your advice and it is now fairly good but i have a new performance issue with traversing i have this line of code Traverser travser = result.traverse(Traverser.Order.DEPTH_FIRST, StopEvaluator.END_OF_GRAPH, ReturnableEvaluator.ALL, DynamicRelationshipType.withName(name), Direction.OUTGOING); the number of nodes i traverse are on average 60 nodes , and it took me about 500 millisecond to traverse is this normal? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3247801.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
Re: [Neo4j] cant use index after commit
How large is your graph? And how many connections do those nodes have? Thanks Michael Am 12.08.2011 um 01:50 schrieb ahmed.elsharkasy: i followed your advice and it is now fairly good but i have a new performance issue with traversing i have this line of code Traverser travser = result.traverse(Traverser.Order.DEPTH_FIRST, StopEvaluator.END_OF_GRAPH, ReturnableEvaluator.ALL, DynamicRelationshipType.withName(name), Direction.OUTGOING); the number of nodes i traverse are on average 60 nodes , and it took me about 500 millisecond to traverse is this normal? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3247801.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
Re: [Neo4j] cant use index after commit
My graph contains 281 nodes with a total of 350 relationships . average outgoing edges per node less than 10 and the same for in going edges what do you think? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3247898.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
Re: [Neo4j] cant use index after commit
Is this the first traversal, or the average time for several runs? Thanks Michael Am 12.08.2011 um 02:55 schrieb ahmed.elsharkasy: My graph contains 281 nodes with a total of 350 relationships . average outgoing edges per node less than 10 and the same for in going edges what do you think? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3247898.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
Re: [Neo4j] cant use index after commit
I just created a graph like yours and run the traversal test, it takes a few milliseconds for the initial runs but with hot caches it executes almost instantly. Michael node count = 952 took 72 ms node count = 963 took 29 ms node count = 957 took 39 ms node count = 973 took 29 ms node count = 967 took 16 ms node count = 964 took 19 ms node count = 952 took 7 ms node count = 961 took 6 ms node count = 957 took 6 ms node count = 973 took 7 ms node count = 967 took 8 ms node count = 964 took 9 ms node count = 1 took 0 ms node count = 961 took 8 ms node count = 1 took 2 ms node count = 973 took 12 ms node count = 967 took 11 ms node count = 964 took 10 ms node count = 952 took 11 ms node count = 961 took 11 ms node count = 957 took 12 ms node count = 973 took 7 ms node count = 967 took 11 ms node count = 964 took 6 ms node count = 952 took 7 ms node count = 961 took 6 ms node count = 957 took 6 ms node count = 973 took 7 ms node count = 967 took 4 ms node count = 964 took 4 ms node count = 952 took 4 ms node count = 962 took 4 ms node count = 957 took 4 ms node count = 973 took 3 ms node count = 967 took 3 ms node count = 964 took 3 ms node count = 952 took 3 ms node count = 961 took 3 ms node count = 957 took 3 ms node count = 973 took 2 ms node count = 967 took 5 ms node count = 964 took 4 ms node count = 952 took 4 ms node count = 1 took 0 ms node count = 957 took 3 ms node count = 973 took 2 ms node count = 967 took 2 ms node count = 964 took 2 ms node count = 954 took 2 ms node count = 961 took 2 ms node count = 957 took 1 ms node count = 973 took 2 ms node count = 967 took 1 ms node count = 964 took 2 ms node count = 952 took 2 ms node count = 961 took 1 ms node count = 958 took 2 ms node count = 1 took 0 ms node count = 967 took 1 ms node count = 964 took 2 ms package org.neo4j.performance.ahmed; import org.apache.commons.io.FileUtils; import org.neo4j.graphdb.*; import org.neo4j.kernel.EmbeddedGraphDatabase; import java.io.File; import java.io.IOException; import java.util.Random; public class TraverserTest { public static final int INT = 1000; enum Rels implements RelationshipType { _1, _2, _3, _4, _5, _6; private static Rels randomRel(Random random) { final Rels[] values = values(); return values[random.nextInt(values.length)]; } } public static void main(String[] args) throws IOException { final File dir = new File(target/traverse); FileUtils.deleteDirectory(dir); final EmbeddedGraphDatabase gdb = new EmbeddedGraphDatabase(dir.getAbsolutePath()); final Random random = new Random(0); createGraph(gdb, random); for (int run = 0; run 10; run++) { for (Rels rels : Rels.values()) { runTraversal(gdb, random, rels); } } } private static void runTraversal(EmbeddedGraphDatabase gdb, Random random, final Rels relType) { final Node startNode = gdb.getNodeById(random.nextInt(INT)); long start = System.currentTimeMillis(); Traverser traverser = startNode.traverse(Traverser.Order.DEPTH_FIRST, StopEvaluator.END_OF_GRAPH, ReturnableEvaluator.ALL, relType, Direction.OUTGOING); int count = 0; for (Node node : traverser) { count++; } long delta = System.currentTimeMillis() - start; System.out.println(node count = + count + took + delta + ms); } private static void createGraph(EmbeddedGraphDatabase gdb, final Random random) { final Transaction tx = gdb.beginTx(); createNodes(gdb); connectNodes(gdb, random); tx.success(); tx.finish(); } private static void connectNodes(EmbeddedGraphDatabase gdb, Random random) { for (int i = 0; i INT; i++) { final Node start = gdb.getNodeById(i); for (int j = 0; j 20; j++) { connectToOtherNodes(gdb, random, start); } } } private static void createNodes(EmbeddedGraphDatabase gdb) { for (int i = 0; i INT; i++) { gdb.createNode(); } } private static void connectToOtherNodes(EmbeddedGraphDatabase gdb, Random random, Node start) { Node end = gdb.getNodeById(random.nextInt(INT)); final Rels type = Rels.randomRel(random); if (type.ordinal() % 2 == 0) { start.createRelationshipTo(end, type); } else { end.createRelationshipTo(start, type); } } } Am 12.08.2011 um 02:55 schrieb ahmed.elsharkasy: My graph contains 281 nodes with a total of 350 relationships . average outgoing edges per node less than 10 and the same for in going edges what do you think? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3247898.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
Re: [Neo4j] cant use index after commit
i knew now what swallows the time , it is graphdb.shutdown i am calling after the travsersal , it took 500 millisecond to shutdown the db ??!!! -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3247993.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
Re: [Neo4j] cant use index after commit
This is system related or an issue in neo4j ? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3248019.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
Re: [Neo4j] cant use index after commit
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
Re: [Neo4j] cant use index after commit
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
Re: [Neo4j] cant use index after commit
i am running on Ubuntu 11.04 , neo4j advanced-1.4 and i use only one thread but i use nested transaction i.e there is an outer transaction beside the transaction shown in the code , any problems with that? i tried reversing the order but still the same problem -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3234724.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
Re: [Neo4j] cant use index after commit
is the that the commit of the outer tx where it fails? and do you finish the outer tx sucessfully? does it work with a single transaction? Cheers Michael Am 08.08.2011 um 09:01 schrieb ahmed.elsharkasy: i am running on Ubuntu 11.04 , neo4j advanced-1.4 and i use only one thread but i use nested transaction i.e there is an outer transaction beside the transaction shown in the code , any problems with that? i tried reversing the order but still the same problem -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3234724.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
Re: [Neo4j] cant use index after commit
Ahmed, I tried it both on MacOS and Ubuntu with the following example and it worked fine. public class Test { public static void main(String[] args) throws IOException { final ImpermanentGraphDatabase graphDb = new ImpermanentGraphDatabase(); try { createNode(graphDb); Transaction outer = graphDb.beginTx(); try { Transaction inner = graphDb.beginTx(); Node node = graphDb.index().forNodes(index).get(name, Ahmed).getSingle(); node.delete(); graphDb.index().forNodes(index).remove(node); inner.success(); inner.finish(); } finally { outer.success(); outer.finish(); } } finally { graphDb.shutdown(); } } private static void createNode(ImpermanentGraphDatabase graphDb) { final Transaction tx = graphDb.beginTx(); Node node = graphDb.createNode(); graphDb.index().forNodes(index).add(node, name, Ahmed); tx.success(); tx.finish(); } } pom.xml project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion groupIdorg.neo4j/groupId artifactIdtest/artifactId version0.0.1-SNAPSHOT/version packagingjar/packaging nameneo4j-test/name properties project.build.sourceEncodingUTF-8/project.build.sourceEncoding /properties dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.8.1/version scopetest/scope /dependency dependency groupIdorg.neo4j/groupId artifactIdneo4j/artifactId version1.4/version /dependency /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version2.3.2/version configuration source1.6/source target1.6/target compilerArgument-Xlint:all/compilerArgument showWarningstrue/showWarnings showDeprecationfalse/showDeprecation /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId version1.1/version executions execution goals goaljava/goal /goals /execution /executions configuration mainClassorg.neo4j.test.Test/mainClass /configuration /plugin /plugins /build /project Am 08.08.2011 um 09:41 schrieb ahmed.elsharkasy: no the commit of the inner transaction is the which fails (the commit on the deletion of the node). i tried before using only the outer transaction before adding the node deletion code and it was going on just fine . the inner commit together with the node deletion is the cause of the problem , this exception is thrown in tx.finish() of the inner commit -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3234793.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
Re: [Neo4j] cant use index after commit
is their any problem if my logic needs to shutdown the graph before the inner transaction and start it again directly before it? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3234930.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
Re: [Neo4j] cant use index after commit
finally i solved the problem :) The problem was that i my logic before the node deletion , i used the batchInserterIndex and IndexProviders Objects and when i shutdown them and start a graph database instance , i only shut down the inserter and forgot to shutdown the provider Thanks a lot for the support -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3234960.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
Re: [Neo4j] cant use index after commit
Why would you want to do that? You should shutdown the graphdb only at the end of your program. Michael Am 08.08.2011 um 10:38 schrieb ahmed.elsharkasy: is their any problem if my logic needs to shutdown the graph before the inner transaction and start it again directly before it? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3234930.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
Re: [Neo4j] cant use index after commit
i mean the graphdatabaseService , how can i keep it open while opening a batchInserter instance? i think i cant access the store with both of them at the same time -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3235029.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
Re: [Neo4j] cant use index after commit
ok, you can't use them both in one go that's right. so after shutting down the batch-inserter-index-provider and the batch-inserter you can use the embedded API on the same store. That's also how Neo4j-Spatial does it's two step import of openstreetmap data. First bulk load the data and then use the transactional embedded API to do some corrections / aggregations on top of that. Michael Am 08.08.2011 um 11:12 schrieb ahmed.elsharkasy: i mean the graphdatabaseService , how can i keep it open while opening a batchInserter instance? i think i cant access the store with both of them at the same time -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3235029.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
Re: [Neo4j] cant use index after commit
what will save me from doing so is if there is a way to batch find a group of words in one time using java instead of iterating through words and searching for one by one -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3235231.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
Re: [Neo4j] cant use index after commit
You can use the lucene query API to do that (see http://lucene.apache.org/java/2_4_0/queryparsersyntax.html#Fields) nodeIndex.query(name: word1 OR name:word2 OR name: word3); If that is what you mean by batch finding a group of words Michael Am 08.08.2011 um 12:54 schrieb ahmed.elsharkasy: what will save me from doing so is if there is a way to batch find a group of words in one time using java instead of iterating through words and searching for one by one -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3235231.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
Re: [Neo4j] cant use index after commit
i am having this exception thrown in tx.finish , this means that the commit is not made but i dont know why -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3233067.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
Re: [Neo4j] cant use index after commit
Which version? 1.4 or 1.4.1? From: user-boun...@lists.neo4j.org [user-boun...@lists.neo4j.org] On Behalf Of ahmed.elsharkasy [ahmed.elshark...@gmail.com] Sent: Sunday, August 07, 2011 8:42 AM To: user@lists.neo4j.org Subject: [Neo4j] cant use index after commit i deleted some nodes and committed and was successfuly deleted but in the same run i tried to start my batch index again and i faced this exception Exception in thread main java.lang.RuntimeException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: nativefsl...@write.lock at org.neo4j.index.impl.lucene.LuceneBatchInserterIndex.instantiateWriter(LuceneBatchInserterIndex.java:240) at org.neo4j.index.impl.lucene.LuceneBatchInserterIndex.init(LuceneBatchInserterIndex.java:72) at org.neo4j.index.impl.lucene.LuceneBatchInserterIndexProvider.index(LuceneBatchInserterIndexProvider.java:135) at org.neo4j.index.impl.lucene.LuceneBatchInserterIndexProvider.nodeIndex(LuceneBatchInserterIndexProvider.java:102) at databaseManagers.Neo4jDatabaseManager.startIndex(Neo4jDatabaseManager.java:266) at databaseManagers.Neo4jDatabaseManager.deleteDocument(Neo4jDatabaseManager.java:155) at databaseManagers.Neo4jDatabaseManager.main(Neo4jDatabaseManager.java:450) 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.LuceneBatchInserterIndex.instantiateWriter(LuceneBatchInserterIndex.java:235) ... 6 more what is the problem? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3233038.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
Re: [Neo4j] cant use index after commit
1.4 -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3233172.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
Re: [Neo4j] cant use index after commit
Give 1.4.1 a try. On Aug 7, 2011, at 10:36 AM, ahmed.elsharkasy ahmed.elshark...@gmail.com wrote: 1.4 -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3233172.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
Re: [Neo4j] cant use index after commit
Hi Ahmed, if you are still having trouble, could you please provide a bare bones test case that reliably reproduces the problem? cheers, CG On Sun, Aug 7, 2011 at 6:56 PM, ahmed.elsharkasy ahmed.elshark...@gmail.com wrote: Are you sure no other reason? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3233302.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
Re: [Neo4j] cant use index after commit
Ahmed, please make sure not to mix BatchInserter and the normal API in the same program. Batch-Inserter does not support removal of nodes and relationships. Cheers Michael Am 07.08.2011 um 18:22 schrieb Chris Gioran: Hi Ahmed, if you are still having trouble, could you please provide a bare bones test case that reliably reproduces the problem? cheers, CG On Sun, Aug 7, 2011 at 6:56 PM, ahmed.elsharkasy ahmed.elshark...@gmail.com wrote: Are you sure no other reason? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3233302.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 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user