Skip to content

test(persistence): pin Elasticsearch test image to 7.17.29 - #948

Merged
smunini merged 1 commit into
mainfrom
test/pin-es-test-image-7-17
Sep 5, 2026
Merged

test(persistence): pin Elasticsearch test image to 7.17.29#948
smunini merged 1 commit into
mainfrom
test/pin-es-test-image-7-17

Conversation

@smunini

@smunini smunini commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Pins the shared Elasticsearch testcontainer in elasticsearch_tests.rs and s3_es_tests.rs to image tag 7.17.29 via a new ES_IMAGE_TAG constant.

testcontainers-modules defaults to elasticsearch:7.16.1, whose bundled JDK 17.0.1 crashes at JVM startup on cgroup v2 hosts without a mounted controller (Docker Desktop's linuxkit VM) with NullPointerException: Cannot invoke "jdk.internal.platform.CgroupInfo.getMountPoint()" because "anyController" is null (JDK-8272124, fixed in 17.0.2). Every 7.16.x tag ships the broken JDK, so every es_integration::* test fails at once on such hosts.

7.17.29 keeps the 7.x API surface and still logs the [YELLOW] to [GREEN] ready message the module waits on. 8.x does not log that line, so a plain tag bump to 8.x would hang the startup wait.

Notes

  • Test-harness only; no backend code changes.
  • CI's Docker host currently caches 7.16.1, so the first run will pull elasticsearch:7.17.29.

https://claude.ai/code/session_01Pk7MNEXTSMZS3utwcbWeZN

testcontainers-modules defaults to elasticsearch:7.16.1, whose bundled
JDK 17.0.1 crashes at startup on cgroup v2 hosts without a mounted
controller (e.g. Docker Desktop's linuxkit VM) with
`NullPointerException ... CgroupInfo.getMountPoint() ... "anyController"
is null` (JDK-8272124, fixed in 17.0.2). Every 7.16.x tag ships the
broken JDK, so pin the latest 7.17 release in both ES test suites. It
keeps the 7.x API surface and still logs the `[YELLOW] to [GREEN]` ready
line the module waits on; 8.x does not, so a plain bump to 8.x would
hang the startup wait.

Claude-Session: https://claude.ai/code/session_01Pk7MNEXTSMZS3utwcbWeZN
@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@smunini
smunini merged commit 5fd09ef into main Sep 5, 2026
19 checks passed
@smunini
smunini deleted the test/pin-es-test-image-7-17 branch September 5, 2026 13:00
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