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

Extend CallableWithNdc to also clone MDC

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      CallableWithNdc currently clones only NDC. Hive LLAP uses MDC all over and have to implement custom threadpools to copy MDC over to NDC and vice versa (with reflection!!) to keep the context around.
      Two possibilities will make this easier
      1) Keep CallableWithNdc class around and add cloning of MDC
      2) Add new class CallableWithDiagnosticContext, deprecate CallableWithNdc and change all tez code to use CallableWithDiagnosticContext

      1 is easier as it doesn't change anything. 2 is cleaner wrt to class name but little intrusive.

      Attachments

        1. TEZ-3721.1.patch
          2 kB
          Prasanth Jayachandran

        Activity

          People

            prasanth_j Prasanth Jayachandran
            prasanth_j Prasanth Jayachandran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: