Uploaded image for project: 'Pentaho Analysis - Mondrian'
  1. Pentaho Analysis - Mondrian
  2. MONDRIAN-1171

Usage of internal method org.apache.log4j.MDC.getContext

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: Medium
    • Resolution: Duplicate
    • Affects Version/s: 3.5.0 GA (4.8.0 GA Suite Release)
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:
      None
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      `mondrian.server.Execution.copyMDC(Execution.java:113)` uses `org.apache.log4j.MDC.getContext()Ljava/util/Hashtable` which is not part of the public log4j API.

      Code comment:

      /**

      • Get the current thread's MDC as a hashtable. This method is
      • intended to be used internally.
      • */

      This breaks compatibility with log4j-over-slf4j and ch.qos.logback.log4j-bridge. It would be great if it could be implemented another way.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              qerub Christoffer Sawicki
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: