This is an automated email from the ASF dual-hosted git repository.
jeagles pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tez.git
The following commit(s) were added to refs/heads/master by this push:
new 86182d0 TEZ-4122. TestMRRJobsDAGApi should set TezClassLoader
86182d0 is described below
commit 86182d0355c89bd632d5617ba517cea469128fb3
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]>
---
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);