Aurélien Pupier created CAMEL-25637:
---------------------------------------
Summary: Fix flaky test CassandraComponentProducerUnpreparedIT
setup failing with Script execution failed (init.cql:-1): null
Key: CAMEL-25637
URL: https://issues.apache.org/jira/browse/CAMEL-25637
Project: Camel
Issue Type: Test
Components: camel-cassandraql
Affects Versions: 4.24.0
Reporter: Aurélien Pupier
[if has failed 12 times and be flaky 10 times in last 90
days|https://develocity.apache.org/scans/tests?search.relativeStartTime=P90D&search.timeZoneId=Europe%2FParis&tests.container=org.apache.camel.component.cassandra.integration.CassandraComponentProducerUnpreparedIT&tests.expandedTests=WzAsMSwyXQ&tests.testContainerItems=class-configuration]
{noformat}
org.testcontainers.containers.ContainerLaunchException: Container startup
failed for image mirror.gcr.io/cassandra:5.0.9
at
org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:346)
at
org.testcontainers.containers.GenericContainer.start(GenericContainer.java:317)
at
org.apache.camel.test.infra.cassandra.services.CassandraLocalContainerInfraService.initialize(CassandraLocalContainerInfraService.java:98)
at
org.apache.camel.test.infra.common.services.TestServiceUtil.tryInitialize(TestServiceUtil.java:54)
at
org.apache.camel.test.infra.common.services.TestService.beforeAll(TestService.java:28)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit
with exception
at
org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:88)
at
org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:331)
... 5 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Could not
create/start container
at
org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:551)
at
org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:341)
at
org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)
... 6 more
Caused by: org.testcontainers.ext.ScriptUtils$UncategorizedScriptException:
Error while executing init script: initScript.cql
at
org.testcontainers.cassandra.CassandraContainer.runInitScriptIfRequired(CassandraContainer.java:111)
at
org.testcontainers.cassandra.CassandraContainer.containerIsStarted(CassandraContainer.java:87)
at
org.testcontainers.containers.GenericContainer.containerIsStarted(GenericContainer.java:716)
at
org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:529)
... 8 more
Caused by: org.testcontainers.ext.ScriptUtils$ScriptStatementFailedException:
Script execution failed (init.cql:-1): null
at
org.testcontainers.cassandra.CassandraDatabaseDelegate.execute(CassandraDatabaseDelegate.java:76)
at
org.testcontainers.cassandra.CassandraDatabaseDelegate.execute(CassandraDatabaseDelegate.java:91)
at
org.testcontainers.cassandra.CassandraContainer.runInitScriptIfRequired(CassandraContainer.java:100)
... 11 more {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)