Skip to content

Product tests startup flaky: "Could not download file «JDK»" #28297

@findepi

Description

@findepi

https://github.com/trinodb/trino/actions/runs/22016571723/job/63619535792?pr=28120

2026-02-14T11:44:30.599Z	ERROR	testcontainers-lifecycle-1	tc.ghcr.io/trinodb/testing/almalinux9-oj17:123	Could not start container
java.io.UncheckedIOException: java.io.IOException: Could not download file https://api.adoptium.net/v3/binary/version/jdk-25.0.2+10/linux/x64/jdk/hotspot/normal/eclipse?project=jdk(response: Response{protocol=h2, code=502, message=, url=[https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.2%2B10/OpenJDK25U-jdk_x64_linux_hotspot_25.0.2_10.tar.gz})](https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.2%2B10/OpenJDK25U-jdk_x64_linux_hotspot_25.0.2_10.tar.gz%7D))
	at io.trino.tests.product.launcher.util.UriDownloader.download(UriDownloader.java:57)
	at io.trino.tests.product.launcher.env.jdk.TarDownloadingJdkProvider.lambda$applyTo$0(TarDownloadingJdkProvider.java:99)
	at org.testcontainers.containers.GenericContainer.lambda$withCreateContainerCmdModifier$22(GenericContainer.java:1395)
	at org.testcontainers.containers.GenericContainer.applyConfiguration(GenericContainer.java:840)
	at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:376)
	at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:341)
	at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)
	at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:331)
	at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:317)
	at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:808)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:503)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
	at java.base/java.lang.Thread.run(Thread.java:1474)
Caused by: java.io.IOException: Could not download file https://api.adoptium.net/v3/binary/version/jdk-25.0.2+10/linux/x64/jdk/hotspot/normal/eclipse?project=jdk(response: Response{protocol=h2, code=502, message=, url=[https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.2%2B10/OpenJDK25U-jdk_x64_linux_hotspot_25.0.2_10.tar.gz})](https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.2%2B10/OpenJDK25U-jdk_x64_linux_hotspot_25.0.2_10.tar.gz%7D))
	at io.trino.tests.product.launcher.util.UriDownloader.download(UriDownloader.java:48)
	... 13 more

https://github.com/trinodb/trino/actions/runs/22016571723/job/63619535768?pr=28120

Caused by: java.io.UncheckedIOException: java.io.IOException: Could not download file https://api.adoptium.net/v3/binary/version/jdk-25.0.2+10/linux/x64/jdk/hotspot/normal/eclipse?project=jdk(response: Response{protocol=h2, code=502, message=, url=[https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.2%2B10/OpenJDK25U-jdk_x64_linux_hotspot_25.0.2_10.tar.gz})](https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.2%2B10/OpenJDK25U-jdk_x64_linux_hotspot_25.0.2_10.tar.gz%7D))
	at io.trino.tests.product.launcher.util.UriDownloader.download(UriDownloader.java:57)
	at io.trino.tests.product.launcher.env.jdk.TarDownloadingJdkProvider.lambda$applyTo$0(TarDownloadingJdkProvider.java:99)
	at org.testcontainers.containers.GenericContainer.lambda$withCreateContainerCmdModifier$22(GenericContainer.java:1395)
	at org.testcontainers.containers.GenericContainer.applyConfiguration(GenericContainer.java:840)
	at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:376)
	... 9 more
Caused by: java.io.IOException: Could not download file https://api.adoptium.net/v3/binary/version/jdk-25.0.2+10/linux/x64/jdk/hotspot/normal/eclipse?project=jdk(response: Response{protocol=h2, code=502, message=, url=[https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.2%2B10/OpenJDK25U-jdk_x64_linux_hotspot_25.0.2_10.tar.gz})](https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.2%2B10/OpenJDK25U-jdk_x64_linux_hotspot_25.0.2_10.tar.gz%7D))
	at io.trino.tests.product.launcher.util.UriDownloader.download(UriDownloader.java:48)
	... 13 more

the whole startup was apparently re-attempted, but failed to reset testcontainers state

2026-02-14T11:44:33.919Z	WARN	main	io.trino.tests.product.launcher.env.Environment	Could not start environment 'multinode'
java.lang.NullPointerException: Cannot invoke "Object.hashCode()" because "key" is null
	at java.base/java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1125)
	at java.base/java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1116)
	at org.testcontainers.utility.ResourceReaper.stopAndRemoveContainer(ResourceReaper.java:175)
	at org.testcontainers.containers.GenericContainer.stop(GenericContainer.java:652)
	at io.trino.tests.product.launcher.env.DockerContainer.reset(DockerContainer.java:411)
	at io.trino.tests.product.launcher.env.Environment.tryStart(Environment.java:157)

this last problem is reported as

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions