Skip to content

Conversation

@zhtttylz
Copy link
Contributor

@zhtttylz zhtttylz commented Oct 19, 2025

Description of PR

JIRA:HADOOP-19402. [JDK11] JDiff Support JDK11.

This PR restores the ability to generate JDiff API XML on JDK 17 by porting Hadoop’s in‑tree doclets to the modern JDK 9+ Doclet API (jdk.javadoc.doclet), while preserving the legacy command‑line surface and XML output contract used in our release process.

Background. The original JDiff tool and its legacy doclet APIs predate JPMS and JDK 9; the upstream artifact (jdiff:1.0.9) is from 2005 and does not support JDK 9+ doclet APIs. Hadoop’s release process, however, still depends on JDiff XML to publish API diffs between releases.

Why now. Since JEP 221 (JDK 9), the standard com.sun.javadoc doclet path was superseded by jdk.javadoc.doclet.*, and the old doclet was eventually removed/replaced in modern JDKs. To run on JDK 17, we need doclets implemented against the new API.

How was this patch tested?

Built with JDK 17 and the docs profile to ensure JDiff XML is emitted.

mvn -T 1C clean package \
  -Pnative -Pdocs \
  -Drequire.snappy -Drequire.zstd -Drequire.openssl \
  -Djdiff.version=1.1.2-hadoop \
  -DskipTests -Denforcer.skip=true

This produces JDiff XML for each module. For example, HDFS:
Apache_Hadoop_HDFS_3.5.0-SNAPSHOT.xml

For code changes:

All changes are scoped to the hadoop-annotations module and only affect build-time doclet code.

  1. Drop the legacy java8 doclet sources and use a single source tree
    • Since trunk is now Java 17+ only, we do not maintain a separate java17 source tree or a jdk17 Maven profile.
    • The Doclet API implementations live in the main source set (src/main/java) and replace the old com.sun.javadoc-based code.
  2. Port / re-implement the doclets on the new Doclet API
    • ExcludePrivateAnnotationsJDiffDoclet
    • IncludePublicAnnotationsJDiffDoclet
    • ExcludePrivateAnnotationsStandardDoclet
    • IncludePublicAnnotationsStandardDoclet
    • The JDiff doclets delegate to the (forked) JDiff implementation and run via Doclet#run(DocletEnvironment).
    • The Standard doclets wrap jdk.javadoc.doclet.StandardDoclet to keep the same inclusion/exclusion semantics when producing regular Javadoc.
  3. Port the processing utilities to JDK 17
    • Provide RootDocProcessor and StabilityOptions variants that operate on DocletEnvironment, preserving:
      • audience filtering (exclude @InterfaceAudience.Private / LimitedPrivate)
      • “public-only” mode (IncludePublic* doclets)
      • stability flags such as unstable, evolving, etc.
  4. No changes to runtime or public APIs
    • Everything here runs at doc generation time only.
    • No new third-party runtime dependencies are introduced.
    • JDiff is used only during docs/JDiff generation (build-time tool); these doclet classes are not used by Hadoop at runtime.

Related JDiff changes (published; reproducible)

I implemented the JDK 9+ Doclet API adaptation in JDiff and validated Hadoop’s docs build using the published Maven Central artifact (no local install needed):

io.github.zhtttylz:jdiff:1.1.2-hadoop
https://repo1.maven.org/maven2/io/github/zhtttylz/jdiff/1.1.2-hadoop/

The implementation is available in zhtttylz/jdiff#4.

@zhtttylz zhtttylz changed the title [JDK11] JDiff Support JDK11. HADOOP-19402. [JDK11] JDiff Support JDK11. Oct 19, 2025
@slfan1989
Copy link
Contributor

slfan1989 commented Oct 19, 2025

@steveloughran @pan3793 This PR has been in preparation for quite some time by Hualong, and it consists of two main

parts:

  • Refactoring JDiff to make it compatible and functional under JDK 17.
  • Updating Hadoop’s custom doc-related annotations to ensure they are compatible with JDK 17 as well.

I’d appreciate your help reviewing this PR.
For reference, the JDiff-related changes are available in zhtttylz/jdiff#4

