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 fe2f3ce5dfbe CAMEL-25882: camel-cassandraql - Speed up tests by
removing the driver Netty shutdown quiet period
fe2f3ce5dfbe is described below
commit fe2f3ce5dfbe9cee5379f5fc9626f10353472a94
Author: Aurélien Pupier <[email protected]>
AuthorDate: Thu Nov 12 11:02:30 2026 +0100
CAMEL-25882: camel-cassandraql - Speed up tests by removing the driver
Netty shutdown quiet period
The Cassandra Java driver waits for a 2 seconds Netty graceful shutdown
quiet period on every CqlSession.close(). As the tests close a session
after each test, this added 2 seconds to the teardown of every test.
Set the quiet period to 0 for the tests only.
Running the module ITs goes from 4:51 to 1:52 minutes.
Co-authored-by: IBM Bob 2.2.1
Signed-off-by: Aurélien Pupier <[email protected]>
---
.../src/test/resources/application.conf | 23 ++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/components/camel-cassandraql/src/test/resources/application.conf
b/components/camel-cassandraql/src/test/resources/application.conf
new file mode 100644
index 000000000000..dac77c82922a
--- /dev/null
+++ b/components/camel-cassandraql/src/test/resources/application.conf
@@ -0,0 +1,23 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Speed up the tests: the driver waits for a 2 seconds "quiet period" on each
session close (netty graceful
+# shutdown), which adds 2 seconds to the teardown of every single test.
+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}
+}