This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch 3.27.x
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit f2540dc1ee3cb412e460427cf9d25eeb83c90ae9
Author: James Netherton <[email protected]>
AuthorDate: Fri Sep 26 11:44:53 2025 +0100

    Set ElasticSearch container ES_JAVA_OPTS and disable disk-based shard 
allocation thresholds
---
 .../elasticsearch/rest/client/it/ElasticsearchRestTestResource.java     | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/integration-tests/elasticsearch-rest-client/src/test/java/org/apache/camel/quarkus/component/elasticsearch/rest/client/it/ElasticsearchRestTestResource.java
 
b/integration-tests/elasticsearch-rest-client/src/test/java/org/apache/camel/quarkus/component/elasticsearch/rest/client/it/ElasticsearchRestTestResource.java
index 3a0f32a9bf..42227daed4 100644
--- 
a/integration-tests/elasticsearch-rest-client/src/test/java/org/apache/camel/quarkus/component/elasticsearch/rest/client/it/ElasticsearchRestTestResource.java
+++ 
b/integration-tests/elasticsearch-rest-client/src/test/java/org/apache/camel/quarkus/component/elasticsearch/rest/client/it/ElasticsearchRestTestResource.java
@@ -68,6 +68,7 @@ public class ElasticsearchRestTestResource implements 
QuarkusTestResourceLifecyc
             container = new GenericContainer<>(ELASTICSEARCH_IMAGE)
                     .withExposedPorts(ELASTICSEARCH_PORT)
                     .withLogConsumer(new Slf4jLogConsumer(LOGGER))
+                    
.withEnv("cluster.routing.allocation.disk.threshold_enabled", "false")
                     .withEnv("discovery.type", "single-node")
                     .withEnv("http.publish_host", 
DockerClientFactory.instance().dockerHostIpAddress())
                     .withEnv("xpack.security.enabled", "true")
@@ -80,6 +81,7 @@ public class ElasticsearchRestTestResource implements 
QuarkusTestResourceLifecyc
                     .withEnv("action.destructive_requires_name", "false") // 
needed for deleting all indexes after each test (allowing _all wildcard)
                     .withEnv("ELASTIC_USERNAME", ELASTICSEARCH_USERNAME)
                     .withEnv("ELASTIC_PASSWORD", ELASTICSEARCH_PASSWORD)
+                    .withEnv("ES_JAVA_OPTS", "-Xms512m -Xmx512m")
                     .withCopyToContainer(
                             
Transferable.of(Files.readAllBytes(Paths.get("target/certs/elasticsearch-keystore.p12"))),
                             
"/usr/share/elasticsearch/config/certs/elasticsearch-keystore.p12")

Reply via email to