Repository navigation
fix(inkless:docker): bump the tiered-storage plugin to 1.2.1 and fix its classpath - #928
Merged
Merged
Conversation
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
requested review from
gqmelo
and
a balanced review from Copilot
December 2, 2026 13:35
Contributor
There was a problem hiding this comment.
🟢 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
previously approved these changes
Dec 2, 2026
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
gqmelo
approved these changes
Dec 2, 2026
This was referenced Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Kafka 4.4 sync moved
ByteBufferInputStreamtoorg.apache.kafka.common.utils.internals. The sync bumped the GradletieredStorageForKafkadependency to 1.2.1, which supports Kafka 4.4. Both Dockerfiles still download plugin 1.1.1, and itsKafkaRemoteStorageManagerreferences the old class. In the nightly run https://github.com/aiven/inkless/actions/runs/46793437279, every broker exited at startup withNoClassDefFoundError: org/apache/kafka/common/utils/ByteBufferInputStreamthrown fromRemoteStorageManager.configure, and 48 of 52 system tests failed.This change fixes three startup failures:
ts_plugin_versionis now 1.2.1 intests/docker/Dockerfile(the ducker image that the system tests use) anddocker/inkless/Dockerfile(the released Inkless image). The Inkless docker-compose README shows the new version.s3tarball shipsapache5-clientand noapache-client. The broker classpath carries Inkless'sapache-client. When the plugin builds its S3 client, the SDK scans everySdkHttpServicethat the plugin class loader sees and loads the broker'sApacheSdkHttpServicefrom the parent loader. Broker startup then fails withServiceConfigurationError: ... ApacheSdkHttpService not a subtype. Both Dockerfiles now addapache-client2.57.8 to thes3plugin folder. They also add thehttpclient4.5.13,httpcore4.4.16,commons-codec1.17.1, andcommons-logging1.2 jars that 1.1.1 shipped. The plugin-local copy shadows the broker's.LocalTieredStorageclasspath: the 4.4 sync movedLocalTieredStorageto the storage test-fixtures jar._enable_tiered_storage_classpathininkless_topic_switch_test.pyonly addedstorage/build/libs/*-test.jar, so brokers failed withClassNotFoundException. The helper now adds*-test*.jar, which includes the test-fixtures jar.Test plan
core-1.2.1.tgz,s3-1.2.1.tgz,gcs-1.2.1.tgz, andazure-1.2.1.tgz. Each tarball has one top-level directory, like 1.1.1, so--strip-components=1still applies.core-1.2.1.jarreferencesByteBufferInputStream. Incore-1.1.1.jar,KafkaRemoteStorageManagerandIcebergRemoteStorageManagerdo.core-1.2.1.tgzand theNoClassDefFoundErrorwas gone. Brokers then failed with theApacheSdkHttpServiceandLocalTieredStorageerrors described in the preceding section./opt/tiered-storage-plugin/s3../gradlew systemTestLibs,storage/build/libs/kafka-storage-*-test-fixtures.jarcontainsLocalTieredStorage.clients/build/libs/kafka-clients-*-test-fixtures.jarcontainsTestUtils, andkafka-run-class.shalready picks it up.make valereports no alerts.🤖 Generated with Claude Code