You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2026/10/21 19:45:51 UTC

(pulsar) 21/21: [fix][build] Include the java.compiler module in the Pulsar image JVM (#27035)

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

lhotari pushed a commit to branch branch-5.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git

commit c914f486271c18f2817c9fd9b2755ba1f0400a3d
Author: David Kjerrumgaard <35...@users.noreply.github.com>
AuthorDate: Wed Oct 21 12:55:38 2026 -0400

    [fix][build] Include the java.compiler module in the Pulsar image JVM (#27035)
    
    (cherry picked from commit cfc00b0ce1994e953d43fddb3f57e810d20e9b78)
---
 docker/pulsar/Dockerfile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/docker/pulsar/Dockerfile b/docker/pulsar/Dockerfile
index 906a80bfc39b..5d2b856c0c6c 100644
--- a/docker/pulsar/Dockerfile
+++ b/docker/pulsar/Dockerfile
@@ -67,9 +67,12 @@ RUN apk add --no-cache binutils
 #     java.desktop), and localedata is needed for non-English date/number formatting.
 #   - jdk.jcmd, jdk.jfr, jdk.management.agent: live ops/diagnostics on a running broker.
 #   - jdk.jdwp.agent: lets you attach a remote debugger (-agentlib:jdwp) inside the container.
+#   - java.compiler: not used by Pulsar itself, but connectors (no longer bundled with Pulsar,
+#     so not covered by the scan below) run on this image, and Debezium calls
+#     javax.lang.model.SourceVersion. API-only and about 250KB; it does not pull in jdk.compiler.
 #
 # Left out (verified unused by Pulsar's shipped jars via a jdeps/bytecode scan):
-#   - build/compile tools: java.compiler, jdk.compiler (also drops the ~10MB lib/ct.sym),
+#   - build/compile tools: jdk.compiler (also drops the ~10MB lib/ct.sym),
 #     jdk.javadoc, jdk.jdeps, jdk.jlink, jdk.jpackage, jdk.jartool
 #   - REPL/console: jdk.jshell, jdk.editpad, jdk.internal.ed, jdk.internal.le, jdk.jconsole
 #   - debugger client + serviceability: jdk.jdi, jdk.hotspot.agent, jdk.jstatd
@@ -80,6 +83,7 @@ RUN apk add --no-cache binutils
 #
 RUN JDK_MODULES="\
 java.base,\
+java.compiler,\
 java.datatransfer,\
 java.xml,\
 java.prefs,\