8000 fix(inkless:docker): bump the tiered-storage plugin to 1.2.1 and fix its classpath by giuseppelillo · Pull Request #928 · aiven/inkless · GitHub
[go: up one dir, main page]

Skip to content

fix(inkless:docker): bump the tiered-storage plugin to 1.2.1 and fix its classpath - #928

Merged
gqmelo merged 2 commits into
mainfrom
glillo/bump-ts-plugin-1.2.1
Dec 2, 2026
Merged

gqmelo merged 2 commits into
mainfrom
glillo/bump-ts-plugin-1.2.1

Conversation

@giuseppelillo
@giuseppelillo giuseppelillo commented Dec 2, 2026 •
Copy link
Copy Markdown
Contributor

The Kafka 4.4 sync moved ByteBufferInputStream to org.apache.kafka.common.utils.internals. The sync bumped the Gradle tieredStorageForKafka dependency to 1.2.1, which supports Kafka 4.4. Both Dockerfiles still download plugin 1.1.1, and its KafkaRemoteStorageManager references the old class. In the nightly run https://github.com/aiven/inkless/actions/runs/46793437279, every broker exited at startup with NoClassDefFoundError: org/apache/kafka/common/utils/ByteBufferInputStream thrown from RemoteStorageManager.configure, and 48 of 52 system tests failed.

This change fixes three startup failures:

  • Plugin version: ts_plugin_version is now 1.2.1 in tests/docker/Dockerfile (the ducker image that the system tests use) and docker/inkless/Dockerfile (the released Inkless image). The Inkless docker-compose README shows the new version.
  • AWS SDK HTTP client: the 1.2.1 s3 tarball ships apache5-client and no apache-client. The broker classpath carries Inkless's apache-client. When the plugin builds its S3 client, the SDK scans every SdkHttpService that the plugin class loader sees and loads the broker's ApacheSdkHttpService from the parent loader. Broker startup then fails with ServiceConfigurationError: ... ApacheSdkHttpService not a subtype. Both Dockerfiles now add apache-client 2.57.8 to the s3 plugin folder. They also add the httpclient 4.5.13, httpcore 4.4.16, commons-codec 1.17.1, and commons-logging 1.2 jars that 1.1.1 shipped. The plugin-local copy shadows the broker's.
  • LocalTieredStorage classpath: the 4.4 sync moved LocalTieredStorage to the storage test-fixtures jar. _enable_tiered_storage_classpath in inkless_topic_switch_test.py only added storage/build/libs/*-test.jar, so brokers failed with ClassNotFoundException. The helper now adds *-test*.jar, which includes the test-fixtures jar.

Test plan

  • The v1.2.1 release publishes core-1.2.1.tgz, s3-1.2.1.tgz, gcs-1.2.1.tgz, and azure-1.2.1.tgz. Each tarball has one top-level directory, like 1.1.1, so --strip-components=1 still applies.
  • No class in core-1.2.1.jar references ByteBufferInputStream. In core-1.1.1.jar, KafkaRemoteStorageManager and IcebergRemoteStorageManager do.
  • System test run https://github.com/aiven/inkless/actions/runs/46892075895 on the version bump alone: the image downloaded core-1.2.1.tgz and the NoClassDefFoundError was gone. Brokers then failed with the ApacheSdkHttpService and LocalTieredStorage errors described in the preceding section.
  • The jar versions match the AWS SDK 2.57.8 parent POM. Each jar's SHA-1 matches Maven Central. Building the plugin steps of both Dockerfiles locally puts the five jars in /opt/tiered-storage-plugin/s3.
  • After ./gradlew systemTestLibs, storage/build/libs/kafka-storage-*-test-fixtures.jar contains LocalTieredStorage. clients/build/libs/kafka-clients-*-test-fixtures.jar contains TestUtils, and kafka-run-class.sh already picks it up.
  • make vale reports no alerts.
  • Inkless system tests with all three fixes: https://github.com/aiven/inkless/actions/runs/46899863982

🤖 Generated with Claude Code

The Kafka 4.4 sync moved `ByteBufferInputStream` to
`org.apache.kafka.common.utils.internals`. Plugin 1.1.1 still references
the old class, so brokers in the ducker and Inkless images exit at startup
with `NoClassDefFoundError`. The Gradle dependency already moved to 1.2.1,
which supports Kafka 4.4. This change aligns both Dockerfiles with it.

Assisted-by: Claude Opus 5.5
@giuseppelillo
giuseppelillo requested review from gqmelo and a balanced review from Copilot December 2, 2026 13:35
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues for the Docker plugin version and documentation updates.

No open issues 🎉

What changed in this PR

Aligns Docker images with the Kafka 4.4-compatible tiered-storage plugin already used by Gradle, addressing broker startup failures caused by plugin 1.1.1.

Changes:

  • Bumps the plugin to 1.2.1 in system-test and released Inkless images.
  • Updates the Docker Compose README to match the bundled version.
File Description
tests/​docker/​Dockerfile Uses plugin 1.2.1 for system tests.
docker/​inkless/​Dockerfile Uses plugin 1.2.1 for bundled storage backends.
docker/​examples/​docker-compose-files/​inkless/​README.md Documents plugin 1.2.1 and clarifies that no local build is needed.

Review effort: Balanced

gqmelo
gqmelo previously approved these changes Dec 2, 2026
@gqmelo
gqmelo enabled auto-merge (squash) December 2, 2026 13:42
…ugin

Plugin 1.2.1's s3 tarball replaces the AWS SDK apache-client with
apache5-client. The broker classpath still carries Inkless's apache-client.
When the plugin builds its S3 client, the SDK scans every
`SdkHttpService` that the plugin class loader sees. It loads the broker's
`ApacheSdkHttpService` from the parent loader, which fails with "not a
subtype" and stops broker startup. A plugin-local apache-client 2.57.8,
with the httpclient, httpcore, commons-codec, and commons-logging versions
that 1.1.1 shipped, shadows the broker's copy.

The 4.4 sync also moved `LocalTieredStorage` to the storage test-fixtures
jar. The switch system tests now add that jar to the broker classpath.

Assisted-by: Claude Opus 5.5
@giuseppelillo giuseppelillo changed the title fix(inkless:docker): bump the tiered-storage plugin to 1.2.1 in images fix(inkless:docker): run the tiered-storage plugin 1.2.1 in images and system tests Dec 2, 2026
@giuseppelillo giuseppelillo changed the title fix(inkless:docker): run the tiered-storage plugin 1.2.1 in images and system tests fix(inkless:docker): bump the tiered-storage plugin to 1.2.1 and fix its classpath Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0