From 6d68e8a10c2d66467af88c4a130d3020a23d5673 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Tue, 1 Aug 2017 14:49:47 +0900 Subject: [PATCH] Increase max compilation limit in standalone tests Some REST tests can rapid-fire script compilations that exceed the default script compilations per minute. Rather than subjecting ourselves to spurious failures because of the limit being too low, we opt for a larger limit here. --- .../org/elasticsearch/gradle/test/ClusterFormationTasks.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy index 180ada32294..d14ae498fe7 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy @@ -316,6 +316,8 @@ class ClusterFormationTasks { if (Version.fromString(node.nodeVersion).major >= 6) { esConfig['cluster.routing.allocation.disk.watermark.flood_stage'] = '1b' } + // increase script compilation limit since tests can rapid-fire script compilations + esConfig['script.max_compilations_per_minute'] = 2048 esConfig.putAll(node.config.settings) Task writeConfig = project.tasks.create(name: name, type: DefaultTask, dependsOn: setup)