Reason neo4j IndexOutOfBoundsException for getRelationships () [again]

This question is a duplicate of the Reason neo4j IndexOutOfBoundsException for getRelationships () except for one important point:

  • In this issue version neo4jwas 2.3.0-M02- fix is to upgrade to2.3.0-M03

  • This fix works, and now, after testing with 2.3.0-RC1, the same error returns again, only now with the full version 2.3.0.

I have a problem with the fact that the release has an error that the candidate and the final milestone did not release, but which of the previous steps did.

So, to be clear, I use Neo4j Release 2.3.0and get the following stack:

java.lang.IndexOutOfBoundsException
    at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.setOffset(MuninnPageCursor.java:419)
    at org.neo4j.kernel.impl.store.RelationshipGroupStore.readRecord(RelationshipGroupStore.java:143)
    at org.neo4j.kernel.impl.store.RelationshipGroupStore.forceGetRecord(RelationshipGroupStore.java:106)
    at org.neo4j.kernel.impl.api.store.StoreNodeRelationshipCursor.init(StoreNodeRelationshipCursor.java:89)
    at org.neo4j.kernel.impl.api.store.StoreAbstractNodeCursor.relationships(StoreAbstractNodeCursor.java:203)
    at org.neo4j.kernel.api.cursor.NodeItem$NodeItemHelper.getRelationships(NodeItem.java:81)
    at org.neo4j.kernel.impl.api.OperationsFacade.nodeGetRelationships(OperationsFacade.java:319)
    at org.neo4j.kernel.impl.core.NodeProxy$2.iterator(NodeProxy.java:201)
    at org.neo4j.kernel.impl.core.NodeProxy$2.iterator(NodeProxy.java:193)

From the code:

Iterable<Relationship> rels = node.getRelationships( ... any various args ... );
for (Relationship rel : rels) {
    // Some computation
}
+1
source share

Source: https://habr.com/ru/post/1614119/


All Articles