FYI, I just opened http://jira.qos.ch/browse/LBCLASSIC-253 regarding modifications to a child thread’s MDC affecting the parent thread.  It looks like LogbackMDCAdapter.clear() incorrectly calls clear() on the HashMap before removing the ThreadLocal.  This is bad because the map is still potentially shared with the parent thread at that point.

 

Regards,

Tommy