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

StackOverflow when adding two AVLTreeDigest #125

Open
guillaumepitel opened this issue Apr 9, 2019 · 4 comments
Open

StackOverflow when adding two AVLTreeDigest #125

guillaumepitel opened this issue Apr 9, 2019 · 4 comments

Comments

@guillaumepitel
Copy link

I have a long running dstributed application that computes various information on the web graph. I store a digest of some values in a AVLTreeDigest, and sometimes I need to collect all digests, so I need to add them all. And this happened :
2019-04-09 16:20:19,113 82839181 ERROR [grizzly-http-server-8] c.e.w.b.LogarithmicStatistics - Error while trying to add 3.000e-13[0.0],1.231e-06[1.0] to 3.000e-13[0.0],3.002e-13[0.5],3.033e-13[0.75],3.127e-13[0.9],3.380e-13[0.95],4.338e-13[0.975],6.264e-13[0.987],1.219e-12[0.995],6.652e-08[1.0] java.lang.StackOverflowError: null at com.tdunning.math.stats.AVLGroupTree.add(AVLGroupTree.java:159) at com.tdunning.math.stats.AVLTreeDigest.add(AVLTreeDigest.java:98) at com.tdunning.math.stats.AVLTreeDigest.compress(AVLTreeDigest.java:186) at com.tdunning.math.stats.AVLTreeDigest.add(AVLTreeDigest.java:156) at com.tdunning.math.stats.AVLTreeDigest.compress(AVLTreeDigest.java:186) at com.tdunning.math.stats.AVLTreeDigest.add(AVLTreeDigest.java:156) at com.tdunning.math.stats.AVLTreeDigest.compress(AVLTreeDigest.java:186) at com.tdunning.math.stats.AVLTreeDigest.add(AVLTreeDigest.java:156) at com.tdunning.math.stats.AVLTreeDigest.compress(AVLTreeDigest.java:186) at com.tdunning.math.stats.AVLTreeDigest.add(AVLTreeDigest.java:156) at com.tdunning.math.stats.AVLTreeDigest.compress(AVLTreeDigest.java:186) at com.tdunning.math.stats.AVLTreeDigest.add(AVLTreeDigest.java:156) at com.tdunning.math.stats.AVLTreeDigest.compress(AVLTreeDigest.java:186) at com.tdunning.math.stats.AVLTreeDigest.add(AVLTreeDigest.java:156) at com.tdunning.math.stats.AVLTreeDigest.compress(AVLTreeDigest.java:186) at com.tdunning.math.stats.AVLTreeDigest.add(AVLTreeDigest.java:156) at com.tdunning.math.stats.AVLTreeDigest.compress(AVLTreeDigest.java:186) at com.tdunning.math.stats.AVLTreeDigest.add(AVLTreeDigest.java:156) at com.tdunning.math.stats.AVLTreeDigest.compress(AVLTreeDigest.java:186) at com.tdunning.math.stats.AVLTreeDigest.add(AVLTreeDigest.java:156) at com.tdunning.math.stats.AVLTreeDigest.compress(AVLTreeDigest.java:186) at com.tdunning.math.stats.AVLTreeDigest.add(AVLTreeDigest.java:156) at com.tdunning.math.stats.AVLTreeDigest.compress(AVLTreeDigest.java:186)

This happens probably because the histogram on which add() is called is empty.

@tdunning
Copy link
Owner

tdunning commented Apr 9, 2019 via email

@guillaumepitel
Copy link
Author

Latest (3.2)

@tdunning
Copy link
Owner

tdunning commented Apr 2, 2021

@guillaumepitel Do you have any further information about this problem?

Were you able to switch to MergingDigest or to head and solve the problem?

I would like to decide whether this is a blocker for a 3.3 release (or an incentive!)

@guillaumepitel
Copy link
Author

Hi @tdunning unfortunately, I couldn't make it work, so we decided to use another solution in the meantime. Sorry that's not very helpful.

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