ConcurrentModificationException in java.util.Map MDC
User report: https://groups.google.com/d/msg/akka-user/3JrDRdCQiIA/R_5c8cVlF-kJ
We should create a copy when converting to the scala immutable Map in DiagnosticLoggingAdapter.setMDC
We should create a copy when converting to the scala immutable Map in DiagnosticLoggingAdapter.setMDC
Leave a comment
on 2014-03-24 07:19 *
By Eugene Platonov
Isn't it possible to get a CME during copy creation?
on 2014-03-24 13:33 *
By Patrik Nordwall
yes, if the user is sharing the mutable Map across threads (horror), but by doing the copy in the calling thread of setMDC we reduce the problem a lot. Note that now the iteration is done by the logger actor.