This is an automated email from the ASF dual-hosted git repository.
apupier 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 00de61d3ad7e CAMEL-25882: camel-cassandraql - Speed up tests by
disabling the driver schema debouncer
00de61d3ad7e is described below
commit 00de61d3ad7e866055afe2bc09d33ba74a65ac9b
Author: Aurélien Pupier <[email protected]>
AuthorDate: Wed Dec 2 14:18:29 2026 +0100
CAMEL-25882: camel-cassandraql - Speed up tests by disabling the driver
schema debouncer
After a DDL statement the Cassandra driver refreshes its schema metadata,
debounced by 1 second by default
(advanced.metadata.schema.debouncer.window).
The server needs about 70 ms for a CREATE TABLE on a single node, so each
table creation of the tests cost about 1 second on the client side.
Set the window to 0 in the test-only application.conf.
Measured with `mvn verify -Pit -pl components/camel-cassandraql`, 94 tests
passing before and after:
before after
testKeys, testClear, testSize ~1.2 s 0.25-0.34 s
testKeysAndSizeIgnoreExpiredEntries 2.8 s 1.6 s
CassandraKeyValueRepositoryIT 22.0 s 18.7 s
module ITs, wall time of the build 63 s 54 s
CassandraKeyValueRepositoryIT was run 10 times in a row without failure.
Co-authored-by: IBM Bob <[email protected]>
---
components/camel-cassandraql/src/test/resources/application.conf | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/components/camel-cassandraql/src/test/resources/application.conf
b/components/camel-cassandraql/src/test/resources/application.conf
index dac77c82922a..248be5e3c8a8 100644
--- a/components/camel-cassandraql/src/test/resources/application.conf
+++ b/components/camel-cassandraql/src/test/resources/application.conf
@@ -21,3 +21,7 @@ datastax-java-driver.advanced.netty {
io-group.shutdown {quiet-period = 0, timeout = 5, unit = SECONDS}
admin-group.shutdown {quiet-period = 0, timeout = 5, unit = SECONDS}
}
+
+# Speed up the tests: after each DDL statement (CREATE TABLE...) the driver
waits for the refresh of its schema metadata,
+# which is debounced for 1 second by default, whereas a single node Cassandra
applies the change at once.
+datastax-java-driver.advanced.metadata.schema.debouncer.window = 0