Uploaded image for project: 'Apache Tez'
  1. Apache Tez
  2. TEZ-3859 Tez JDK9 Support
  3. TEZ-4122

TestMRRJobsDAGApi should set TezClassLoader

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.10.0, 0.9.3
    • None
    • None

    Description

      ReflectionUtils.getClazz relies on the context classloader,

              clazz = Class.forName(className, true, Thread.currentThread().getContextClassLoader());
      

      which essentially uses the class loader from the calling thread instead of the system class loader. For classes the need to TezClassLoader which allows the classes to be added to the classpath at runtime, this can cause issues as the context class loader is from the test framework.

      Attachments

        1. TEZ-4122.01.patch
          1 kB
          László Bodor

        Issue Links

          Activity

            People

              abstractdog László Bodor
              abstractdog László Bodor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: