11:43:13 ERROR com.thinkaurelius.titan.graphdb.database.StandardTitanGraph - Could not commit transaction [1] due to exception
java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)
at java.util.ArrayList$Itr.next(ArrayList.java:851)
at com.google.common.collect.Iterators$7.computeNext(Iterators.java:651)
...
tx = graph.tx().createThreadedTx() // graph.newTransaction() also does not helps here
g = tx.traversal()
...
getOrCreate = { id -> g.V().has("uid", id).tryNext().orElseGet{ tx.addV("uid", id).next() } }
...
loadFile = { fname ->
...
v1 = getOrCreate(id_from)
v2 = getOrCreate(id_to)
e = v1.addEdge("friend", v2)
tx.commit(); // got exception here!
tx = graph.tx().createThreadedTx();
g = tx.traversal()
}
threadPool = Executors.newFixedThreadPool(4)
new File("${file_path}/").listFiles().sort{ it.name }.each {
threadPool.submit({-> loadFile it.name } as Callable);
}
threadPool.shutdown();
threadPool.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);
tx = graph.tx().createThreadedTx();
--
You received this message because you are subscribed to the Google Groups "Aurelius" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraph...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/6ad9a6b0-b924-4cc3-b22f-d076594eb28c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.