Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-316

BasicMDCAdapter leaks MDC information to non-child threads

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.7.x
    • Fix Version/s: 1.7.13
    • Component/s: Core API
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: All

      Description

      BasicMDCAdapter uses a ConcurrentHashMap which is passed by reference from the parent to the child. All child threads then share the same map reference and any modifications by one child is visible to the parent thread and also all other child threads.

        Attachments

          Activity

            People

            Assignee:
            ceki Ceki Gülcü
            Reporter:
            lcwik@google.com Lukasz Cwik
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: