[ https://issues.apache.org/jira/browse/TEZ-4122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Turner Eagles updated TEZ-4122: ---------------------------------------- Description: ReflectionUtils.getClazz relies on the context classloader, {code} clazz = Class.forName(className, true, Thread.currentThread().getContextClassLoader()); {code} 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. > TestMRRJobsDAGApi should set TezClassLoader > ------------------------------------------- > > Key: TEZ-4122 > URL: https://issues.apache.org/jira/browse/TEZ-4122 > Project: Apache Tez > Issue Type: Sub-task > Reporter: László Bodor > Assignee: László Bodor > Priority: Major > Fix For: 0.10.0, 0.9.3 > > Attachments: TEZ-4122.01.patch > > > ReflectionUtils.getClazz relies on the context classloader, > {code} > clazz = Class.forName(className, true, > Thread.currentThread().getContextClassLoader()); > {code} > 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. -- This message was sent by Atlassian Jira (v8.3.4#803005)