Uploaded image for project: 'Apache Tez'
  1. Apache Tez
  2. TEZ-4039

Tez should inject dag id, query id into MDC

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.10.3
    • None
    • None

    Description

      Tez currently uses CallableWithNdc to store thread specific context. It should also inject the context into MDC so that pattern layout can dump the contexts from MDC (with NDC it is not possible to read the context in pattern lyaout).

      Hive for example, sets queryId in the MDC and pattern layout prints the queryId

       

      %d{ISO8601} %-5p [%t (%X{queryId})] %c{2}: %m%n
      

      Llap sets dagId, fragmentId and queryId into MDC which is used for queryId based routing of logging.

      Similarly, Tez AM should set dagId and queryId (if available) into MDC. 

      Attachments

        1. TEZ-4039.05.patch
          25 kB
          László Bodor
        2. TEZ-4039.04.patch
          24 kB
          László Bodor
        3. TEZ-4039.03.patch
          15 kB
          László Bodor
        4. TEZ-4039.02.patch
          13 kB
          László Bodor
        5. TEZ-4039.01.patch
          12 kB
          László Bodor

        Issue Links

          Activity

            People

              abstractdog László Bodor
              prasanth_j Prasanth Jayachandran
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 4.5h
                  4.5h