Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14351

Harden MDCLoggingContext.clear depth tracking

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.6
    • Component/s: None
    • Labels:
      None

      Description

      MDCLoggingContext tracks recursive calls and only clears when the recursion level is back down to 0.  If a caller forgets to register and ends up calling clear any ways, then this can mess things up.  Additionally I found at least one place this is occurring, which led me to investigate this matter.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dsmiley David Smiley
                Reporter:
                dsmiley David Smiley
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m