prometheus-haskell icon indicating copy to clipboard operation
prometheus-haskell copied to clipboard

FYI easy to trigger GHC bug with prometheus-client

Open robinp opened this issue 7 years ago • 2 comments

I encountered https://ghc.haskell.org/trac/ghc/ticket/13751 while using Prometheus, in case others would run into the bug. In the mean time, with using RTS option -N1 or -N2 the bug didn't reproduce. It doesn't mean it's not there of course.

robinp avatar May 27 '17 05:05 robinp

Is there anything that can be done in the library to prevent users from running into this problem?

fimad avatar Jul 02 '17 22:07 fimad

I noticed that making some fields stricter in the summary metric calculation, I couldn't reproduce. But that's still not a hard guarantee.

Note that the bug was fixed in the meantime, and will be released in GHC 8.2. If users experience the hanging (or even proactively), should consider limiting thread count to -N2.

robinp avatar Jul 03 '17 20:07 robinp