You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FFM-11873 Lock for entirety of safeMetricsRequestMap.get() (#356)
* FFM-11873 Lock for entirety of safeMetricsRequestMap.get()
**What**
- Performs a Read Lock for the entirety of `safeMetricsRequestMap.get()`
**Why**
- I saw an error log in QA saying `"fatal error: concurrent map
iteration and map write"` and it pointed at this code. It turns out
the copy that we were doing to reduce the amount of time the lock was
held was a shallow copy of the maps reference and not a deep copy of its
contents.
**Testing**
- Benchmarked performing a deep copy vs locking for the entirety of
`get()`
0 commit comments