-
Notifications
You must be signed in to change notification settings - Fork 10
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
Merge may result in index out of bounds panic #4
Comments
@danielnelson Thanks for this issue. I haven't spent much time in this code recently so I'll need to re-familiarize myself, but having a test case will help a lot. Cheers! |
I've been looking at this issue further, without much luck. I know what happens but I don't understand why the code does what it does now. I feel like it would be helpful if the code mirrored other implementations more closely. Would you be open to a PR where I make a change like this? |
I've pushed version 0.2.0 of this crate with your fix. Thanks again! |
ty! |
I've been working on a feature for the metrics crate (metrics-rs/metrics#306) that uses the DDSketch::merge function, but under load I am frequently getting panics:
I have written a randomized test program:
For me, when run in release mode, this program crashes after a few seconds with:
This is a different line than the panics in my original program, so I'm not sure if it is the same issue.
The text was updated successfully, but these errors were encountered: