Skip to content

Conversation

slfan1989
Copy link
Contributor

@slfan1989 slfan1989 commented Sep 13, 2025

Description of PR

HADOOP-19617 - [JDK17] Remove JUnit4 Dependency.

This is our final PR for the JUnit 5 upgrade. In this PR, we are completely removing all related JUnit 4 dependencies. As a result, org.hamcrest, which was previously brought in via JUnit 4, will no longer be available. This leads to a few minor code changes across three modules. Given the small scope of these changes, I’ve decided to include them in this PR instead of creating multiple separate ones.

The details are as follows:

  • Hadoop Auth

The original code made use of org.hamcrest. I have replaced it with AssertJ assertions to align with JUnit 5 standards.

  • HDFS - DiskBalancerResultVerifier.java

This class is currently unused in the project, so I’ve removed it.

  • HDFS -TestHAFsck.java

The original use of JUnit 4’s @RunWith(Parameterized.class) has been migrated to JUnit 5’s @ParameterizedClass to support parameterized testing.

  • Hadoop Azure - Parallelized.java

Similarly, since this class is not being referenced anywhere, I’ve removed it as well.

How was this patch tested?

CI Test.

For code changes:

  • Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
  • Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

@slfan1989 slfan1989 changed the title HADOOP-19617 - [JDK17] Remove JUnit4 Dependency. HADOOP-19617. [JDK17] Remove JUnit4 Dependency. Sep 13, 2025
@slfan1989
Copy link
Contributor Author

@cnauroth @ayushtkn @steveloughran @Hexiaoqiao @anujmodi2021 @ahmarsuhail @szetszwo @jojochuang This is our final PR related to the JUnit 5 upgrade. Once this is merged, the upgrade on the trunk branch will be complete. Could you help review this PR ? Thank you very much!

cc: @zhtttylz

@slfan1989 slfan1989 marked this pull request as ready for review September 13, 2025 05:00
@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 35s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 xmllint 0m 0s xmllint was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 4 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 11m 13s Maven dependency ordering for branch
+1 💚 mvninstall 41m 5s trunk passed
+1 💚 compile 15m 54s trunk passed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04
+1 💚 compile 13m 57s trunk passed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
+1 💚 checkstyle 4m 12s trunk passed
+1 💚 mvnsite 19m 33s trunk passed
+1 💚 javadoc 18m 7s trunk passed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 17m 11s trunk passed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
+0 🆗 spotbugs 0m 43s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
+0 🆗 spotbugs 0m 42s branch/hadoop-client-modules/hadoop-client-minicluster no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 35m 21s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 36s Maven dependency ordering for patch
-1 ❌ mvninstall 0m 53s /patch-mvninstall-hadoop-common-project_hadoop-common.txt hadoop-common in the patch failed.
-1 ❌ mvninstall 0m 25s /patch-mvninstall-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-client.txt hadoop-yarn-client in the patch failed.
-1 ❌ mvninstall 0m 45s /patch-mvninstall-hadoop-mapreduce-project_hadoop-mapreduce-client.txt hadoop-mapreduce-client in the patch failed.
-1 ❌ compile 1m 20s /patch-compile-root-jdkUbuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04.txt root in the patch failed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04.
-1 ❌ javac 1m 20s /patch-compile-root-jdkUbuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04.txt root in the patch failed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04.
-1 ❌ compile 1m 15s /patch-compile-root-jdkPrivateBuild-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09.txt root in the patch failed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09.
-1 ❌ javac 1m 15s /patch-compile-root-jdkPrivateBuild-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09.txt root in the patch failed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09.
-1 ❌ blanks 0m 0s /blanks-eol.txt The patch has 1 line(s) that end in blanks. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
-0 ⚠️ checkstyle 3m 51s /results-checkstyle-root.txt root: The patch generated 13 new + 4 unchanged - 0 fixed = 17 total (was 4)
-1 ❌ mvnsite 1m 0s /patch-mvnsite-hadoop-common-project_hadoop-common.txt hadoop-common in the patch failed.
-1 ❌ mvnsite 0m 29s /patch-mvnsite-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-client.txt hadoop-yarn-client in the patch failed.
-1 ❌ mvnsite 0m 49s /patch-mvnsite-hadoop-mapreduce-project_hadoop-mapreduce-client.txt hadoop-mapreduce-client in the patch failed.
+1 💚 javadoc 11m 11s the patch passed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 10m 37s the patch passed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
+0 🆗 spotbugs 0m 19s hadoop-project has no data from spotbugs
-1 ❌ spotbugs 0m 56s /patch-spotbugs-hadoop-common-project_hadoop-common.txt hadoop-common in the patch failed.
-1 ❌ spotbugs 0m 28s /patch-spotbugs-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-client.txt hadoop-yarn-client in the patch failed.
-1 ❌ spotbugs 1m 40s /patch-spotbugs-hadoop-mapreduce-project_hadoop-mapreduce-client.txt hadoop-mapreduce-client in the patch failed.
+0 🆗 spotbugs 0m 22s hadoop-client-modules/hadoop-client-minicluster has no data from spotbugs
-1 ❌ shadedclient 2m 54s patch has errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 0m 20s hadoop-project in the patch passed.
+1 💚 unit 0m 32s hadoop-minikdc in the patch passed.
+1 💚 unit 3m 22s hadoop-auth in the patch passed.
-1 ❌ unit 1m 2s /patch-unit-hadoop-common-project_hadoop-common.txt hadoop-common in the patch failed.
+1 💚 unit 238m 1s hadoop-hdfs in the patch passed.
+1 💚 unit 5m 56s hadoop-hdfs-httpfs in the patch passed.
+1 💚 unit 4m 6s hadoop-yarn-server-applicationhistoryservice in the patch passed.
+1 💚 unit 1m 37s hadoop-yarn-server-web-proxy in the patch passed.
+1 💚 unit 113m 11s hadoop-yarn-server-resourcemanager in the patch passed.
-1 ❌ unit 27m 22s /patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-nodemanager.txt hadoop-yarn-server-nodemanager in the patch passed.
-1 ❌ unit 0m 38s /patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-client.txt hadoop-yarn-client in the patch failed.
-1 ❌ unit 20m 5s /patch-unit-hadoop-mapreduce-project_hadoop-mapreduce-client.txt hadoop-mapreduce-client in the patch failed.
+1 💚 unit 8m 55s hadoop-mapreduce-client-app in the patch passed.
+1 💚 unit 1m 19s hadoop-yarn-server-globalpolicygenerator in the patch passed.
+1 💚 unit 0m 35s hadoop-yarn-applications-mawo-core in the patch passed.
+1 💚 unit 0m 51s hadoop-yarn-csi in the patch passed.
+1 💚 unit 1m 1s hadoop-mapreduce-examples in the patch passed.
+1 💚 unit 0m 38s hadoop-dynamometer-infra in the patch passed.
+1 💚 unit 3m 24s hadoop-azure in the patch passed.
+1 💚 unit 0m 55s hadoop-resourceestimator in the patch passed.
+1 💚 unit 0m 31s hadoop-client-minicluster in the patch passed.
+1 💚 asflicense 0m 52s The patch does not generate ASF License warnings.
739m 8s
Reason Tests
Failed junit tests hadoop.yarn.server.nodemanager.containermanager.logaggregation.TestLogAggregationService
Subsystem Report/Notes
Docker ClientAPI=1.51 ServerAPI=1.51 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7957/1/artifact/out/Dockerfile
GITHUB PR #7957
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle
uname Linux 503bcb77381b 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 4878f2b
Default Java Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7957/1/testReport/
Max. process+thread count 3301 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-minikdc hadoop-common-project/hadoop-auth hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs hadoop-hdfs-project/hadoop-hdfs-httpfs hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client hadoop-mapreduce-project/hadoop-mapreduce-client hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-globalpolicygenerator hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-mawo/hadoop-yarn-applications-mawo-core hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi hadoop-mapreduce-project/hadoop-mapreduce-examples hadoop-tools/hadoop-dynamometer/hadoop-dynamometer-infra hadoop-tools/hadoop-azure hadoop-tools/hadoop-resourceestimator hadoop-client-modules/hadoop-client-minicluster U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7957/1/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 35s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+0 🆗 xmllint 0m 1s xmllint was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 4 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 11m 35s Maven dependency ordering for branch
+1 💚 mvninstall 40m 52s trunk passed
+1 💚 compile 16m 18s trunk passed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04
+1 💚 compile 13m 37s trunk passed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
+1 💚 checkstyle 4m 10s trunk passed
+1 💚 mvnsite 9m 20s trunk passed
+1 💚 javadoc 8m 57s trunk passed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 8m 58s trunk passed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
+0 🆗 spotbugs 0m 38s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
+0 🆗 spotbugs 0m 32s branch/hadoop-client-modules/hadoop-client-minicluster no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 40m 22s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 37s Maven dependency ordering for patch
+1 💚 mvninstall 23m 0s the patch passed
+1 💚 compile 15m 12s the patch passed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04
+1 💚 javac 15m 12s the patch passed
+1 💚 compile 14m 0s the patch passed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
+1 💚 javac 14m 0s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 4m 47s /results-checkstyle-root.txt root: The patch generated 13 new + 4 unchanged - 0 fixed = 17 total (was 4)
+1 💚 mvnsite 8m 51s the patch passed
+1 💚 javadoc 8m 23s the patch passed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 9m 4s the patch passed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
+0 🆗 spotbugs 0m 32s hadoop-project has no data from spotbugs
+0 🆗 spotbugs 0m 39s hadoop-client-modules/hadoop-client-minicluster has no data from spotbugs
+1 💚 shadedclient 39m 56s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 0m 32s hadoop-project in the patch passed.
+1 💚 unit 0m 45s hadoop-minikdc in the patch passed.
+1 💚 unit 3m 35s hadoop-auth in the patch passed.
+1 💚 unit 241m 9s hadoop-hdfs in the patch passed.
-1 ❌ unit 142m 23s /patch-unit-hadoop-mapreduce-project_hadoop-mapreduce-client.txt hadoop-mapreduce-client in the patch passed.
+1 💚 unit 1m 29s hadoop-mapreduce-client-shuffle in the patch passed.
+1 💚 unit 1m 12s hadoop-yarn-csi in the patch passed.
+1 💚 unit 0m 58s hadoop-dynamometer-infra in the patch passed.
+1 💚 unit 3m 44s hadoop-azure in the patch passed.
+1 💚 unit 1m 16s hadoop-resourceestimator in the patch passed.
+1 💚 unit 0m 48s hadoop-client-minicluster in the patch passed.
+1 💚 asflicense 1m 29s The patch does not generate ASF License warnings.
719m 1s
Reason Tests
Failed junit tests hadoop.mapreduce.v2.TestUberAM
Subsystem Report/Notes
Docker ClientAPI=1.51 ServerAPI=1.51 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7957/2/artifact/out/Dockerfile
GITHUB PR #7957
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle
uname Linux 2413d616f375 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 9665314
Default Java Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7957/2/testReport/
Max. process+thread count 3841 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-minikdc hadoop-common-project/hadoop-auth hadoop-hdfs-project/hadoop-hdfs hadoop-mapreduce-project/hadoop-mapreduce-client hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi hadoop-tools/hadoop-dynamometer/hadoop-dynamometer-infra hadoop-tools/hadoop-azure hadoop-tools/hadoop-resourceestimator hadoop-client-modules/hadoop-client-minicluster U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7957/2/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 31s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 xmllint 0m 0s xmllint was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 11m 46s Maven dependency ordering for branch
+1 💚 mvninstall 45m 54s trunk passed
+1 💚 compile 17m 42s trunk passed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04
+1 💚 compile 15m 24s trunk passed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
+1 💚 checkstyle 4m 21s trunk passed
+1 💚 mvnsite 10m 54s trunk passed
+1 💚 javadoc 10m 10s trunk passed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 9m 23s trunk passed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
+0 🆗 spotbugs 0m 39s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
+0 🆗 spotbugs 0m 38s branch/hadoop-client-modules/hadoop-client-minicluster no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 38m 21s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 36s Maven dependency ordering for patch
+1 💚 mvninstall 24m 37s the patch passed
+1 💚 compile 17m 13s the patch passed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04
+1 💚 javac 17m 13s the patch passed
+1 💚 compile 14m 57s the patch passed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
+1 💚 javac 14m 57s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 4m 9s /results-checkstyle-root.txt root: The patch generated 13 new + 104 unchanged - 1 fixed = 117 total (was 105)
+1 💚 mvnsite 10m 54s the patch passed
+1 💚 javadoc 9m 49s the patch passed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 9m 29s the patch passed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
+0 🆗 spotbugs 0m 36s hadoop-project has no data from spotbugs
+0 🆗 spotbugs 0m 35s hadoop-client-modules/hadoop-client-minicluster has no data from spotbugs
+1 💚 shadedclient 41m 51s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 0m 31s hadoop-project in the patch passed.
+1 💚 unit 0m 45s hadoop-minikdc in the patch passed.
+1 💚 unit 3m 40s hadoop-auth in the patch passed.
+1 💚 unit 23m 13s hadoop-common in the patch passed.
-1 ❌ unit 242m 22s /patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt hadoop-hdfs in the patch passed.
-1 ❌ unit 139m 20s /patch-unit-hadoop-mapreduce-project_hadoop-mapreduce-client.txt hadoop-mapreduce-client in the patch passed.
+1 💚 unit 1m 36s hadoop-mapreduce-client-shuffle in the patch passed.
+1 💚 unit 1m 15s hadoop-yarn-csi in the patch passed.
+1 💚 unit 1m 5s hadoop-dynamometer-infra in the patch passed.
+1 💚 unit 3m 49s hadoop-azure in the patch passed.
+1 💚 unit 1m 23s hadoop-resourceestimator in the patch passed.
+1 💚 unit 0m 59s hadoop-client-minicluster in the patch passed.
+1 💚 asflicense 1m 31s The patch does not generate ASF License warnings.
764m 28s
Reason Tests
Failed junit tests hadoop.hdfs.server.namenode.ha.TestStandbyCheckpoints
hadoop.mapreduce.v2.TestUberAM
Subsystem Report/Notes
Docker ClientAPI=1.51 ServerAPI=1.51 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7957/3/artifact/out/Dockerfile
GITHUB PR #7957
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle
uname Linux dcbe6fe15b9f 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / d993395
Default Java Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7957/3/testReport/
Max. process+thread count 3151 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-minikdc hadoop-common-project/hadoop-auth hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs hadoop-mapreduce-project/hadoop-mapreduce-client hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi hadoop-tools/hadoop-dynamometer/hadoop-dynamometer-infra hadoop-tools/hadoop-azure hadoop-tools/hadoop-resourceestimator hadoop-client-modules/hadoop-client-minicluster U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7957/3/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 14m 48s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 xmllint 0m 0s xmllint was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 1s The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 11m 41s Maven dependency ordering for branch
+1 💚 mvninstall 41m 25s trunk passed
+1 💚 compile 15m 56s trunk passed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04
+1 💚 compile 14m 5s trunk passed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
+1 💚 checkstyle 4m 15s trunk passed
+1 💚 mvnsite 11m 37s trunk passed
+1 💚 javadoc 10m 48s trunk passed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 10m 31s trunk passed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
+0 🆗 spotbugs 0m 44s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
+0 🆗 spotbugs 0m 42s branch/hadoop-client-modules/hadoop-client-minicluster no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 35m 45s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 38s Maven dependency ordering for patch
+1 💚 mvninstall 21m 58s the patch passed
+1 💚 compile 15m 14s the patch passed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04
+1 💚 javac 15m 14s the patch passed
+1 💚 compile 13m 39s the patch passed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
+1 💚 javac 13m 39s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 4m 9s root: The patch generated 0 new + 104 unchanged - 1 fixed = 104 total (was 105)
+1 💚 mvnsite 11m 41s the patch passed
+1 💚 javadoc 10m 38s the patch passed with JDK Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 10m 30s the patch passed with JDK Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
+0 🆗 spotbugs 0m 38s hadoop-project has no data from spotbugs
+0 🆗 spotbugs 0m 41s hadoop-client-modules/hadoop-client-minicluster has no data from spotbugs
+1 💚 shadedclient 35m 4s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 0m 38s hadoop-project in the patch passed.
+1 💚 unit 0m 52s hadoop-minikdc in the patch passed.
+1 💚 unit 3m 42s hadoop-auth in the patch passed.
+1 💚 unit 22m 39s hadoop-common in the patch passed.
+1 💚 unit 239m 32s hadoop-hdfs in the patch passed.
-1 ❌ unit 138m 24s /patch-unit-hadoop-mapreduce-project_hadoop-mapreduce-client.txt hadoop-mapreduce-client in the patch passed.
+1 💚 unit 1m 36s hadoop-mapreduce-client-shuffle in the patch passed.
+1 💚 unit 1m 19s hadoop-yarn-csi in the patch passed.
+1 💚 unit 1m 6s hadoop-dynamometer-infra in the patch passed.
+1 💚 unit 3m 53s hadoop-azure in the patch passed.
+1 💚 unit 1m 21s hadoop-resourceestimator in the patch passed.
+1 💚 unit 0m 59s hadoop-client-minicluster in the patch passed.
+1 💚 asflicense 1m 31s The patch does not generate ASF License warnings.
757m 14s
Reason Tests
Failed junit tests hadoop.mapreduce.v2.TestUberAM
Subsystem Report/Notes
Docker ClientAPI=1.51 ServerAPI=1.51 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7957/4/artifact/out/Dockerfile
GITHUB PR #7957
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle
uname Linux 5c28912dba4f 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 54ab679
Default Java Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_452-8u452-gaus1-0ubuntu120.04-b09
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7957/4/testReport/
Max. process+thread count 3169 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-minikdc hadoop-common-project/hadoop-auth hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs hadoop-mapreduce-project/hadoop-mapreduce-client hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi hadoop-tools/hadoop-dynamometer/hadoop-dynamometer-infra hadoop-tools/hadoop-azure hadoop-tools/hadoop-resourceestimator hadoop-client-modules/hadoop-client-minicluster U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7957/4/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@cnauroth cnauroth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1. Thank you @slfan1989 !

