Skip to content

Commit eda59f1

Browse files
authored
Use "node.processors" setting starting from 7.4.0 (#136175)
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 3391c95 commit eda59f1

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
@@ -1407,7 +1407,7 @@ private void createConfiguration() {
14071407
// Limit the number of allocated processors for all nodes in the cluster by default.
14081408
// This is to ensure that the tests run consistently across different environments.
14091409
String processorCount = shouldConfigureTestClustersWithOneProcessor() ? "1" : "2";
1410-
if (getVersion().onOrAfter("7.6.0")) {
1410+
if (getVersion().onOrAfter("7.4.0")) {
14111411
baseConfig.put("node.processors", processorCount);
14121412
} else {
14131413
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)