cc: @cnauroth @ayushtkn @Hexiaoqiao

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 21m 3s 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 doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+0 🆗 mvndep 8m 12s Maven dependency ordering for branch
+1 💚 mvninstall 28m 31s trunk passed
+1 💚 compile 15m 14s trunk passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 compile 15m 35s trunk passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+1 💚 checkstyle 2m 58s trunk passed
+1 💚 mvnsite 2m 8s trunk passed
+1 💚 javadoc 2m 8s trunk passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 javadoc 2m 0s trunk passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+0 🆗 spotbugs 0m 46s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
+0 🆗 spotbugs 0m 41s branch/hadoop-project-dist no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 25m 49s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 17s Maven dependency ordering for patch
-1 ❌ mvninstall 0m 14s /patch-mvninstall-hadoop-common-project_hadoop-annotations.txt hadoop-annotations in the patch failed.
-1 ❌ compile 0m 18s /patch-compile-root-jdkUbuntu-21.0.7+6-Ubuntu-0ubuntu120.04.txt root in the patch failed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04.
-1 ❌ javac 0m 18s /patch-compile-root-jdkUbuntu-21.0.7+6-Ubuntu-0ubuntu120.04.txt root in the patch failed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04.
-1 ❌ compile 0m 18s /patch-compile-root-jdkUbuntu-17.0.15+6-Ubuntu-0ubuntu120.04.txt root in the patch failed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04.
-1 ❌ javac 0m 18s /patch-compile-root-jdkUbuntu-17.0.15+6-Ubuntu-0ubuntu120.04.txt root in the patch failed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04.
-1 ❌ blanks 0m 0s /blanks-eol.txt The patch has 8 line(s) that end in blanks. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
-0 ⚠️ checkstyle 0m 15s /buildtool-patch-checkstyle-root.txt The patch fails to run checkstyle in root
-1 ❌ mvnsite 0m 14s /patch-mvnsite-hadoop-common-project_hadoop-annotations.txt hadoop-annotations in the patch failed.
-1 ❌ javadoc 0m 14s /patch-javadoc-hadoop-common-project_hadoop-annotations-jdkUbuntu-21.0.7+6-Ubuntu-0ubuntu120.04.txt hadoop-annotations in the patch failed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04.
-1 ❌ javadoc 0m 13s /patch-javadoc-hadoop-common-project_hadoop-annotations-jdkUbuntu-17.0.15+6-Ubuntu-0ubuntu120.04.txt hadoop-annotations in the patch failed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04.
+0 🆗 spotbugs 0m 16s hadoop-project has no data from spotbugs
-1 ❌ spotbugs 0m 14s /patch-spotbugs-hadoop-common-project_hadoop-annotations.txt hadoop-annotations in the patch failed.
+0 🆗 spotbugs 0m 17s hadoop-project-dist has no data from spotbugs
-1 ❌ shadedclient 1m 2s patch has errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 0m 15s hadoop-project in the patch passed.
-1 ❌ unit 0m 14s /patch-unit-hadoop-common-project_hadoop-annotations.txt hadoop-annotations in the patch failed.
+1 💚 unit 0m 14s hadoop-project-dist in the patch passed.
+1 💚 asflicense 0m 28s The patch does not generate ASF License warnings.
136m 24s
Subsystem Report/Notes
Docker ClientAPI=1.51 ServerAPI=1.51 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/1/artifact/out/Dockerfile
GITHUB PR #8038
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle
uname Linux a85451735ded 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 8f9c11f
Default Java Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/1/testReport/
Max. process+thread count 768 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-annotations hadoop-project-dist U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/1/console
versions git=2.25.1 maven=3.9.11 spotbugs=4.9.7
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

</build>
</profile>
<profile>
<id>jdk17</id>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<id>jdk17</id>
<id>jdk17+</id>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the review; I’ll update the code promptly.

Copy link
Contributor

Choose a reason for hiding this comment

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

@zhtttylz Could you please test this on JDK 21 to confirm it passes? Thanks a lot.

@steveloughran
Copy link
Contributor

given trunk is now java17+ only, do we need to have a java17 source tree and profile?

We can just delete all java8 code and put this in its place. I would support this as it keeps the codebase cleaner

@zhtttylz
Copy link
Contributor Author