@slfan1989 slfan1989 merged commit 7063d58 into apache:trunk Sep 15, 2025
1 of 4 checks passed
@slfan1989
Copy link
Contributor Author

The build result of this PR is as expected, and we are now able to remove the dependency on JUnit 4. There is only one remaining test case with an issue, which we plan to address in a follow-up PR.

Many thanks for everyone's support! With this change, the Hadoop trunk branch has completely removed the dependency on JUnit 4 and has fully migrated to JUnit 5.

@slfan1989
Copy link
Contributor Author

Many thanks to @anujmodi2021 and @cnauroth for reviewing this PR!

@h-vetinari
Copy link

With this change, the Hadoop trunk branch has completely removed the dependency on JUnit 4 and has fully migrated to JUnit 5.

Congratulations for getting this huge overhaul through!

@cnauroth
Copy link
Contributor

@slfan1989 and @zhtttylz , thank you so much for all of your efforts on the JUnit5 patches!

@szetszwo
Copy link
Contributor

That's a great contribution. Thanks everyone!

@szetszwo
Copy link
Contributor

BTW, filed HADOOP-19692 for excluding junit 4 transitive dependency.

@slfan1989
Copy link
Contributor Author

@cnauroth @h-vetinari @szetszwo @zhtttylz @anujmodi2021 Sorry for the late reply, and thank you again for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants