Tests: Use script.max_compilations_rate for BWC tests

As the setting is now backported to 6.0, the cluster
formation task can use only the new setting, no need
to use the old one anymore.
This commit is contained in:
Alexander Reelsen 2017-09-01 14:43:00 +02:00
parent 2d342c0830
commit 563ff3cbce
1 changed files with 1 additions and 5 deletions

View File

@ -329,11 +329,7 @@ class ClusterFormationTasks {
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 // increase script compilation limit since tests can rapid-fire script compilations
if (Version.fromString(node.nodeVersion).major > 6) { esConfig['script.max_compilations_rate'] = '2048/1m'
esConfig['script.max_compilations_rate'] = '2048/1m'
} else {
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)