Skip to content

Set query timeouts for camel cassandara test#19026

Merged
laurit merged 1 commit into
open-telemetry:mainfrom
laurit:camle-cassandra-timeout
Jun 17, 2026
Merged

Set query timeouts for camel cassandara test#19026
laurit merged 1 commit into
open-telemetry:mainfrom
laurit:camle-cassandra-timeout

Conversation

@laurit

@laurit laurit commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings June 17, 2026 09:38
@laurit laurit requested a review from a team as a code owner June 17, 2026 09:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds query timeout configuration to the Camel 2.20 Cassandra test to fix intermittent test failures caused by request/connection timeouts. The timeout values are copied from the existing Cassandra instrumentation tests (AbstractCassandraTest.java).

Changes:

  • Adds a DriverConfigLoader with REQUEST_TIMEOUT set to Duration.ofSeconds(0) (meaning no timeout) and CONNECTION_INIT_QUERY_TIMEOUT set to 10 seconds for the test setup's CqlSession
  • Uses the public API DriverConfigLoader.programmaticBuilder() (rather than the internal DefaultDriverConfigLoader.builder() used in the reference cassandra tests)

@laurit laurit merged commit 7698f71 into open-telemetry:main Jun 17, 2026
95 checks passed
@laurit laurit deleted the camle-cassandra-timeout branch June 17, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants