Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gmann11 opened this issue May 6, 2019 · 4 comments
Open

Comments

@gmann11
Copy link

gmann11 commented May 6, 2019

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.

@jexp
Copy link
Owner

jexp commented May 6, 2019

@gmann11 where do you see this cast? Can't see it? There is only one cast to int for a percentage output.

Which version are you looking at?

@jexp
Copy link
Owner

jexp commented May 6, 2019

jexp added a commit that referenced this issue May 6, 2019
@jexp
Copy link
Owner

jexp commented May 6, 2019

I pushed a fix to the 3.5 branch, could you try to build and use that?

@jexp
Copy link
Owner

jexp commented May 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants