First I will describe the whole scheme. On the one machine running base Neo4j. On the second machine running a service that constantly fills the base neo4j data using REST-requests. To solve the internal task was written a web-application on java, which runs on the first machine and to retrieve data from the database using
GraphDatabaseService graphDb = new EmbeddedReadOnlyGraphDatabase("/home/sometime/neo4j-enterprise-1.4.1/data/graph.db"); IndexManager im = graphDb.index(); Index<Node> index = im.forNodes("WMC_Users"); IndexHits<Node> hit = index.get("UserID", UserID); Node root = hit.getSingle(); MightKnowEvaluator paths = new MightKnowEvaluator(); Traverser nodes = (Traverser) Traversal.description() .depthFirst() .prune(Traversal.pruneAfterDepth(2)) .relationships(DynamicRelationshipType.withName("KNOWS"), Direction.OUTGOING) .uniqueness(Uniqueness.NODE_PATH) .evaluator(paths) .traverse(root); and further manipulation of the nodes. I.e. our military application sends GET-request to this java-application and receiving data. Here is the problem. *Sometimes the java-application is broken and get the error:* java.lang.RuntimeException: java.io.FileNotFoundException: /home/sometime/neo4j-enterprise-1.4.1/data/graph.db/index/lucene/node/WMC_Users/_qec8.cfs (No such file or directory) org.neo4j.index.impl.lucene.LuceneDataSource.getIndexWriter(LuceneDataSource.java:601) org.neo4j.index.impl.lucene.LuceneDataSource.getIndexSearcher(LuceneDataSource.java:484) org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:248) org.neo4j.index.impl.lucene.LuceneIndex.get(LuceneIndex.java:187) neo.GetMightKnowUsers(neo.java:41) GetUsers.service(GetUsers.java:28) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) root cause but the base itself continues to function properly. AND REST-request to fill the data are successful. *Of course, I stop the base neo4j and start. But after this base is not up ... error:* org.neo4j.graphdb.TransactionFailureException: No mapping found for branchId[0x162374] at org.neo4j.kernel.impl.transaction.XaDataSourceManager.getXaResource(XaDataSourceManager.java:187) at org.neo4j.kernel.impl.transaction.TxManager.getXaResource(TxManager.java:989) at org.neo4j.kernel.impl.transaction.TxManager.buildRecoveryInfo(TxManager.java:463) at org.neo4j.kernel.impl.transaction.TxManager.recover(TxManager.java:276) at org.neo4j.kernel.impl.transaction.TxManager.init(TxManager.java:199) at org.neo4j.kernel.impl.transaction.TxModule.start(TxModule.java:96) at org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:161) at org.neo4j.kernel.EmbeddedGraphDbImpl.<init>(EmbeddedGraphDbImpl.java:189) at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:79) then I pick up the backup database and run everything in normal mode ... why sometimes this error? what could be the reason? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Base-sometimes-falls-tp3310617p3310617.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