Skip to content

Commit aea29af

Browse files
committed
Merge branch '9.0' into fork/mark-vieira/backport/9.0/pr-125545
# Conflicts: # build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/RestrictedBuildApiService.java
2 parents 7802228 + aa17ec6 commit aea29af

File tree

23 files changed

+157
-34
lines changed

23 files changed

+157
-34
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ private static ListMultimap<Class<?>, String> createLegacyRestTestBasePluginUsag
6060
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:smoke-test-plugins-ssl");
6161
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:smoke-test-security-with-mustache");
6262
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:xpack-prefix-rest-compat");
63-
map.put(LegacyRestTestBasePlugin.class, ":modules:ingest-geoip:qa:file-based-update");
64-
map.put(LegacyRestTestBasePlugin.class, ":plugins:discovery-gce:qa:gce");
6563
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:multi-cluster-search-security:legacy-with-basic-license");
6664
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:multi-cluster-search-security:legacy-with-full-license");
6765
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:multi-cluster-search-security:legacy-with-restricted-trust");

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import org.gradle.api.provider.Provider;
1717
import org.gradle.api.tasks.testing.Test;
1818

19+
import java.io.File;
1920
import java.util.Arrays;
2021
import java.util.List;
2122

@@ -26,21 +27,22 @@ public class MutedTestPlugin implements Plugin<Project> {
2627

2728
@Override
2829
public void apply(Project project) {
30+
project.getRootProject().getPlugins().apply(GlobalBuildInfoPlugin.class);
31+
var buildParams = loadBuildParams(project).get();
32+
33+
File settingsRoot = project.getLayout().getSettingsDirectory().getAsFile();
2934
String additionalFilePaths = project.hasProperty(ADDITIONAL_FILES_PROPERTY)
3035
? project.property(ADDITIONAL_FILES_PROPERTY).toString()
3136
: "";
3237
List<RegularFile> additionalFiles = Arrays.stream(additionalFilePaths.split(","))
3338
.filter(p -> p.isEmpty() == false)
34-
.map(p -> project.getRootProject().getLayout().getProjectDirectory().file(p))
39+
.map(p -> project.getLayout().getSettingsDirectory().file(p))
3540
.toList();
3641

37-
project.getRootProject().getPlugins().apply(GlobalBuildInfoPlugin.class);
38-
var buildParams = loadBuildParams(project).get();
39-
4042
Provider<MutedTestsBuildService> mutedTestsProvider = project.getGradle()
4143
.getSharedServices()
4244
.registerIfAbsent("mutedTests", MutedTestsBuildService.class, spec -> {
43-
spec.getParameters().getInfoPath().set(project.getRootProject().getProjectDir());
45+
spec.getParameters().getInfoPath().set(settingsRoot);
4446
spec.getParameters().getAdditionalFiles().set(additionalFiles);
4547
});
4648

docs/changelog/125666.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 125666
2+
summary: Minor-Fixes Support 7x segments as archive in 8x / 9x
3+
area: Search
4+
type: bug
5+
issues: []

docs/changelog/125716.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 125716
2+
summary: Return appropriate error on null dims update instead of npe
3+
area: Vector Search
4+
type: bug
5+
issues: []

docs/reference/release-notes/9.0.0.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Also see <<breaking-changes-9.0,Breaking changes in 9.0>>.
1212
TLS::
1313
* Drop `TLS_RSA` cipher support for JDK 24 {es-pull}123600[#123600]
1414

15+
Infra/Core::
16+
* Update the response format when detailed error information is disabled {es-pull}90529[#90529]
17+
1518
[[bug-9.0.0]]
1619
[float]
1720
=== Bug fixes

muted-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,12 @@ tests:
261261
- class: org.elasticsearch.index.shard.StoreRecoveryTests
262262
method: testAddIndices
263263
issue: https://github.com/elastic/elasticsearch/issues/124104
264+
- class: org.elasticsearch.xpack.esql.spatial.SpatialExtentAggregationNoLicenseIT
265+
method: testStExtentAggregationWithShapes
266+
issue: https://github.com/elastic/elasticsearch/issues/125734
267+
- class: org.elasticsearch.smoketest.MlWithSecurityIT
268+
method: test {yaml=ml/trained_model_cat_apis/Test cat trained models}
269+
issue: https://github.com/elastic/elasticsearch/issues/125750
264270

265271
# Examples:
266272
#

plugins/examples/security-authorization-engine/src/main/java/org/elasticsearch/example/CustomAuthorizationEngine.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
import org.elasticsearch.xpack.core.security.authc.Authentication;
1818
import org.elasticsearch.xpack.core.security.authc.Subject;
1919
import org.elasticsearch.xpack.core.security.authz.AuthorizationEngine;
20-
import org.elasticsearch.xpack.core.security.authz.AuthorizationEngine.PrivilegesToCheck;
21-
import org.elasticsearch.xpack.core.security.authz.AuthorizationEngine.PrivilegesCheckResult;
2220
import org.elasticsearch.xpack.core.security.authz.ResolvedIndices;
2321
import org.elasticsearch.xpack.core.security.authz.RoleDescriptor;
2422
import org.elasticsearch.xpack.core.security.authz.RoleDescriptor.IndicesPrivileges;
@@ -34,12 +32,12 @@
3432
import java.util.Arrays;
3533
import java.util.Collection;
3634
import java.util.Collections;
37-
import java.util.function.Supplier;
3835
import java.util.HashMap;
3936
import java.util.LinkedHashMap;
4037
import java.util.List;
4138
import java.util.Map;
4239
import java.util.Set;
40+
import java.util.function.Supplier;
4341
import java.util.stream.Collectors;
4442

4543
/**

plugins/examples/security-authorization-engine/src/test/java/org/elasticsearch/example/CustomAuthorizationEngineTests.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
import org.elasticsearch.action.search.SearchRequest;
1313
import org.elasticsearch.action.support.PlainActionFuture;
14-
import org.elasticsearch.cluster.metadata.IndexAbstraction;
15-
import org.elasticsearch.cluster.metadata.IndexAbstraction.ConcreteIndex;
1614
import org.elasticsearch.cluster.metadata.IndexMetadata;
1715
import org.elasticsearch.cluster.metadata.Metadata;
1816
import org.elasticsearch.common.settings.Settings;
@@ -30,9 +28,6 @@
3028
import org.elasticsearch.xpack.core.security.user.User;
3129

3230
import java.util.Collections;
33-
import java.util.HashMap;
34-
import java.util.Map;
35-
import java.util.stream.Stream;
3631

3732
import static org.hamcrest.Matchers.is;
3833

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/40_knn_search.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,3 +605,28 @@ setup:
605605
- match: { hits.hits.0._score: $knn_score0 }
606606
- match: { hits.hits.1._score: $knn_score1 }
607607
- match: { hits.hits.2._score: $knn_score2 }
608+
---
609+
"Updating dim to null is not allowed":
610+
- requires:
611+
cluster_features: "mapper.npe_on_dims_update_fix"
612+
reason: "dims update fix"
613+
- do:
614+
indices.create:
615+
index: test_index
616+
617+
- do:
618+
indices.put_mapping:
619+
index: test_index
620+
body:
621+
properties:
622+
embedding:
623+
type: dense_vector
624+
dims: 4
625+
- do:
626+
catch: bad_request
627+
indices.put_mapping:
628+
index: test_index
629+
body:
630+
properties:
631+
embedding:
632+
type: dense_vector

server/src/main/java/org/elasticsearch/index/mapper/MapperFeatures.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class MapperFeatures implements FeatureSpecification {
3131
public static final NodeFeature SPARSE_VECTOR_STORE_SUPPORT = new NodeFeature("mapper.sparse_vector.store_support");
3232
public static final NodeFeature SORT_FIELDS_CHECK_FOR_NESTED_OBJECT_FIX = new NodeFeature("mapper.nested.sorting_fields_check_fix");
3333
public static final NodeFeature DYNAMIC_HANDLING_IN_COPY_TO = new NodeFeature("mapper.copy_to.dynamic_handling");
34+
static final NodeFeature NPE_ON_DIMS_UPDATE_FIX = new NodeFeature("mapper.npe_on_dims_update_fix");
3435

3536
@Override
3637
public Set<NodeFeature> getTestFeatures() {
@@ -51,7 +52,8 @@ public Set<NodeFeature> getTestFeatures() {
5152
DYNAMIC_HANDLING_IN_COPY_TO,
5253
SourceFieldMapper.SYNTHETIC_RECOVERY_SOURCE,
5354
ObjectMapper.SUBOBJECTS_FALSE_MAPPING_UPDATE_FIX,
54-
DateFieldMapper.INVALID_DATE_FIX
55+
DateFieldMapper.INVALID_DATE_FIX,
56+
NPE_ON_DIMS_UPDATE_FIX
5557
);
5658
}
5759
}

0 commit comments

Comments
 (0)