Skip to content

CAMEL-24787 - reduce flakiness of Cassandra Integration tests - #26582

Merged
apupier merged 1 commit into
apache:mainfrom
apupier:24787-flakyCassandra
Sep 18, 2026
Merged

apupier merged 1 commit into
apache:mainfrom
apupier:24787-flakyCassandra

Conversation

@apupier

@apupier apupier commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

there is regularly this stack:

com.datastax.oss.driver.api.core.DriverTimeoutException: Query timed out
after PT5S
	at com.datastax.oss.driver.api.core.DriverTimeoutException.copy(DriverTimeoutException.java:36)
	at com.datastax.oss.driver.internal.core.util.concurrent.CompletableFutures.getUninterruptibly(CompletableFutures.java:154)
	at com.datastax.oss.driver.internal.core.cql.CqlRequestSyncProcessor.process(CqlRequestSyncProcessor.java:55)
	at com.datastax.oss.driver.internal.core.cql.CqlRequestSyncProcessor.process(CqlRequestSyncProcessor.java:32)
	at com.datastax.oss.driver.internal.core.session.DefaultSession.execute(DefaultSession.java:234)
	at com.datastax.oss.driver.api.core.cql.SyncCqlSession.execute(SyncCqlSession.java:56)
	at com.datastax.oss.driver.api.core.cql.SyncCqlSession.execute(SyncCqlSession.java:80)
	at org.apache.camel.component.cassandra.integration.BaseCassandra.executeCql(BaseCassandra.java:75)
	at org.apache.camel.component.cassandra.integration.BaseCassandra.executeScript(BaseCassandra.java:69)
	at org.apache.camel.component.cassandra.integration.BaseCassandra.executeScript(BaseCassandra.java:61)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

the test when passing is usually taking between 2 and 4 seconds so maybe a bit too close from the timeout of the request

Description

Target

  • I checked that the commit is targeting the correct branch (Camel 4 uses the main branch)

Tracking

  • If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

  • I checked that each commit in the pull request has a meaningful subject line and body.
  • I have run mvn clean install -DskipTests locally from root folder and I have committed all auto-generated changes.

AI-assisted contributions

  • If this PR includes AI-generated code, commits have proper co-authorship attribution (e.g., Co-authored-by trailers) and the PR description identifies the AI tool used.

there is regularly this stack:
```
com.datastax.oss.driver.api.core.DriverTimeoutException: Query timed out
after PT5S
	at com.datastax.oss.driver.api.core.DriverTimeoutException.copy(DriverTimeoutException.java:36)
	at com.datastax.oss.driver.internal.core.util.concurrent.CompletableFutures.getUninterruptibly(CompletableFutures.java:154)
	at com.datastax.oss.driver.internal.core.cql.CqlRequestSyncProcessor.process(CqlRequestSyncProcessor.java:55)
	at com.datastax.oss.driver.internal.core.cql.CqlRequestSyncProcessor.process(CqlRequestSyncProcessor.java:32)
	at com.datastax.oss.driver.internal.core.session.DefaultSession.execute(DefaultSession.java:234)
	at com.datastax.oss.driver.api.core.cql.SyncCqlSession.execute(SyncCqlSession.java:56)
	at com.datastax.oss.driver.api.core.cql.SyncCqlSession.execute(SyncCqlSession.java:80)
	at org.apache.camel.component.cassandra.integration.BaseCassandra.executeCql(BaseCassandra.java:75)
	at org.apache.camel.component.cassandra.integration.BaseCassandra.executeScript(BaseCassandra.java:69)
	at org.apache.camel.component.cassandra.integration.BaseCassandra.executeScript(BaseCassandra.java:61)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
```

the test when passing is usually taking between 2 and 4 seconds so maybe
a bit too close from the timeout of the request

Signed-off-by: Aurélien Pupier <apupier@ibm.com>
@github-actions

Copy link
Copy Markdown
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@github-actions

github-actions Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

🧪 CI tested the following changed modules:

  • components/camel-cassandraql

🔬 Scalpel shadow comparison — Scalpel: 1 tested, 0 compile-only — current: 9 all tested

Maveniverse Scalpel detected 1 affected modules (current approach: 9).

Modules only in current approach (8)
  • camel-jbang-mcp
  • camel-jbang-plugin-mcp
  • camel-jbang-plugin-route-parser
  • camel-jbang-plugin-tui
  • camel-jbang-plugin-validate
  • camel-launcher-container
  • camel-yaml-dsl-validator
  • camel-yaml-dsl-validator-maven-plugin

Skip-tests mode would test 1 modules (1 direct + 0 downstream), skip tests for 0 (generated code, meta-modules)

Modules Scalpel would test (1)
  • camel-cassandraql

ℹ️ Shadow mode — Scalpel observes but does not affect test execution. Learn more

All tested modules (9 modules, 1m 39s total)

Total reactor time: 1m 39s

Module Duration Status
Camel :: JBang :: Plugin :: TUI 44.0s SUCCESS
Camel :: JBang :: MCP 33.1s SUCCESS
Camel :: JBang :: Plugin :: Validate 8.0s SUCCESS
Camel :: YAML DSL :: Validator 6.2s SUCCESS
Camel :: YAML DSL :: Validator Maven Plugin 2.9s SUCCESS
Camel :: Launcher :: Container 1.7s SUCCESS
Camel :: JBang :: Plugin :: Route Parser 1.4s SUCCESS
Camel :: JBang :: Plugin :: MCP 1.2s SUCCESS
Camel :: Cassandra CQL n/a

Top 20 slowest modules:

  • Camel :: JBang :: Plugin :: TUI (44.0s)
  • Camel :: JBang :: MCP (33.1s)
  • Camel :: JBang :: Plugin :: Validate (8.0s)
  • Camel :: YAML DSL :: Validator (6.2s)
  • Camel :: YAML DSL :: Validator Maven Plugin (2.9s)
  • Camel :: Launcher :: Container (1.7s)
  • Camel :: JBang :: Plugin :: Route Parser (1.4s)
  • Camel :: JBang :: Plugin :: MCP (1.2s)

⚙️ View full build and test results

@apupier
apupier marked this pull request as ready for review September 18, 2026 10:59
@apupier
apupier merged commit f816553 into apache:main Sep 18, 2026
5 of 7 checks passed
@apupier
apupier deleted the 24787-flakyCassandra branch September 18, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants