From b1aac9fcb678ca11a0a0fbe3d5900cec1069c1c1 Mon Sep 17 00:00:00 2001 From: Ashhar Hasan Date: Mon, 31 Oct 2022 19:58:28 +0530 Subject: [PATCH 1/2] Include container healthcheck logs for unhealthy containers The product tests fail the environment startup if all containers are not healthy and log the name of the unhealthy container. Since the logs don't include the healthcheck logs from Docker it's impossible to find why the container appeared unhealthy. This change additionally logs the healthcheck responses from the Docker daemon for unhealhty containers. --- .../java/io/trino/tests/product/launcher/env/Environment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/trino-product-tests-launcher/src/main/java/io/trino/tests/product/launcher/env/Environment.java b/testing/trino-product-tests-launcher/src/main/java/io/trino/tests/product/launcher/env/Environment.java index 368f7c1be3eb..d38fc11b9787 100644 --- a/testing/trino-product-tests-launcher/src/main/java/io/trino/tests/product/launcher/env/Environment.java +++ b/testing/trino-product-tests-launcher/src/main/java/io/trino/tests/product/launcher/env/Environment.java @@ -349,7 +349,7 @@ private static boolean containerIsHealthy(DockerContainer container) } if (!container.isHealthy()) { - log.warn("Container %s is not healthy", container.getLogicalName()); + log.warn("Container %s is not healthy, logs of container healthcheck:\n%s", container.getLogicalName(), container.getCurrentContainerInfo().getState().getHealth().getLog()); return false; } From 3755b945051b8a8a7a3ac01d5a3fe78f2c65909e Mon Sep 17 00:00:00 2001 From: Ashhar Hasan Date: Thu, 27 Oct 2022 21:17:26 +0530 Subject: [PATCH 2/2] Update docker-images to version 72 This also updates all centos7-oj11 based images to move to centos7-oj17 because of changes in https://github.com/trinodb/docker-images/commit/d67aab39bd61677d3d3442c85e78d6000488aa88 which change the images to use the oj17 base. --- .../io/trino/plugin/password/ldap/TestingOpenLdapServer.java | 2 +- pom.xml | 2 +- .../io/trino/tests/product/launcher/env/common/Standard.java | 4 ++-- .../tests/product/launcher/env/common/StandardMultinode.java | 2 +- .../launcher/env/environment/AbstractEnvSinglenodeLdap.java | 2 +- .../launcher/env/environment/EnvMultinodeHiveCaching.java | 2 +- .../product/launcher/env/environment/EnvMultinodeTls.java | 2 +- .../launcher/env/environment/EnvSinglenodeDeltaLakeOss.java | 2 ++ .../launcher/env/environment/EnvSinglenodeLdapReferrals.java | 2 +- .../launcher/env/environment/EnvSinglenodeSparkHive.java | 2 +- .../launcher/env/environment/EnvSinglenodeSparkIceberg.java | 2 +- 11 files changed, 13 insertions(+), 11 deletions(-) diff --git a/plugin/trino-password-authenticators/src/test/java/io/trino/plugin/password/ldap/TestingOpenLdapServer.java b/plugin/trino-password-authenticators/src/test/java/io/trino/plugin/password/ldap/TestingOpenLdapServer.java index 90104c9601d6..f71b20c43f86 100644 --- a/plugin/trino-password-authenticators/src/test/java/io/trino/plugin/password/ldap/TestingOpenLdapServer.java +++ b/plugin/trino-password-authenticators/src/test/java/io/trino/plugin/password/ldap/TestingOpenLdapServer.java @@ -54,7 +54,7 @@ public class TestingOpenLdapServer public TestingOpenLdapServer(Network network) { - openLdapServer = new GenericContainer<>("ghcr.io/trinodb/testing/centos7-oj11-openldap:" + TestingProperties.getDockerImagesVersion()) + openLdapServer = new GenericContainer<>("ghcr.io/trinodb/testing/centos7-oj17-openldap:" + TestingProperties.getDockerImagesVersion()) .withNetwork(network) .withExposedPorts(LDAP_PORT) .withStartupCheckStrategy(new IsRunningStartupCheckStrategy()) diff --git a/pom.xml b/pom.xml index 97d01645eb0e..ab7fa056c368 100644 --- a/pom.xml +++ b/pom.xml @@ -69,7 +69,7 @@ 1.0.0 4.7.2 - 65 + 72