given trunk is now java17+ only, do we need to have a java17 source tree and profile?

We can just delete all java8 code and put this in its place. I would support this as it keeps the codebase cleaner

Agreed. I’ll remove all Java 8 code and replace it with the Java 17 implementation.

@slfan1989
Copy link
Contributor

@zhtttylz Thank you for your contribution!

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 1m 52s 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 doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+0 🆗 mvndep 8m 54s Maven dependency ordering for branch
+1 💚 mvninstall 29m 13s trunk passed
+1 💚 compile 17m 28s trunk passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 compile 17m 36s trunk passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+1 💚 checkstyle 3m 30s trunk passed
+1 💚 mvnsite 7m 44s trunk passed
+1 💚 javadoc 6m 27s trunk passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 javadoc 5m 48s trunk passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+0 🆗 spotbugs 0m 29s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
+0 🆗 spotbugs 0m 26s branch/hadoop-project-dist no spotbugs output file (spotbugsXml.xml)
-1 ❌ spotbugs 12m 12s /branch-spotbugs-hadoop-yarn-project_hadoop-yarn-warnings.html hadoop-yarn-project/hadoop-yarn in trunk has 2 extant spotbugs warnings.
+1 💚 shadedclient 28m 57s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 32s Maven dependency ordering for patch
+1 💚 mvninstall 4m 58s the patch passed
+1 💚 compile 16m 31s the patch passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 javac 16m 31s the patch passed
+1 💚 compile 17m 53s the patch passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+1 💚 javac 17m 53s the patch passed
-1 ❌ blanks 0m 0s /blanks-eol.txt The patch has 9 line(s) that end in blanks. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
-0 ⚠️ checkstyle 3m 23s /results-checkstyle-root.txt root: The patch generated 72 new + 0 unchanged - 0 fixed = 72 total (was 0)
+1 💚 mvnsite 7m 44s the patch passed
-1 ❌ javadoc 0m 30s /results-javadoc-javadoc-hadoop-common-project_hadoop-annotations-jdkUbuntu-21.0.7+6-Ubuntu-0ubuntu120.04.txt hadoop-common-project_hadoop-annotations-jdkUbuntu-21.0.7+6-Ubuntu-0ubuntu120.04 with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04 generated 20 new + 3 unchanged - 0 fixed = 23 total (was 3)
-1 ❌ javadoc 0m 26s /results-javadoc-javadoc-hadoop-common-project_hadoop-annotations-jdkUbuntu-17.0.15+6-Ubuntu-0ubuntu120.04.txt hadoop-common-project_hadoop-annotations-jdkUbuntu-17.0.15+6-Ubuntu-0ubuntu120.04 with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04 generated 16 new + 2 unchanged - 0 fixed = 18 total (was 2)
+0 🆗 spotbugs 0m 25s hadoop-project has no data from spotbugs
-1 ❌ spotbugs 0m 50s /new-spotbugs-hadoop-common-project_hadoop-annotations.html hadoop-common-project/hadoop-annotations generated 3 new + 0 unchanged - 0 fixed = 3 total (was 0)
+0 🆗 spotbugs 0m 26s hadoop-project-dist has no data from spotbugs
+1 💚 shadedclient 29m 3s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 0m 28s hadoop-project in the patch passed.
+1 💚 unit 0m 31s hadoop-annotations in the patch passed.
+1 💚 unit 0m 28s hadoop-project-dist in the patch passed.
-1 ❌ unit 211m 31s /patch-unit-hadoop-yarn-project_hadoop-yarn.txt hadoop-yarn in the patch failed.
+1 💚 unit 138m 5s hadoop-mapreduce-client in the patch passed.
+1 💚 asflicense 0m 56s The patch does not generate ASF License warnings.
606m 28s
Reason Tests
SpotBugs module:hadoop-common-project/hadoop-annotations
Dead store to ignored in org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsStandardDoclet.run(DocletEnvironment) At ExcludePrivateAnnotationsStandardDoclet.java:org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsStandardDoclet.run(DocletEnvironment) At ExcludePrivateAnnotationsStandardDoclet.java:[line 165]
Write to static field org.apache.hadoop.classification.tools.RootDocProcessor.treatUnannotatedClassesAsPrivate from instance method org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet.run(DocletEnvironment) At IncludePublicAnnotationsJDiffDoclet.java:from instance method org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet.run(DocletEnvironment) At IncludePublicAnnotationsJDiffDoclet.java:[line 138]
Write to static field org.apache.hadoop.classification.tools.RootDocProcessor.treatUnannotatedClassesAsPrivate from instance method org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet.run(DocletEnvironment) At IncludePublicAnnotationsStandardDoclet.java:from instance method org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet.run(DocletEnvironment) At IncludePublicAnnotationsStandardDoclet.java:[line 137]
Failed junit tests hadoop.yarn.server.resourcemanager.TestRMHA
hadoop.yarn.server.router.webapp.TestRouterWebServicesREST
hadoop.yarn.server.router.webapp.TestFederationWebApp
hadoop.yarn.server.router.subcluster.capacity.TestYarnFederationWithCapacityScheduler
Subsystem Report/Notes
Docker ClientAPI=1.52 ServerAPI=1.52 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/2/artifact/out/Dockerfile
GITHUB PR #8038
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle
uname Linux bd0dc7da34cb 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 81bf9d4
Default Java Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/2/testReport/
Max. process+thread count 1983 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-annotations hadoop-project-dist hadoop-yarn-project/hadoop-yarn hadoop-mapreduce-project/hadoop-mapreduce-client U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/2/console
versions git=2.25.1 maven=3.9.11 spotbugs=4.9.7
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.

