[ 
https://issues.apache.org/jira/browse/HIVE-29349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18093939#comment-18093939
 ] 

Zsolt Miskolczi commented on HIVE-29349:
----------------------------------------

The tests were failing with docker version 29.4.0 as well. 
{code:java}
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.hadoop.hive.metastore.dbinstall.TestPostgres
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.341 s 
<<< FAILURE! -- in org.apache.hadoop.hive.metastore.dbinstall.TestPostgres
[ERROR] org.apache.hadoop.hive.metastore.dbinstall.TestPostgres.upgrade -- Time 
elapsed: 0.328 s <<< ERROR!
java.lang.IllegalStateException: Could not find a valid Docker environment. 
Please see logs and check configuration
    at 
org.testcontainers.dockerclient.DockerClientProviderStrategy.lambda$getFirstValidStrategy$7(DockerClientProviderStrategy.java:274)
    at java.base/java.util.Optional.orElseThrow(Optional.java:403)
    at 
org.testcontainers.dockerclient.DockerClientProviderStrategy.getFirstValidStrategy(DockerClientProviderStrategy.java:265)
    at 
org.testcontainers.DockerClientFactory.getOrInitializeStrategy(DockerClientFactory.java:154)
    at 
org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:196)
    at 
org.testcontainers.DockerClientFactory$1.getDockerClient(DockerClientFactory.java:108)
    at 
com.github.dockerjava.api.DockerClientDelegate.authConfig(DockerClientDelegate.java:109)
    at 
org.testcontainers.containers.GenericContainer.start(GenericContainer.java:321)
    at 
org.apache.hadoop.hive.metastore.dbinstall.rules.Postgres.before(Postgres.java:39)[ERROR]
 org.apache.hadoop.hive.metastore.dbinstall.TestPostgres.install -- Time 
elapsed: 0.005 s <<< ERROR!
java.lang.IllegalStateException: Previous attempts to find a Docker environment 
failed. Will not retry. Please see logs and check configuration
    at 
org.testcontainers.dockerclient.DockerClientProviderStrategy.getFirstValidStrategy(DockerClientProviderStrategy.java:229)
    at 
org.testcontainers.DockerClientFactory.getOrInitializeStrategy(DockerClientFactory.java:154)
    at 
org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:196)
    at 
org.testcontainers.DockerClientFactory$1.getDockerClient(DockerClientFactory.java:108)
    at 
com.github.dockerjava.api.DockerClientDelegate.authConfig(DockerClientDelegate.java:109)
    at 
org.testcontainers.containers.GenericContainer.start(GenericContainer.java:321)
    at 
org.apache.hadoop.hive.metastore.dbinstall.rules.Postgres.before(Postgres.java:39)[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR]   TestPostgres.install » IllegalState Previous attempts to find a 
Docker environment failed. Will not retry. Please see logs and check 
configuration
[ERROR]   TestPostgres.upgrade » IllegalState Could not find a valid Docker 
environment. Please see logs and check configuration
[INFO]
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0 {code}

> Upgrade testcontainers
> ----------------------
>
>                 Key: HIVE-29349
>                 URL: https://issues.apache.org/jira/browse/HIVE-29349
>             Project: Hive
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 4.2.0
>            Reporter: Shohei Okumiya
>            Assignee: Shohei Okumiya
>            Priority: Major
>              Labels: pull-request-available
>
> Integration tests using testcontainers have been failing, probably after I 
> updated Docker Desktop.
> {code:text}
> [ERROR] 2025-12-02 15:47:53.043 [main] 
> org.testcontainers.dockerclient.DockerClientProviderStrategy - Could not find 
> a valid Docker environment. Please check configuration. Attempted 
> configurations were:
>       UnixSocketClientProviderStrategy: failed with exception 
> BadRequestException (Status 400: 
> {"ID":"","Containers":0,"ContainersRunning":0,"ContainersPaused":0,"ContainersStopped":0,"Images":0,"Driver":"","DriverStatus":null,"Plugins":{"Volume":null,"Network":null,"Authorization":null,"Log":null},"MemoryLimit":false,"SwapLimit":false,"CpuCfsPeriod":false,"CpuCfsQuota":false,"CPUShares":false,"CPUSet":false,"PidsLimit":false,"IPv4Forwarding":false,"Debug":false,"NFd":0,"OomKillDisable":false,"NGoroutines":0,"SystemTime":"","LoggingDriver":"","CgroupDriver":"","NEventsListener":0,"KernelVersion":"","OperatingSystem":"","OSVersion":"","OSType":"","Architecture":"","IndexServerAddress":"","RegistryConfig":null,"NCPU":0,"MemTotal":0,"GenericResources":null,"DockerRootDir":"","HttpProxy":"","HttpsProxy":"","NoProxy":"","Name":"","Labels":["com.docker.desktop.address=unix:///Users/okumin/Library/Containers/com.docker.docker/Data/docker-cli.sock"],"ExperimentalBuild":false,"ServerVersion":"","Runtimes":null,"DefaultRuntime":"","Swarm":{"NodeID":"","NodeAddr":"","LocalNodeState":"","ControlAvailable":false,"Error":"","RemoteManagers":null},"LiveRestoreEnabled":false,"Isolation":"","InitBinary":"","ContainerdCommit":{"ID":""},"RuncCommit":{"ID":""},"InitCommit":{"ID":""},"SecurityOptions":null,"CDISpecDirs":null,"Warnings":null})
>       DockerDesktopClientProviderStrategy: failed with exception 
> BadRequestException (Status 400: 
> {"ID":"","Containers":0,"ContainersRunning":0,"ContainersPaused":0,"ContainersStopped":0,"Images":0,"Driver":"","DriverStatus":null,"Plugins":{"Volume":null,"Network":null,"Authorization":null,"Log":null},"MemoryLimit":false,"SwapLimit":false,"CpuCfsPeriod":false,"CpuCfsQuota":false,"CPUShares":false,"CPUSet":false,"PidsLimit":false,"IPv4Forwarding":false,"Debug":false,"NFd":0,"OomKillDisable":false,"NGoroutines":0,"SystemTime":"","LoggingDriver":"","CgroupDriver":"","NEventsListener":0,"KernelVersion":"","OperatingSystem":"","OSVersion":"","OSType":"","Architecture":"","IndexServerAddress":"","RegistryConfig":null,"NCPU":0,"MemTotal":0,"GenericResources":null,"DockerRootDir":"","HttpProxy":"","HttpsProxy":"","NoProxy":"","Name":"","Labels":["com.docker.desktop.address=unix:///Users/okumin/Library/Containers/com.docker.docker/Data/docker-cli.sock"],"ExperimentalBuild":false,"ServerVersion":"","Runtimes":null,"DefaultRuntime":"","Swarm":{"NodeID":"","NodeAddr":"","LocalNodeState":"","ControlAvailable":false,"Error":"","RemoteManagers":null},"LiveRestoreEnabled":false,"Isolation":"","InitBinary":"","ContainerdCommit":{"ID":""},"RuncCommit":{"ID":""},"InitCommit":{"ID":""},"SecurityOptions":null,"CDISpecDirs":null,"Warnings":null})As
>  no valid configuration was found, execution cannot continue.
> See https://java.testcontainers.org/on_failure.html for more details.
> {code}
> Though I don't know the root cause, we should upgrade it sooner or later.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to