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.
This commit is contained in:
Jason Tedor 2017-08-01 14:49:47 +09:00
parent bc8dc683e4
commit 6d68e8a10c
1 changed files with 2 additions and 0 deletions

View File

@ -316,6 +316,8 @@ class ClusterFormationTasks {
if (Version.fromString(node.nodeVersion).major >= 6) { if (Version.fromString(node.nodeVersion).major >= 6) {
esConfig['cluster.routing.allocation.disk.watermark.flood_stage'] = '1b' 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) esConfig.putAll(node.config.settings)
Task writeConfig = project.tasks.create(name: name, type: DefaultTask, dependsOn: setup) Task writeConfig = project.tasks.create(name: name, type: DefaultTask, dependsOn: setup)