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
commit 888a894774257a0e1f0553ee216923aa4d1df945 Author: Aurélien Pupier <[email protected]> AuthorDate: Mon Sep 28 11:22:37 2026 +0200 Workaround for clickhouse 26.9 container force the lz4 compression algorithm. see https://github.com/ClickHouse/clickhouse-java/issues/3105 Co-authored-with: IBM Bob 2.1.0 Signed-off-by: Aurélien Pupier <[email protected]> --- .../ClickHouseLocalContainerInfraService.java | 7 +++++- .../clickhouse/services/clickhouse-workaround.xml | 25 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/test-infra/camel-test-infra-clickhouse/src/main/java/org/apache/camel/test/infra/clickhouse/services/ClickHouseLocalContainerInfraService.java b/test-infra/camel-test-infra-clickhouse/src/main/java/org/apache/camel/test/infra/clickhouse/services/ClickHouseLocalContainerInfraService.java index afaf940e26a5..e31f96b1f686 100644 --- a/test-infra/camel-test-infra-clickhouse/src/main/java/org/apache/camel/test/infra/clickhouse/services/ClickHouseLocalContainerInfraService.java +++ b/test-infra/camel-test-infra-clickhouse/src/main/java/org/apache/camel/test/infra/clickhouse/services/ClickHouseLocalContainerInfraService.java @@ -25,6 +25,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.testcontainers.clickhouse.ClickHouseContainer; import org.testcontainers.utility.DockerImageName; +import org.testcontainers.utility.MountableFile; /** * A service for a local instance of ClickHouse running with TestContainers @@ -57,7 +58,11 @@ public class ClickHouseLocalContainerInfraService implements ClickHouseInfraServ protected ClickHouseContainer initContainer(String imageName) { return new ClickHouseContainer( - DockerImageName.parse(imageName).asCompatibleSubstituteFor("clickhouse/clickhouse-server")); + DockerImageName.parse(imageName).asCompatibleSubstituteFor("clickhouse/clickhouse-server")) + .withCopyFileToContainer( + MountableFile.forClasspathResource( + "org/apache/camel/test/infra/clickhouse/services/clickhouse-workaround.xml"), + "/etc/clickhouse-server/users.d/workaround-3105.xml"); } @Override diff --git a/test-infra/camel-test-infra-clickhouse/src/main/resources/org/apache/camel/test/infra/clickhouse/services/clickhouse-workaround.xml b/test-infra/camel-test-infra-clickhouse/src/main/resources/org/apache/camel/test/infra/clickhouse/services/clickhouse-workaround.xml new file mode 100644 index 000000000000..1717845c41e0 --- /dev/null +++ b/test-infra/camel-test-infra-clickhouse/src/main/resources/org/apache/camel/test/infra/clickhouse/services/clickhouse-workaround.xml @@ -0,0 +1,25 @@ +<!-- + + 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. + +--> +<clickhouse> + <profiles> + <default> + <network_compression_method>lz4</network_compression_method> + </default> + </profiles> +</clickhouse>
