Skip to content

Commit dcfea76

Browse files
authored
Merge branch 'main' into ps250318-public-isValidFormatId
2 parents 6a4b677 + c58ac45 commit dcfea76

File tree

145 files changed

+7517
-3474
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+7517
-3474
lines changed

build-conventions/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
plugins {
11-
id "com.gradle.develocity" version "3.18.1"
11+
id "com.gradle.develocity" version "3.19.2"
1212
}
1313

1414
rootProject.name = 'build-conventions'

build-tools-internal/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pluginManagement {
99
}
1010

1111
plugins {
12-
id "com.gradle.develocity" version "3.18.1"
12+
id "com.gradle.develocity" version "3.19.2"
1313
}
1414

1515
dependencyResolutionManagement {

build-tools/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pluginManagement {
1010
includeBuild "../build-conventions"
1111
}
1212
plugins {
13-
id "com.gradle.develocity" version "3.18.1"
13+
id "com.gradle.develocity" version "3.19.2"
1414
}
1515
include 'reaper'
1616

docs/changelog/124574.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 124574
2+
summary: Allow passing several reserved state chunks in single process call
3+
area: Infra/Settings
4+
type: enhancement
5+
issues: []

docs/changelog/124594.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 124594
2+
summary: Store arrays offsets for numeric fields natively with synthetic source
3+
area: Mapping
4+
type: enhancement
5+
issues: []

docs/changelog/124611.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 124611
2+
summary: Reuse child `outputSet` inside the plan where possible
3+
area: ES|QL
4+
type: enhancement
5+
issues: []

gradle/build.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ checkstyle = "com.puppycrawl.tools:checkstyle:10.3"
1616
commmons-io = "commons-io:commons-io:2.2"
1717
docker-compose = "com.avast.gradle:gradle-docker-compose-plugin:0.17.5"
1818
forbiddenApis = "de.thetaphi:forbiddenapis:3.8"
19-
gradle-enterprise = "com.gradle:develocity-gradle-plugin:3.18.1"
19+
gradle-enterprise = "com.gradle:develocity-gradle-plugin:3.19.2"
2020
hamcrest = "org.hamcrest:hamcrest:2.1"
2121
httpcore5 = "org.apache.httpcomponents.core5:httpcore5:5.3.3"
2222
httpclient5 = "org.apache.httpcomponents.client5:httpclient5:5.4.2"

gradle/verification-metadata.xml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -814,14 +814,9 @@
814814
<sha256 value="48234cd74e35d91a31a683820a35b5b6d11b55527f32a5b162c6757408b95d7a" origin="Generated by Gradle"/>
815815
</artifact>
816816
</component>
817-
<component group="com.gradle" name="develocity-gradle-plugin" version="3.17.4">
818-
<artifact name="develocity-gradle-plugin-3.17.4.jar">
819-
<sha256 value="e2b3f8a191b0b401b75c2c4542d3d1719814a4212e6920fae4f2f940678bfd99" origin="Generated by Gradle"/>
820-
</artifact>
821-
</component>
822-
<component group="com.gradle" name="develocity-gradle-plugin" version="3.18.1">
823-
<artifact name="develocity-gradle-plugin-3.18.1.jar">
824-
<sha256 value="0adf32afef4ae46a131367e393d18a5d9529750dfd1432287797a64b2c36c7ef" origin="Generated by Gradle"/>
817+
<component group="com.gradle" name="develocity-gradle-plugin" version="3.19.2">
818+
<artifact name="develocity-gradle-plugin-3.19.2.jar">
819+
<sha256 value="fc611e8858a901619831ea1d9efd289db7fea28a0ca3d091abdd363365d9512b" origin="Generated by Gradle"/>
825820
</artifact>
826821
</component>
827822
<component group="com.gradleup.shadow" name="shadow-gradle-plugin" version="8.3.5">

modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/RemoveProcessor.java

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,9 @@ public IngestDocument execute(IngestDocument document) {
5959
}
6060

6161
private void fieldsToRemoveProcessor(IngestDocument document) {
62-
// micro-optimization note: actual for-each loops here rather than a .forEach because it happens to be ~5% faster in benchmarks
63-
if (ignoreMissing) {
64-
for (TemplateScript.Factory field : fieldsToRemove) {
65-
removeWhenPresent(document, document.renderTemplate(field));
66-
}
67-
} else {
68-
for (TemplateScript.Factory field : fieldsToRemove) {
69-
document.removeField(document.renderTemplate(field));
70-
}
62+
// micro-optimization note: actual for-each loop here rather than a .forEach because it happens to be ~5% faster in benchmarks
63+
for (TemplateScript.Factory field : fieldsToRemove) {
64+
document.removeField(document.renderTemplate(field), ignoreMissing);
7165
}
7266
}
7367

@@ -76,13 +70,7 @@ private void fieldsToKeepProcessor(IngestDocument document) {
7670
.stream()
7771
.filter(documentField -> IngestDocument.Metadata.isMetadata(documentField) == false)
7872
.filter(documentField -> shouldKeep(documentField, fieldsToKeep, document) == false)
79-
.forEach(documentField -> removeWhenPresent(document, documentField));
80-
}
81-
82-
private static void removeWhenPresent(IngestDocument document, String documentField) {
83-
if (document.hasField(documentField)) {
84-
document.removeField(documentField);
85-
}
73+
.forEach(documentField -> document.removeField(documentField, true));
8674
}
8775

8876
static boolean shouldKeep(String documentField, List<TemplateScript.Factory> fieldsToKeep, IngestDocument document) {

muted-tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,6 @@ tests:
285285
- class: org.elasticsearch.smoketest.MlWithSecurityIT
286286
method: test {yaml=ml/start_data_frame_analytics/Test start classification analysis when the dependent variable is missing}
287287
issue: https://github.com/elastic/elasticsearch/issues/124168
288-
- class: org.elasticsearch.search.fieldcaps.FieldCapabilitiesIT
289-
method: testRelocation
290-
issue: https://github.com/elastic/elasticsearch/issues/124227
291288
- class: org.elasticsearch.smoketest.MlWithSecurityIT
292289
method: test {yaml=ml/3rd_party_deployment/Test start and stop multiple deployments}
293290
issue: https://github.com/elastic/elasticsearch/issues/124315
@@ -393,9 +390,6 @@ tests:
393390
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
394391
method: test {p0=search/610_function_score/Random}
395392
issue: https://github.com/elastic/elasticsearch/issues/125010
396-
- class: org.elasticsearch.packaging.test.DockerTests
397-
method: test010Install
398-
issue: https://github.com/elastic/elasticsearch/issues/119441
399393
- class: org.elasticsearch.xpack.ilm.DataStreamAndIndexLifecycleMixingTests
400394
method: testGetDataStreamResponse
401395
issue: https://github.com/elastic/elasticsearch/issues/125083

0 commit comments

Comments
 (0)