Peter,

I guess that was the problem. If I exclude certain nodes from calling
getRelationships() on them,
my application runs so far (still getting a lot of memory mapping warnings,
though).

Thanks,
Thomas Lutz

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im
Auftrag von Peter Neubauer
Gesendet: Mittwoch, 3. November 2010 11:39
An: Neo4j user discussions
Betreff: Re: [Neo4j] InvalidRecordException: Node[2] not part of
firstNode[0] or secondNode[0]

Thomas,
are you using the ReadOnly DB service at the same time as the
Batchinserter, so you are looking while the insertion is happening?

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Tue, Nov 2, 2010 at 9:42 PM, Thomas Lutz
<[email protected]> wrote:
> Hello,
>
> I'm using neo4j version 1.1 on Debian with the readonlyGraphDbService to
get
> nodes and relationships
> and the BatchInserter to insert new things.
>
> When calling
> "for (Relationship rel : node.getRelationships()) {"
> (node is from "for (Node node : readonlyGraph.getAllNodes()) {" before) I
> get this (snippet of trace):
>
> Nov 2, 2010 8:11:37 PM
> org.neo4j.kernel.impl.nioneo.store.PersistenceWindowPool logWarn
> WARNING: [target/neo4j-db/neostore.propertystore.db.index] Unable to
memory
> map
> Nov 2, 2010 8:11:37 PM
> org.neo4j.kernel.impl.nioneo.store.PersistenceWindowPool logWarn
> WARNING: [target/neo4j-db/neostore.propertystore.db.index.keys] Unable to
> memory map
> Nov 2, 2010 8:11:37 PM
> org.neo4j.kernel.impl.nioneo.store.PersistenceWindowPool logWarn
> WARNING: [target/neo4j-db/neostore.relationshipstore.db] Unable to memory
> map
> org.neo4j.kernel.impl.nioneo.store.InvalidRecordException: Node[2] not
part
> of firstNode[0] or secondNode[0]
> 02 Nov 2010 20:11:37,777 ERROR BatchCreateRevision:188 - caught exception:
> org.neo4j.kernel.impl.nioneo.store.InvalidRecordException: Node[2] not
part
> of firstNode[0] or secondNode[0]
> org.neo4j.kernel.impl.nioneo.store.InvalidRecordException: Node[2] not
part
> of firstNode[0] or secondNode[0]
>        at
>
org.neo4j.kernel.impl.nioneo.xa.ReadTransaction.getMoreRelationships(ReadTra
> nsaction.java:132)
>        at
>
org.neo4j.kernel.impl.nioneo.xa.NioNeoDbPersistenceSource$ReadOnlyResourceCo
> nnection.getMoreRelationships(NioNeoDbPersistenceSource.java:280)
>        at
>
org.neo4j.kernel.impl.persistence.PersistenceManager.getMoreRelationships(Pe
> rsistenceManager.java:100)
>        at
>
org.neo4j.kernel.impl.core.NodeManager.getMoreRelationships(NodeManager.java
> :592)
>        at
>
org.neo4j.kernel.impl.core.NodeImpl.getMoreRelationships(NodeImpl.java:350)
>        at
>
org.neo4j.kernel.impl.core.NodeImpl.ensureFullRelationships(NodeImpl.java:33
> 8)
>        at
> org.neo4j.kernel.impl.core.NodeImpl.getAllRelationships(NodeImpl.java:93)
>        at
> org.neo4j.kernel.impl.core.NodeImpl.getRelationships(NodeImpl.java:155)
>        at
> org.neo4j.kernel.impl.core.NodeProxy.getRelationships(NodeProxy.java:62)
>
>
> Is the InvalidRecordException caused by the "Unable to memory map"
warnings?
> Or what does the InvalidRecordException here exactly mean?
>
> Any help would be greatly appreciated.
>
> Best regards,
> Thomas Lutz
>
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to