Skip to content

Commit acc4614

Browse files
authored
Merge branch 'main' into SEARCH-1027-linear-retriever-top-level-option-for-normalizer
2 parents adc7ad2 + 15e9d05 commit acc4614

File tree

5 files changed

+25
-8
lines changed

5 files changed

+25
-8
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/InternalTestClustersPlugin.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ public void apply(Project project) {
3434
|| buildParams.getBwcVersions().unreleasedInfo(version) == null
3535
);
3636

37-
if (shouldConfigureTestClustersWithOneProcessor()) {
38-
NamedDomainObjectContainer<ElasticsearchCluster> testClusters = (NamedDomainObjectContainer<ElasticsearchCluster>) project
39-
.getExtensions()
40-
.getByName(TestClustersPlugin.EXTENSION_NAME);
41-
testClusters.configureEach(elasticsearchCluster -> elasticsearchCluster.setting("node.processors", "1"));
42-
}
37+
NamedDomainObjectContainer<ElasticsearchCluster> testClusters = (NamedDomainObjectContainer<ElasticsearchCluster>) project
38+
.getExtensions()
39+
.getByName(TestClustersPlugin.EXTENSION_NAME);
40+
// Limit the number of allocated processors for all nodes to 2 in the cluster by default.
41+
// This is to ensure that the tests run consistently across different environments.
42+
String processorCount = shouldConfigureTestClustersWithOneProcessor() ? "1" : "2";
43+
testClusters.configureEach(elasticsearchCluster -> elasticsearchCluster.setting("node.processors", processorCount));
4344
}
4445

4546
private boolean shouldConfigureTestClustersWithOneProcessor() {

muted-tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,18 @@ tests:
609609
- class: org.elasticsearch.gradle.internal.transport.TransportVersionValidationFuncTest
610610
method: definitions have primary ids which cannot change
611611
issue: https://github.com/elastic/elasticsearch/issues/133131
612+
- class: org.elasticsearch.index.mapper.blockloader.IpFieldBlockLoaderTests
613+
method: testBlockLoader {preference=Params[syntheticSource=true, preference=NONE]}
614+
issue: https://github.com/elastic/elasticsearch/issues/133216
615+
- class: org.elasticsearch.index.mapper.blockloader.IpFieldBlockLoaderTests
616+
method: testBlockLoader {preference=Params[syntheticSource=true, preference=DOC_VALUES]}
617+
issue: https://github.com/elastic/elasticsearch/issues/133217
618+
- class: org.elasticsearch.index.mapper.blockloader.IpFieldBlockLoaderTests
619+
method: testBlockLoader {preference=Params[syntheticSource=true, preference=STORED]}
620+
issue: https://github.com/elastic/elasticsearch/issues/133218
621+
- class: org.elasticsearch.xpack.esql.action.RandomizedTimeSeriesIT
622+
method: testGroupBySubset
623+
issue: https://github.com/elastic/elasticsearch/issues/133220
612624

613625
# Examples:
614626
#

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public Map<String, String> get(LocalNodeSpec nodeSpec) {
4242
}
4343
}
4444

45+
// Limit the number of allocated processors for all nodes in the cluster by default.
46+
// This is to ensure that the tests run consistently across different environments.
47+
settings.put("node.processors", "2");
48+
4549
// Default the watermarks to absurdly low to prevent the tests from failing on nodes without enough disk space
4650
settings.put("cluster.routing.allocation.disk.watermark.low", "1b");
4751
settings.put("cluster.routing.allocation.disk.watermark.high", "1b");

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/generative/command/pipe/ForkGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public CommandDescription generate(
4040
completeCommand.append(command.commandString());
4141
}
4242

43-
final int branchCount = randomIntBetween(2, 3);
43+
final int branchCount = randomIntBetween(2, 8);
4444
final int branchToRetain = randomIntBetween(1, branchCount);
4545

4646
StringBuilder forkCmd = new StringBuilder(" | FORK ");

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/vector/VectorSimilarityFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public Block eval(Page page) {
116116
}
117117
}
118118
if (dimensions == 0) {
119-
return context.blockFactory().newConstantFloatBlockWith(0F, 0);
119+
return context.blockFactory().newConstantNullBlock(positionCount);
120120
}
121121

122122
float[] leftScratch = new float[dimensions];

0 commit comments

Comments
 (0)