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

Get causing NegativeArraySizeException #705

Open
NoahBGriffin opened this issue Oct 16, 2024 · 0 comments
Open

Get causing NegativeArraySizeException #705

NoahBGriffin opened this issue Oct 16, 2024 · 0 comments

Comments

@NoahBGriffin
Copy link

NoahBGriffin commented Oct 16, 2024

Hello Hollow devs!
I'm working with a pretty large table that gets stored in Hollow that also has a high cardinality. Upon investigation it looks like it's from these lines
https://github.com/Netflix/hollow/blob/master/hollow/src/main/java/com/netflix/hollow/core/memory/SegmentedLongArray.java#L49-L50
and is the result of integer overflow caused by the size/cardinality of my table.

Here is the stack trace:

java.lang.NegativeArraySizeException
	at com.netflix.hollow.core.memory.SegmentedLongArray.<init>(SegmentedLongArray.java:50)
	at com.netflix.hollow.core.memory.encoding.FixedLengthElementArray.<init>(FixedLengthElementArray.java:68)
	at com.netflix.hollow.core.index.HollowHashIndexBuilder.growIntermediateHashTable(HollowHashIndexBuilder.java:263)
	at com.netflix.hollow.core.index.HollowHashIndexBuilder.buildIndex(HollowHashIndexBuilder.java:165)
	at com.netflix.hollow.core.index.HollowHashIndex.reindexHashIndex(HollowHashIndex.java:93)
	at com.netflix.hollow.core.index.HollowHashIndex.<init>(HollowHashIndex.java:84)
	at com.netflix.hollow.core.index.HollowHashIndex.<init>(HollowHashIndex.java:61)
	at com.netflix.hollow.api.consumer.index.HashIndexSelect.<init>(HashIndexSelect.java:85)
	at com.netflix.hollow.api.consumer.index.HashIndexSelect.<init>(HashIndexSelect.java:93)
	at com.netflix.hollow.api.consumer.index.HashIndex.<init>(HashIndex.java:44)
	at com.netflix.hollow.api.consumer.index.HashIndex$Builder.usingBean(HashIndex.java:100)
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

1 participant