Add counting, resetting hdr histogram for supporting the size method.

Declined
#3 · Created  · Last updated

Declined pull request

Closed by: ·2020-10-20

Description

The resetOnSnapshot behavior of the hdr histogram reservoir led to a snapshot reset when calling the readonly size method. This change makes the existing resetting histogram throw an UnsupportedOperationException on calling the size method, and provides an alternative, supporting the size method by using an atomic counter.

0 attachments

0 comments

Loading commits...