The changes in this PR look good to me.

Related JDiff changes (temporary local test build; JDK 17 adaptation implemented)

I'm a little unclear on how we proceed with committing. Do we need to make a new JDiff release somehow first?

@zhtttylz
Copy link
Contributor Author

The changes in this PR look good to me.

Related JDiff changes (temporary local test build; JDK 17 adaptation implemented)

I'm a little unclear on how we proceed with committing. Do we need to make a new JDiff release somehow first?

Thanks for flagging the release/workflow concern, Chris.

I’ve updated this PR to consume the published Maven Central artifact (no locally installed JDiff needed):

The PR description still references the earlier local build; I’ll update it shortly to reflect the released dependency.

@slfan1989
Copy link
Contributor

@zhtttylz Thanks for completing the JDK 17 compatibility work for jdiff. Overall, this is a solid improvement, so I’m giving it an initial +1, though there are still a few minor issues that need to be addressed.

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.

Thanks for the update @zhtttylz . I'll be ready to approve this after resolving the last issues flagged by pre-commits.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 24m 42s 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 doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+0 🆗 mvndep 7m 50s Maven dependency ordering for branch
+1 💚 mvninstall 29m 30s trunk passed
+1 💚 compile 18m 25s trunk passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 compile 18m 30s trunk passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+1 💚 checkstyle 2m 48s trunk passed
+1 💚 mvnsite 7m 6s trunk passed
+1 💚 javadoc 6m 6s trunk passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 javadoc 5m 39s trunk passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+0 🆗 spotbugs 0m 25s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
+0 🆗 spotbugs 0m 21s branch/hadoop-project-dist no spotbugs output file (spotbugsXml.xml)
-1 ❌ spotbugs 12m 20s /branch-spotbugs-hadoop-yarn-project_hadoop-yarn-warnings.html hadoop-yarn-project/hadoop-yarn in trunk has 2 extant spotbugs warnings.
+1 💚 shadedclient 29m 11s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 30s Maven dependency ordering for patch
+1 💚 mvninstall 5m 1s the patch passed
+1 💚 compile 17m 46s the patch passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 javac 17m 46s the patch passed
+1 💚 compile 18m 32s the patch passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+1 💚 javac 18m 32s the patch passed
-1 ❌ blanks 0m 0s /blanks-eol.txt The patch has 3 line(s) that end in blanks. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
-0 ⚠️ checkstyle 3m 15s /results-checkstyle-root.txt root: The patch generated 14 new + 0 unchanged - 0 fixed = 14 total (was 0)
+1 💚 mvnsite 7m 12s the patch passed
-1 ❌ javadoc 0m 25s /results-javadoc-javadoc-hadoop-common-project_hadoop-annotations-jdkUbuntu-21.0.7+6-Ubuntu-0ubuntu120.04.txt hadoop-common-project_hadoop-annotations-jdkUbuntu-21.0.7+6-Ubuntu-0ubuntu120.04 with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04 generated 32 new + 3 unchanged - 0 fixed = 35 total (was 3)
-1 ❌ javadoc 0m 21s /results-javadoc-javadoc-hadoop-common-project_hadoop-annotations-jdkUbuntu-17.0.15+6-Ubuntu-0ubuntu120.04.txt hadoop-common-project_hadoop-annotations-jdkUbuntu-17.0.15+6-Ubuntu-0ubuntu120.04 with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04 generated 32 new + 2 unchanged - 0 fixed = 34 total (was 2)
+0 🆗 spotbugs 0m 20s hadoop-project has no data from spotbugs
+0 🆗 spotbugs 0m 21s hadoop-project-dist has no data from spotbugs
+1 💚 shadedclient 29m 12s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 0m 22s hadoop-project in the patch passed.
+1 💚 unit 0m 25s hadoop-annotations in the patch passed.
+1 💚 unit 0m 22s hadoop-project-dist in the patch passed.
-1 ❌ unit 265m 1s /patch-unit-hadoop-yarn-project_hadoop-yarn.txt hadoop-yarn in the patch passed.
+1 💚 unit 136m 46s hadoop-mapreduce-client in the patch passed.
+1 💚 asflicense 1m 27s The patch does not generate ASF License warnings.
682m 8s
Reason Tests
Failed junit tests hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesReservation
hadoop.yarn.server.resourcemanager.TestRMHA
hadoop.yarn.server.router.webapp.TestRouterWebServicesREST
hadoop.yarn.server.router.webapp.TestFederationWebApp
hadoop.yarn.server.router.subcluster.capacity.TestYarnFederationWithCapacityScheduler
hadoop.yarn.service.TestYarnNativeServices
Subsystem Report/Notes
Docker ClientAPI=1.52 ServerAPI=1.52 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/4/artifact/out/Dockerfile
GITHUB PR #8038
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle
uname Linux cbcc90642952 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 20b02b6
Default Java Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/4/testReport/
Max. process+thread count 1967 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-annotations hadoop-project-dist hadoop-yarn-project/hadoop-yarn hadoop-mapreduce-project/hadoop-mapreduce-client U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/4/console
versions git=2.25.1 maven=3.9.11 spotbugs=4.9.7
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 1m 54s 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 doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+0 🆗 mvndep 9m 30s Maven dependency ordering for branch
+1 💚 mvninstall 28m 40s trunk passed
+1 💚 compile 18m 10s trunk passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 compile 18m 57s trunk passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+1 💚 checkstyle 3m 1s trunk passed
+1 💚 mvnsite 7m 49s trunk passed
+1 💚 javadoc 6m 18s trunk passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 javadoc 5m 40s trunk passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+0 🆗 spotbugs 0m 25s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
+0 🆗 spotbugs 0m 22s branch/hadoop-project-dist no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 29m 46s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 30s Maven dependency ordering for patch
+1 💚 mvninstall 5m 6s the patch passed
+1 💚 compile 17m 38s the patch passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 javac 17m 38s the patch passed
+1 💚 compile 18m 37s the patch passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+1 💚 javac 18m 37s the patch passed
-1 ❌ blanks 0m 0s /blanks-eol.txt The patch has 4 line(s) that end in blanks. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 💚 checkstyle 3m 25s the patch passed
+1 💚 mvnsite 7m 38s the patch passed
-1 ❌ javadoc 0m 24s /results-javadoc-javadoc-hadoop-common-project_hadoop-annotations-jdkUbuntu-21.0.7+6-Ubuntu-0ubuntu120.04.txt hadoop-common-project_hadoop-annotations-jdkUbuntu-21.0.7+6-Ubuntu-0ubuntu120.04 with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04 generated 7 new + 3 unchanged - 0 fixed = 10 total (was 3)
-1 ❌ javadoc 0m 25s /results-javadoc-javadoc-hadoop-common-project_hadoop-annotations-jdkUbuntu-17.0.15+6-Ubuntu-0ubuntu120.04.txt hadoop-common-project_hadoop-annotations-jdkUbuntu-17.0.15+6-Ubuntu-0ubuntu120.04 with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04 generated 7 new + 2 unchanged - 0 fixed = 9 total (was 2)
+0 🆗 spotbugs 0m 20s hadoop-project has no data from spotbugs
+0 🆗 spotbugs 0m 23s hadoop-project-dist has no data from spotbugs
+1 💚 shadedclient 29m 31s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 0m 25s hadoop-project in the patch passed.
+1 💚 unit 0m 27s hadoop-annotations in the patch passed.
+1 💚 unit 0m 25s hadoop-project-dist in the patch passed.
-1 ❌ unit 265m 17s /patch-unit-hadoop-yarn-project_hadoop-yarn.txt hadoop-yarn in the patch passed.
+1 💚 unit 139m 35s hadoop-mapreduce-client in the patch passed.
+1 💚 asflicense 1m 22s The patch does not generate ASF License warnings.
669m 19s
Reason Tests
Failed junit tests hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesReservation
hadoop.yarn.server.resourcemanager.TestRMHA
hadoop.yarn.server.router.webapp.TestRouterWebServicesREST
hadoop.yarn.server.router.webapp.TestFederationWebApp
hadoop.yarn.server.router.subcluster.capacity.TestYarnFederationWithCapacityScheduler
hadoop.yarn.service.TestYarnNativeServices
Subsystem Report/Notes
Docker ClientAPI=1.52 ServerAPI=1.52 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/5/artifact/out/Dockerfile
GITHUB PR #8038
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle
uname Linux b00cc62c677a 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 5b2cba6
Default Java Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/5/testReport/
Max. process+thread count 1982 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-annotations hadoop-project-dist hadoop-yarn-project/hadoop-yarn hadoop-mapreduce-project/hadoop-mapreduce-client U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/5/console
versions git=2.25.1 maven=3.9.11 spotbugs=4.9.7
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 1m 41s 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 doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+0 🆗 mvndep 9m 21s Maven dependency ordering for branch
+1 💚 mvninstall 28m 36s trunk passed
+1 💚 compile 18m 28s trunk passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 compile 18m 49s trunk passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+1 💚 checkstyle 3m 12s trunk passed
+1 💚 mvnsite 7m 35s trunk passed
+1 💚 javadoc 6m 15s trunk passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 javadoc 5m 45s trunk passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+0 🆗 spotbugs 0m 28s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
+0 🆗 spotbugs 0m 20s branch/hadoop-project-dist no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 29m 6s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 30s Maven dependency ordering for patch
+1 💚 mvninstall 5m 9s the patch passed
+1 💚 compile 17m 32s the patch passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 javac 17m 32s the patch passed
+1 💚 compile 18m 32s the patch passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+1 💚 javac 18m 32s the patch passed
-1 ❌ blanks 0m 0s /blanks-eol.txt The patch has 4 line(s) that end in blanks. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 💚 checkstyle 3m 20s the patch passed
+1 💚 mvnsite 7m 30s the patch passed
-1 ❌ javadoc 0m 28s /results-javadoc-javadoc-hadoop-common-project_hadoop-annotations-jdkUbuntu-21.0.7+6-Ubuntu-0ubuntu120.04.txt hadoop-common-project_hadoop-annotations-jdkUbuntu-21.0.7+6-Ubuntu-0ubuntu120.04 with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04 generated 7 new + 3 unchanged - 0 fixed = 10 total (was 3)
-1 ❌ javadoc 0m 22s /results-javadoc-javadoc-hadoop-common-project_hadoop-annotations-jdkUbuntu-17.0.15+6-Ubuntu-0ubuntu120.04.txt hadoop-common-project_hadoop-annotations-jdkUbuntu-17.0.15+6-Ubuntu-0ubuntu120.04 with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04 generated 7 new + 2 unchanged - 0 fixed = 9 total (was 2)
+0 🆗 spotbugs 0m 20s hadoop-project has no data from spotbugs
+0 🆗 spotbugs 0m 23s hadoop-project-dist has no data from spotbugs
+1 💚 shadedclient 29m 35s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 0m 24s hadoop-project in the patch passed.
+1 💚 unit 0m 26s hadoop-annotations in the patch passed.
+1 💚 unit 0m 22s hadoop-project-dist in the patch passed.
-1 ❌ unit 267m 4s /patch-unit-hadoop-yarn-project_hadoop-yarn.txt hadoop-yarn in the patch passed.
+1 💚 unit 141m 36s hadoop-mapreduce-client in the patch passed.
+1 💚 asflicense 1m 27s The patch does not generate ASF License warnings.
671m 50s
Reason Tests
Failed junit tests hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesReservation
hadoop.yarn.server.resourcemanager.TestRMHA
hadoop.yarn.server.router.webapp.TestRouterWebServicesREST
hadoop.yarn.server.router.webapp.TestFederationWebApp
hadoop.yarn.server.router.subcluster.capacity.TestYarnFederationWithCapacityScheduler
hadoop.yarn.service.TestYarnNativeServices
Subsystem Report/Notes
Docker ClientAPI=1.52 ServerAPI=1.52 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/6/artifact/out/Dockerfile
GITHUB PR #8038
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle
uname Linux 3dfbcd21be81 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 5b2cba6
Default Java Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/6/testReport/
Max. process+thread count 1946 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-annotations hadoop-project-dist hadoop-yarn-project/hadoop-yarn hadoop-mapreduce-project/hadoop-mapreduce-client U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/6/console
versions git=2.25.1 maven=3.9.11 spotbugs=4.9.7
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 2m 11s 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 doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+0 🆗 mvndep 8m 34s Maven dependency ordering for branch
+1 💚 mvninstall 28m 35s trunk passed
+1 💚 compile 17m 0s trunk passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 compile 17m 40s trunk passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+1 💚 checkstyle 3m 26s trunk passed
+1 💚 mvnsite 7m 41s trunk passed
+1 💚 javadoc 6m 18s trunk passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 javadoc 5m 42s trunk passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+0 🆗 spotbugs 0m 28s branch/hadoop-project no spotbugs output file (spotbugsXml.xml)
+0 🆗 spotbugs 0m 25s branch/hadoop-project-dist no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 29m 2s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 35s Maven dependency ordering for patch
+1 💚 mvninstall 5m 2s the patch passed
+1 💚 compile 16m 23s the patch passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 javac 16m 23s the patch passed
+1 💚 compile 17m 21s the patch passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+1 💚 javac 17m 21s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 3m 22s the patch passed
+1 💚 mvnsite 7m 30s the patch passed
+1 💚 javadoc 6m 12s the patch passed with JDK Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04
+1 💚 javadoc 5m 43s the patch passed with JDK Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
+0 🆗 spotbugs 0m 25s hadoop-project has no data from spotbugs
+0 🆗 spotbugs 0m 24s hadoop-project-dist has no data from spotbugs
+1 💚 shadedclient 28m 55s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 0m 27s hadoop-project in the patch passed.
+1 💚 unit 0m 28s hadoop-annotations in the patch passed.
+1 💚 unit 0m 26s hadoop-project-dist in the patch passed.
-1 ❌ unit 261m 10s /patch-unit-hadoop-yarn-project_hadoop-yarn.txt hadoop-yarn in the patch passed.
+1 💚 unit 137m 19s hadoop-mapreduce-client in the patch passed.
+1 💚 asflicense 1m 27s The patch does not generate ASF License warnings.
653m 27s
Reason Tests
Failed junit tests hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesReservation
hadoop.yarn.server.resourcemanager.TestRMHA
hadoop.yarn.server.router.webapp.TestRouterWebServicesREST
hadoop.yarn.server.router.webapp.TestFederationWebApp
hadoop.yarn.server.router.subcluster.capacity.TestYarnFederationWithCapacityScheduler
hadoop.yarn.service.TestYarnNativeServices
Subsystem Report/Notes
Docker ClientAPI=1.52 ServerAPI=1.52 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/7/artifact/out/Dockerfile
GITHUB PR #8038
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle
uname Linux db8099dbdda0 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / ecd6a35
Default Java Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.7+6-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.15+6-Ubuntu-0ubuntu120.04
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/7/testReport/
Max. process+thread count 1952 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-annotations hadoop-project-dist hadoop-yarn-project/hadoop-yarn hadoop-mapreduce-project/hadoop-mapreduce-client U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8038/7/console
versions git=2.25.1 maven=3.9.11 spotbugs=4.9.7
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@slfan1989
Copy link
Contributor

