Skip to content

copy-store fails when graph size is greater than Integer.MAXVALUE #45

@gmann11

Description

@gmann11

copy-store fails on a large graph where the max id > max integer with:

Copying from /x/graph.db to /y/graph.db ingoring rel-types [] ignoring properties [false] ignoring labels [] removing nodes with labels [] keep node ids false 
Exception in thread "main" java.lang.IllegalArgumentException: initial capacity cannot be less than 0
    at org.eclipse.collections.impl.map.mutable.primitive.LongLongHashMap.<init>(LongLongHashMap.java:87)
    at org.neo4j.tool.StoreCopy.copyNodes(StoreCopy.java:219)
    at org.neo4j.tool.StoreCopy.copyStore(StoreCopy.java:82)
    at org.neo4j.tool.StoreCopy.main(StoreCopy.java:49)

It looks like there is a cast from long to int on StoreCopy.java:219 causing the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions