This is an automated email from the ASF dual-hosted git repository.

jeagles pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/tez.git


The following commit(s) were added to refs/heads/branch-0.9 by this push:
     new 0dea7e8  TEZ-4122. TestMRRJobsDAGApi should set TezClassLoader
0dea7e8 is described below

commit 0dea7e80685a894efdf1b9ab4267c82857e850a4
Author: László Bodor <[email protected]>
AuthorDate: Mon Feb 10 08:56:26 2020 -0600

    TEZ-4122. TestMRRJobsDAGApi should set TezClassLoader
    
    Signed-off-by: Jonathan Eagles <[email protected]>
    (cherry picked from commit 86182d0355c89bd632d5617ba517cea469128fb3)
---
 tez-tests/src/test/java/org/apache/tez/mapreduce/TestMRRJobsDAGApi.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/tez-tests/src/test/java/org/apache/tez/mapreduce/TestMRRJobsDAGApi.java 
b/tez-tests/src/test/java/org/apache/tez/mapreduce/TestMRRJobsDAGApi.java
index a756cf9..96b7bbf 100644
--- a/tez-tests/src/test/java/org/apache/tez/mapreduce/TestMRRJobsDAGApi.java
+++ b/tez-tests/src/test/java/org/apache/tez/mapreduce/TestMRRJobsDAGApi.java
@@ -71,6 +71,7 @@ import org.apache.tez.client.TezClientUtils;
 import org.apache.tez.client.TezClient;
 import org.apache.tez.client.TezAppMasterStatus;
 import org.apache.tez.common.ReflectionUtils;
+import org.apache.tez.common.TezClassLoader;
 import org.apache.tez.common.TezUtils;
 import org.apache.tez.common.counters.FileSystemCounter;
 import org.apache.tez.common.counters.TaskCounter;
@@ -833,6 +834,7 @@ public class TestMRRJobsDAGApi {
           .getConfigurationBytes());
 
       try {
+        
Thread.currentThread().setContextClassLoader(TezClassLoader.getInstance());
         ReflectionUtils.getClazz(RELOCALIZATION_TEST_CLASS_NAME);
         LOG.info("Class found");
         FileSystem fs = FileSystem.get(conf);

Reply via email to