Just start from a fresh database with 1.4 and you wont run into this issue... No other change required.
Den torsdagen den 21:e juli 2011 skrev Joel Cordeiro<jkorde...@gmail.com>: > Thank you for the answer. The data set is not critical. It is easy to > reinsert with the BatchInserter of 1.4. > What is critical on my dataset is to keep it updated at runtime, that's why > i need to add and remove nodes, and consequently their relationships. > How can i solve that issue? > > Best regards, > Joel Filipe Antunes Cordeiro > jkorde...@gmail.com > j...@student.dei.uc.pt > > > 2011/7/21 Mattias Persson <matt...@neotechnology.com> > >> I'm sad to say that there was a bug in BatchInserter in M04 and M05 which >> could create some invalid relationship records. Is it a critical data set >> or >> is it easy to reinsert it with the BatchInserter of 1.4? >> >> 2011/7/21 Joel Cordeiro <jkorde...@gmail.com> >> >> > Yes, the data was inserted with BatchInserter on 1.4M04. >> > >> > Joel Filipe Antunes Cordeiro >> > jkorde...@gmail.com >> > j...@student.dei.uc.pt >> > >> > >> > 2011/7/21 Mattias Persson <matt...@neotechnology.com> >> > >> > > Was your data inserted with the BatchInserter on 1.4.M05 or 1.4.M04 or >> > > similar? >> > > >> > > 2011/7/21 Joel Cordeiro <jkorde...@gmail.com> >> > > >> > > > Hi, >> > > > >> > > > i'm getting the followed stack trace after trying to delete the >> > > > relationships of a node, followed by the delete of the node (the goal >> > is >> > > to >> > > > remove the node from the store, which must have no relationships, >> > before >> > > > doing that). >> > > > >> > > > org.neo4j.kernel.impl.nioneo.store.InvalidRecordException: >> > Record[2592] >> > > > not >> > > > in use >> > > > at >> > > > >> > > > >> > > >> > >> org.neo4j.kernel.impl.nioneo.store.RelationshipStore.getRecord(RelationshipStore.java:230) >> > > > at >> > > > >> > > > >> > > >> > >> org.neo4j.kernel.impl.nioneo.store.RelationshipStore.getRecord(RelationshipStore.java:97) >> > > > at >> > > > >> > > > >> > > >> > >> org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.disconnectRelationship(WriteTransaction.java:778) >> > > > at >> > > > >> > > > >> > > >> > >> org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.relDelete(WriteTransaction.java:729) >> > > > at >> > > > >> > > > >> > > >> > >> org.neo4j.kernel.impl.persistence.PersistenceManager.relDelete(PersistenceManager.java:166) >> > > > at >> > > > >> > > > >> > > >> > >> org.neo4j.kernel.impl.core.NodeManager.deleteRelationship(NodeManager.java:864) >> > > > at >> > > > >> > > > >> > > >> > >> org.neo4j.kernel.impl.core.RelationshipImpl.delete(RelationshipImpl.java:148) >> > > > at >> > > > >> > > > >> > > >> > >> org.neo4j.kernel.impl.core.RelationshipProxy.delete(RelationshipProxy.java:50) >> > > > at >> > > > >> > > > >> > > >> > >> pt.uc.dei.sdic.plugin.knowledge.neo4j.Neo4JRepository.remove(Neo4JRepository.java:1064) >> > > > >> > > > The code i implemented to do that is the follow: >> > > > >> > > > Node node = indexService.get(SDKE.FIELD_LOCAL_PATH, >> > > > sdkeID).getSingle(); >> > > > Transaction t = graphDb.beginTx(); >> > > > try >> > > > { >> > > > indexService.remove(node); >> > > > for(Relationship relation: node.getRelationships()) >> > > > { >> > > > relation.delete(); >> > > > -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user