This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new d89ab1856fe6 CAMEL-24290: test-infra - retry startup of the Redis, 
Postgres and Strimzi containers (#29355)
d89ab1856fe6 is described below

commit d89ab1856fe660ffb548d63df1ef142c1f8936c8
Author: Adriano Machado <[email protected]>
AuthorDate: Fri Nov 6 15:38:03 2026 -0500

    CAMEL-24290: test-infra - retry startup of the Redis, Postgres and Strimzi 
containers (#29355)
    
    Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
---
 .../java/org/apache/camel/test/infra/kafka/common/KafkaProperties.java   | 1 +
 .../org/apache/camel/test/infra/kafka/services/StrimziInfraService.java  | 1 +
 .../org/apache/camel/test/infra/postgres/common/PostgresProperties.java  | 1 +
 .../test/infra/postgres/services/PostgresLocalContainerInfraService.java | 1 +
 .../java/org/apache/camel/test/infra/redis/common/RedisProperties.java   | 1 +
 .../camel/test/infra/redis/services/RedisLocalContainerInfraService.java | 1 +
 6 files changed, 6 insertions(+)

diff --git 
a/test-infra/camel-test-infra-kafka/src/main/java/org/apache/camel/test/infra/kafka/common/KafkaProperties.java
 
b/test-infra/camel-test-infra-kafka/src/main/java/org/apache/camel/test/infra/kafka/common/KafkaProperties.java
index 31114c890770..4467b55e4aa2 100644
--- 
a/test-infra/camel-test-infra-kafka/src/main/java/org/apache/camel/test/infra/kafka/common/KafkaProperties.java
+++ 
b/test-infra/camel-test-infra-kafka/src/main/java/org/apache/camel/test/infra/kafka/common/KafkaProperties.java
@@ -24,6 +24,7 @@ public final class KafkaProperties {
     public static final String KAFKA_CONTAINER = "kafka.container.image";
     public static final String REDPANDA_CONTAINER = "redpanda.container.image";
     public static final String STRIMZI_CONTAINER = "strimzi.container.image";
+    public static final String STRIMZI_CONTAINER_STARTUP = 
"strimzi.container.startup.attempts";
 
     private KafkaProperties() {
 
diff --git 
a/test-infra/camel-test-infra-kafka/src/main/java/org/apache/camel/test/infra/kafka/services/StrimziInfraService.java
 
b/test-infra/camel-test-infra-kafka/src/main/java/org/apache/camel/test/infra/kafka/services/StrimziInfraService.java
index f6cada56317f..42f6055c47dd 100644
--- 
a/test-infra/camel-test-infra-kafka/src/main/java/org/apache/camel/test/infra/kafka/services/StrimziInfraService.java
+++ 
b/test-infra/camel-test-infra-kafka/src/main/java/org/apache/camel/test/infra/kafka/services/StrimziInfraService.java
@@ -86,6 +86,7 @@ public class StrimziInfraService implements 
KafkaInfraService, ContainerService<
 
     @Override
     public void initialize() {
+        ContainerEnvironmentUtil.configureContainerStartup(strimziContainer, 
KafkaProperties.STRIMZI_CONTAINER_STARTUP, 3);
         strimziContainer.start();
 
         registerProperties();
diff --git 
a/test-infra/camel-test-infra-postgres/src/main/java/org/apache/camel/test/infra/postgres/common/PostgresProperties.java
 
b/test-infra/camel-test-infra-postgres/src/main/java/org/apache/camel/test/infra/postgres/common/PostgresProperties.java
index 82ce8cd29acc..74c9893dfb83 100644
--- 
a/test-infra/camel-test-infra-postgres/src/main/java/org/apache/camel/test/infra/postgres/common/PostgresProperties.java
+++ 
b/test-infra/camel-test-infra-postgres/src/main/java/org/apache/camel/test/infra/postgres/common/PostgresProperties.java
@@ -24,6 +24,7 @@ public final class PostgresProperties {
     public static final String USERNAME = "postgres.user.name";
     public static final String PASSWORD = "postgres.user.password";
     public static final String POSTGRES_CONTAINER = "postgres.container";
+    public static final String POSTGRES_CONTAINER_STARTUP = 
"postgres.container.startup.attempts";
     public static final String POSTGRES_VECTOR_CONTAINER = 
"postgres.vector.container";
 
     public static final int DEFAULT_PORT = 5432;
diff --git 
a/test-infra/camel-test-infra-postgres/src/main/java/org/apache/camel/test/infra/postgres/services/PostgresLocalContainerInfraService.java
 
b/test-infra/camel-test-infra-postgres/src/main/java/org/apache/camel/test/infra/postgres/services/PostgresLocalContainerInfraService.java
index b5733d95a498..cfde4bbf708f 100644
--- 
a/test-infra/camel-test-infra-postgres/src/main/java/org/apache/camel/test/infra/postgres/services/PostgresLocalContainerInfraService.java
+++ 
b/test-infra/camel-test-infra-postgres/src/main/java/org/apache/camel/test/infra/postgres/services/PostgresLocalContainerInfraService.java
@@ -103,6 +103,7 @@ public class PostgresLocalContainerInfraService implements 
PostgresInfraService,
     @Override
     public void initialize() {
         LOG.info("Trying to start the Postgres container");
+        ContainerEnvironmentUtil.configureContainerStartup(container, 
PostgresProperties.POSTGRES_CONTAINER_STARTUP, 3);
         container.start();
 
         registerProperties();
diff --git 
a/test-infra/camel-test-infra-redis/src/main/java/org/apache/camel/test/infra/redis/common/RedisProperties.java
 
b/test-infra/camel-test-infra-redis/src/main/java/org/apache/camel/test/infra/redis/common/RedisProperties.java
index d5cafcf47177..304fc76ff670 100644
--- 
a/test-infra/camel-test-infra-redis/src/main/java/org/apache/camel/test/infra/redis/common/RedisProperties.java
+++ 
b/test-infra/camel-test-infra-redis/src/main/java/org/apache/camel/test/infra/redis/common/RedisProperties.java
@@ -19,6 +19,7 @@ package org.apache.camel.test.infra.redis.common;
 
 public final class RedisProperties {
     public static final String REDIS_CONTAINER = "redis.container";
+    public static final String REDIS_CONTAINER_STARTUP = 
"redis.container.startup.attempts";
     public static final String SERVICE_ADDRESS = "redis.service.address";
     public static final String HOST = "redis.host";
     public static final String PORT = "redis.port";
diff --git 
a/test-infra/camel-test-infra-redis/src/main/java/org/apache/camel/test/infra/redis/services/RedisLocalContainerInfraService.java
 
b/test-infra/camel-test-infra-redis/src/main/java/org/apache/camel/test/infra/redis/services/RedisLocalContainerInfraService.java
index 5daa00327321..dfc18f228396 100644
--- 
a/test-infra/camel-test-infra-redis/src/main/java/org/apache/camel/test/infra/redis/services/RedisLocalContainerInfraService.java
+++ 
b/test-infra/camel-test-infra-redis/src/main/java/org/apache/camel/test/infra/redis/services/RedisLocalContainerInfraService.java
@@ -73,6 +73,7 @@ public class RedisLocalContainerInfraService implements 
RedisInfraService, Conta
     @Override
     public void initialize() {
         LOG.info("Trying to start the Redis container");
+        ContainerEnvironmentUtil.configureContainerStartup(container, 
RedisProperties.REDIS_CONTAINER_STARTUP, 3);
         container.start();
 
         registerProperties();

Reply via email to