otel-arrow icon indicating copy to clipboard operation
otel-arrow copied to clipboard

Arrow tests reveal data races in `RecordBuilderStats`

Open jmacd opened this issue 8 months ago • 0 comments

The RecordBuilderStats object uses non-atomic increments for objects that are shared. The reason this is not as simple as using atomic.Int64, for example, is that there is also an HDRHistogram in there.

This is (as far as a I know) the only reason we couldn't enable race detection for all modules in this repository.

jmacd avatar Jun 04 '24 22:06 jmacd