Skip to content

Commit 5ecbcce

Browse files
authored
Use "node.processors" setting starting from 7.4.0 (elastic#136175) (elastic#136183)
Setting `node.processor` has been introduced in 7.4.0 and `processors` has been deprecated at this version. This change fixes failures of some tests caused by the deprecation message.
1 parent 509805f commit 5ecbcce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build-tools/src/main/java/org/elasticsearch/gradle/testclusters/ElasticsearchNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ private void createConfiguration() {
14091409
// Limit the number of allocated processors for all nodes in the cluster by default.
14101410
// This is to ensure that the tests run consistently across different environments.
14111411
String processorCount = shouldConfigureTestClustersWithOneProcessor() ? "1" : "2";
1412-
if (getVersion().onOrAfter("7.6.0")) {
1412+
if (getVersion().onOrAfter("7.4.0")) {
14131413
baseConfig.put("node.processors", processorCount);
14141414
} else {
14151415
baseConfig.put("processors", processorCount);

test/test-clusters/src/main/java/org/elasticsearch/test/cluster/local/DefaultSettingsProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public Map<String, String> get(LocalNodeSpec nodeSpec) {
4444

4545
// Limit the number of allocated processors for all nodes in the cluster by default.
4646
// This is to ensure that the tests run consistently across different environments.
47-
if (nodeSpec.getVersion().onOrAfter("7.6.0")) {
47+
if (nodeSpec.getVersion().onOrAfter("7.4.0")) {
4848
settings.put("node.processors", "2");
4949
} else {
5050
settings.put("processors", "2");

0 commit comments

Comments
 (0)