You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by "Aggarwal-Raghav (via GitHub)" <gi...@apache.org> on 2026/06/01 17:59:13 UTC

Re: [PR] TEZ-4719: Move to Junit6 [tez]

Aggarwal-Raghav commented on PR #502:
URL: https://github.com/apache/tez/pull/502#issuecomment-4595169110

   @abstractdog , this JIRA is blocked in Hadoop-3.5.0. As a workaround to bypass, I have added a `tez-tests/src/test/java/org/junit/Assert.java` this is just a temporary workaround.
   
   I have ran the UT in my folk repo github actions (URL might be deleted in few days): 
   https://github.com/Aggarwal-Raghav/tez/actions/runs/26771625845
   ```
   [INFO] Running org.apache.tez.test.TestAMRecovery
   [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.386 s <<< FAILURE! -- in org.apache.tez.test.TestAMRecovery
   [ERROR] org.apache.tez.test.TestAMRecovery -- Time elapsed: 1.386 s <<< ERROR!
   java.lang.NoClassDefFoundError: org/junit/Assert
           at org.apache.hadoop.test.GenericTestUtils.assertExists(GenericTestUtils.java:277)
           at org.apache.hadoop.test.GenericTestUtils.getTestDir(GenericTestUtils.java:221)
           at org.apache.hadoop.test.GenericTestUtils.getTestDir(GenericTestUtils.java:230)
           at org.apache.hadoop.yarn.server.MiniYARNCluster.<init>(MiniYARNCluster.java:178)
           at org.apache.hadoop.yarn.server.MiniYARNCluster.<init>(MiniYARNCluster.java:240)
           at org.apache.hadoop.yarn.server.MiniYARNCluster.<init>(MiniYARNCluster.java:252)
           at org.apache.tez.test.MiniTezCluster.<init>(MiniTezCluster.java:91)
           at org.apache.tez.test.TestAMRecovery.beforeClass(TestAMRecovery.java:113)
   Caused by: java.lang.ClassNotFoundException: org.junit.Assert
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
           ... 8 more
   
   [INFO] Running org.apache.tez.test.TestAMRecoveryAggregationBroadcast
   [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.460 s <<< FAILURE! -- in org.apache.tez.test.TestAMRecoveryAggregationBroadcast
   [ERROR] org.apache.tez.test.TestAMRecoveryAggregationBroadcast -- Time elapsed: 1.460 s <<< ERROR!
   java.lang.NoClassDefFoundError: org/junit/Assert
           at org.apache.hadoop.test.GenericTestUtils.assertExists(GenericTestUtils.java:277)
           at org.apache.hadoop.test.GenericTestUtils.getTestDir(GenericTestUtils.java:221)
           at org.apache.hadoop.test.GenericTestUtils.getTestDir(GenericTestUtils.java:230)
           at org.apache.hadoop.yarn.server.MiniYARNCluster.<init>(MiniYARNCluster.java:178)
           at org.apache.hadoop.yarn.server.MiniYARNCluster.<init>(MiniYARNCluster.java:240)
           at org.apache.hadoop.yarn.server.MiniYARNCluster.<init>(MiniYARNCluster.java:252)
           at org.apache.tez.test.MiniTezCluster.<init>(MiniTezCluster.java:91)
           at org.apache.tez.test.TestAMRecoveryAggregationBroadcast.setupAll(TestAMRecoveryAggregationBroadcast.java:131)
   Caused by: java.lang.ClassNotFoundException: org.junit.Assert
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
           ... 8 more
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@tez.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org