@cnauroth Do you have any other suggestions for this PR?

@cnauroth
Copy link
Contributor

@cnauroth Do you have any other suggestions for this PR?

@slfan1989 , +1 from me. Thank you @zhtttylz .

@slfan1989 slfan1989 merged commit df9e738 into apache:trunk Dec 29, 2025
1 of 4 checks passed
@slfan1989
Copy link
Contributor

@zhtttylz Thanks for the contribution! @cnauroth @steveloughran Thanks for the review!

@zhtttylz
Copy link
Contributor Author

Thanks @slfan1989 for merging, and thanks @cnauroth @steveloughran @pan3793 for the reviews!

I’ll keep monitoring the JDK 17 docs CI and will follow up on any regressions.

@sjlee
Copy link
Contributor

sjlee commented Jan 3, 2026

Maybe I'm hopelessly out of date in terms of the JDK policy, but a simple compile of the trunk (vanilla mvn clean install) is failing because "--add-modules" is not recognized. And I believe it's because we're not making a certain compiler version mandatory in the trunk build. Is it now supposed to be JDK 11? If so, shouldn't we add that to the top pom.xml to be very explicit? cc @zhtttylz @cnauroth

@pan3793
Copy link
Member

pan3793 commented Jan 4, 2026

@sjlee, trunk has moved to JDK 17+, should work with 17, 21 and 25

