Skip to content

[fix][build] Fix docker image building by replacing deprecated and removed compress argument#24155

Merged
lhotari merged 3 commits into
apache:masterfrom
lhotari:lh-fix-docker-image-jlink-compress
Apr 7, 2025
Merged

[fix][build] Fix docker image building by replacing deprecated and removed compress argument#24155
lhotari merged 3 commits into
apache:masterfrom
lhotari:lh-fix-docker-image-jlink-compress

Conversation

@lhotari

@lhotari lhotari commented Apr 7, 2025

Copy link
Copy Markdown
Member

Motivation

Building docker images have started to fail due to the use of a deprecated --compress zip-9 argument for jlink.
This parameter was deprecated in Java 16. It seems that the removal was delayed and now master branch is broken with most recent Corretto 21 and 17 JDK versions (Corretto-21.0.6.7.1 and also Corretto-17.0.14.7.1).

Valid jlink compress argument options:

  -c, --compress=<0|1|2>                Enable compression of resources:
                                          Level 0: No compression
                                          Level 1: Constant string sharing
                                          Level 2: ZIP

The replacement for --compress zip-9 is --compress=2 (zip).

Modifications

Replace --compress zip-9 with --compress=2

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@lhotari lhotari added this to the 4.1.0 milestone Apr 7, 2025
@lhotari lhotari self-assigned this Apr 7, 2025
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Apr 7, 2025
@lhotari

lhotari commented Apr 7, 2025

Copy link
Copy Markdown
Member Author

There's also another CI breakage due to conflicting changes between #24097 and #24118.
@nodece is handling that in #24154.

@lhotari
lhotari merged commit 2759eaf into apache:master Apr 7, 2025
lhotari added a commit that referenced this pull request Apr 7, 2025
…moved compress argument (#24155)

(cherry picked from commit 2759eaf)
lhotari added a commit that referenced this pull request Apr 7, 2025
…moved compress argument (#24155)

(cherry picked from commit 2759eaf)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 15, 2025
…moved compress argument (apache#24155)

(cherry picked from commit 2759eaf)
(cherry picked from commit 3454851)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 16, 2025
…moved compress argument (apache#24155)

(cherry picked from commit 2759eaf)
(cherry picked from commit 3454851)
walkinggo pushed a commit to walkinggo/pulsar that referenced this pull request Oct 8, 2025
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.

3 participants