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

payang pushed a commit to branch 4.0
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/4.0 by this push:
     new 5aafa9ad31f KAFKA-19876 Replace the base image since openjdk image is 
deprecated (#20886)
5aafa9ad31f is described below

commit 5aafa9ad31f3c0c1d98882681dd2695395604fbb
Author: Ken Huang <[email protected]>
AuthorDate: Sat Nov 15 13:49:35 2025 +0800

    KAFKA-19876 Replace the base image since openjdk image is deprecated 
(#20886)
    
    The openjdk image has been officially deprecated (ref:
    https://hub.docker.com/_/openjdk  ), so we’ll need to switch to another
    base image for our E2E test environment.
    
    I tested this on my local machine using the following command:
    ```
    jdk_version="sapmachine:17-jdk-ubuntu-jammy" \
    image_name="ducker-ak:$(git rev-parse --short HEAD)" \
    TC_PATHS="tests/kafkatest/tests/client/pluggable_test.py" \
    /bin/bash tests/docker/run_tests.sh
    ```
    result:
    ```
    [INFO:2025-11-14 14:40:35,072]: RunnerClient:
    
kafkatest.tests.client.pluggable_test.PluggableConsumerTest.test_start_stop.metadata_quorum=ISOLATED_KRAFT:
    PASS
    [WARNING - 2025-11-14 14:40:35,072 - runner_client - log - lineno:459]:
    RunnerClient:
    
kafkatest.tests.client.pluggable_test.PluggableConsumerTest.test_start_stop.metadata_quorum=ISOLATED_KRAFT:
    Test requested 4 nodes, used only 3
    [WARNING:2025-11-14 14:40:35,072]: RunnerClient:
    
kafkatest.tests.client.pluggable_test.PluggableConsumerTest.test_start_stop.metadata_quorum=ISOLATED_KRAFT:
    Test requested 4 nodes, used only 3
    [INFO:2025-11-14 14:40:35,073]: RunnerClient:
    
kafkatest.tests.client.pluggable_test.PluggableConsumerTest.test_start_stop.metadata_quorum=ISOLATED_KRAFT:
    Data: None
    
================================================================================
    SESSION REPORT (ALL TESTS)
    ducktape version: 0.12.0
    session_id:       2025-11-14--004
    run time:         13.568 seconds
    tests run:        1
    passed:           1
    flaky:            0
    failed:           0
    ignored:          0
    
================================================================================
    test_id:
    
kafkatest.tests.client.pluggable_test.PluggableConsumerTest.test_start_stop.metadata_quorum=ISOLATED_KRAFT
    status:     PASS
    run time:   13.460 seconds
    
--------------------------------------------------------------------------------
    ```
    
    Reviewers: Chia-Ping Tsai <[email protected]>, Ming-Yen Chung
     <[email protected]>, PoAn Yang <[email protected]>
    (cherry picked from commit 69e1c9101c65b293b64bb69faa178c719210fdcc)
---
 tests/docker/ducker-ak | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/tests/docker/ducker-ak b/tests/docker/ducker-ak
index 368e7ebe08d..72121d86016 100755
--- a/tests/docker/ducker-ak
+++ b/tests/docker/ducker-ak
@@ -44,10 +44,9 @@ docker_run_memory_limit="2000m"
 # The default number of cluster nodes to bring up if a number is not specified.
 default_num_nodes=14
 
-# The default OpenJDK base image.
-# The base image of openjdk:17 is typically oraclelinux:8-slim, which doesn't 
include apt-get. 
-# Therefore, use openjdk:17-bullseye instead.
-default_jdk="openjdk:17-bullseye"
+# The default JDK base image with apt-get support.
+# The openjdk image has been officially deprecated. For more imformation, see: 
https://hub.docker.com/_/openjdk
+default_jdk="sapmachine:17-jdk-ubuntu-jammy"
 
 # The default ducker-ak image name.
 default_image_name="ducker-ak"

Reply via email to