Skip to content

fix: use JVM-based Kafka test image instead of kafka-native - #28

Merged
RuiTeixeira merged 1 commit into
mainfrom
fix/kafka-native-testcontainer-segfault
Aug 4, 2026
Merged

fix: use JVM-based Kafka test image instead of kafka-native#28
RuiTeixeira merged 1 commit into
mainfrom
fix/kafka-native-testcontainer-segfault

Conversation

@RuiTeixeira

Copy link
Copy Markdown
Member

Summary

  • TopicCompareServiceTest uses apache/kafka-native:4.3.1 (a GraalVM native-image build of Kafka) for its Testcontainers-managed brokers
  • This image crashes intermittently in CI with a SIGSEGV during startup (a race in getpwuid across the Substrate VM's startup threads), causing ContainerLaunchException: Timed out waiting for log output matching '.*Transitioning from RECOVERY to RUNNING.*'
  • This is the exact failure currently blocking deps: bump the github-actions-dependencies group with 5 updates #26 and deps: bump the maven-dependencies group with 2 updates #27 — both dependency-bump PRs unrelated to this test code, confirmed reproducible as far back as 2026-06-01 with apache/kafka-native:latest
  • Switching to the standard JVM-based apache/kafka:4.3.1 image avoids the native-image startup path entirely

Test plan

The GraalVM native-image Kafka container (apache/kafka-native) crashes
intermittently in CI with a SIGSEGV during class initialization
(a race in getpwuid across the Substrate VM's startup threads),
causing testcontainers to time out waiting for the broker to become
ready. This blocked dependabot PRs #26 and #27 even though their
actual dependency changes were unrelated to the failure.

Switching to the standard JVM-based apache/kafka image avoids the
native-image startup path entirely.
@RuiTeixeira
RuiTeixeira merged commit cc142ec into main Aug 4, 2026
6 checks passed
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.

1 participant