@zhtttylz, GitHub Actions still uses JDK 8, could you update it to 17, and hope this can recover the CI.

@zhtttylz
Copy link
Contributor Author

zhtttylz commented Jan 4, 2026

Thanks for the note, @pan3793 @sjlee — I’ve opened #8162 and I’m actively following up on switching the default JDK to 17 for CI. Sorry for the late reply.

@pan3793
Copy link
Member

pan3793 commented Jan 4, 2026

@zhtttylz I mean .github/workflows/website.yml ...

@zhtttylz
Copy link
Contributor Author

zhtttylz commented Jan 4, 2026

@zhtttylz I mean .github/workflows/website.yml ...

@pan3793 Thanks for pointing that out — website.yml makes sense for the GitHub Actions side.
For this failure, the Jenkins precommit log shows it’s running in Docker mode (mentions “Docker mode activated”, links out/Dockerfile, and “Default Java … 1.8.0_472”):
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8151/1/artifact/out/console.txt

Does that mean the default JDK here is coming from the Jenkins/Yetus Docker image rather than website.yml?

@pan3793
Copy link
Member

pan3793 commented Jan 4, 2026

it's different things, GitHub Actions results are located at https://github.com/apache/hadoop/actions/runs/20689444287/job/59395332436

@sjlee
Copy link
Contributor

sjlee commented Jan 4, 2026

Is start-build-env.sh deprecated as a way to build? Maybe my expectation that executing a Maven build using start-build-env.sh should always work is outdated. That is failing at the moment as it's not enforcing the right JDK version.

@pan3793
Copy link
Member

pan3793 commented Jan 4, 2026

Is start-build-env.sh deprecated as a way to build?

@sjlee Absolutely no, it should work with the patch #8162

@slfan1989
Copy link
Contributor

given trunk is now java17+ only, do we need to have a java17 source tree and profile?

We can just delete all java8 code and put this in its place. I would support this as it keeps the codebase cleaner

@sjlee Apologies for the late reply. The situation is consistent with @pan3793 feedback. We will completely discontinue support for JDK8 on the trunk and transition to JDK17 in the future. jdiff is a feature we need to support on JDK17, as it involves the final jdiff comparison XML file for the release, such as Apache_Hadoop_HDFS_3.2.0.xml. The removal of jdiff support on JDK8 was also the result of a discussion with Steve.

If there are any new issues, feel free to provide feedback here anytime.

@aajisaka
Copy link
Member

aajisaka commented Jan 9, 2026

GitHub Actions

Opened #8174 to fix website.yml

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.

8 participants