-
Notifications
You must be signed in to change notification settings - Fork 41
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
SyncHistogram::refresh() freezes #120
Comments
Ah, so, this should probably be documented better. |
I'm sorry if I misunderstand how this works. I tried I store recorders in thread local, call |
Hmm.. Could you try augmenting the code where you call |
Could that be a result of a time budget consumed? https://github.com/HdrHistogram/HdrHistogram_rust/blob/main/src/sync/mod.rs#L332 |
I'm getting recorders within a
tokio::spawn
closure:When all tasks (1 million of them, i.e. that many
record()
calls) were processed and there's nothing else to record, I'm doing a refresh:My program hangs forever on the
refresh()
, because the merging message is the last thing I'm seeing on stdout. According totop
, my process doesn't do anything. I never tried debugging (as ingdb
) for Rust programs so can't tell more at this point, will try it later.By the way, everything used to be working fine whenever I called
refresh()
roughly once a second during the task processing. The freeze started happening when I decided one big merge when everything's done is better because it stops blocking recorders amid task processing.Is this a crate bug, or maybe I'm using the crate wrong?
Thanks.
The text was updated successfully, but these errors were encountered: