From 9f2d85e1c68a3bfe53f1a339207595d86589812a Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Mon, 13 Jul 2020 11:15:57 +1000 Subject: [PATCH] Fix script compilation settings Relates: https://github.com/elastic/elasticsearch/pull/58283 This commit updates integration test cluster settings to use disable_max_compilations_rate for 8.0.0-SNAPSHOT and above, and remove using max_compilations_rate which is no longer recognized. --- .../ManagedElasticsearch/Clusters/ClientTestClusterBase.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Tests.Core/ManagedElasticsearch/Clusters/ClientTestClusterBase.cs b/tests/Tests.Core/ManagedElasticsearch/Clusters/ClientTestClusterBase.cs index 76a75a63b80..2167b6a8038 100644 --- a/tests/Tests.Core/ManagedElasticsearch/Clusters/ClientTestClusterBase.cs +++ b/tests/Tests.Core/ManagedElasticsearch/Clusters/ClientTestClusterBase.cs @@ -60,7 +60,8 @@ params ElasticsearchPlugin[] plugins Add("node.remote_cluster_client", "true", ">=8.0.0-SNAPSHOT"); Add($"script.max_compilations_per_minute", "10000", "<6.0.0-rc1"); - Add($"script.max_compilations_rate", "10000/1m", ">=6.0.0-rc1"); + Add($"script.max_compilations_rate", "10000/1m", ">=6.0.0-rc1 <7.9.0-SNAPSHOT"); + Add($"script.disable_max_compilations_rate", "true", ">=7.9.0-SNAPSHOT"); Add($"script.inline", "true", "<5.5.0"); Add($"script.stored", "true", ">5.0.0-alpha1 <5.5.0");