Skip to content

Commit 9a159a4

Browse files
committed
Merge branch 'main' into feature/list_query_api
2 parents 9bcdb10 + dcfe053 commit 9a159a4

File tree

51 files changed

+930
-195
lines changed

Some content is hidden

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

51 files changed

+930
-195
lines changed

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

distribution/docker/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ void addBuildDockerContextTask(Architecture architecture, DockerBase base) {
316316
from configurations.fips
317317
}
318318
into("resources") {
319-
from tasks.named('fipsResources')
319+
from tasks.named('fipsDockerResources')
320320
}
321321
}
322322
}
@@ -536,9 +536,9 @@ void addBuildCloudDockerImageTasks(Architecture architecture) {
536536
}
537537

538538
// fips
539-
TaskProvider<ExportElasticsearchBuildResourcesTask> fipsResourcesTask = tasks.register('fipsResources', ExportElasticsearchBuildResourcesTask)
539+
TaskProvider<ExportElasticsearchBuildResourcesTask> fipsResourcesTask = tasks.register('fipsDockerResources', ExportElasticsearchBuildResourcesTask)
540540
fipsResourcesTask.configure {
541-
outputDir = project.layout.buildDirectory.dir('fips-resources').get().asFile
541+
outputDir = project.layout.buildDirectory.dir('fips-docker-resources').get().asFile
542542
copy 'fips_java.security'
543543
copy 'fips_java.policy'
544544
}

docs/changelog/125404.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 125404
2+
summary: Check if the anomaly results index has been rolled over
3+
area: Machine Learning
4+
type: upgrade
5+
issues: []

docs/changelog/125659.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 125659
2+
summary: Non existing synonyms sets do not fail shard recovery for indices
3+
area: "Analysis"
4+
type: bug
5+
issues:
6+
- 125603

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: []

modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/SynonymTokenFilterFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public ReaderWithOrigin getRulesReader(SynonymTokenFilterFactory factory, IndexC
7272
);
7373
} else {
7474
reader = new ReaderWithOrigin(
75-
Analysis.getReaderFromIndex(synonymsSet, factory.synonymsManagementAPIService),
75+
Analysis.getReaderFromIndex(synonymsSet, factory.synonymsManagementAPIService, factory.lenient),
7676
"[" + synonymsSet + "] synonyms_set in .synonyms index",
7777
synonymsSet
7878
);

modules/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams/DataStreamAutoshardingIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ private static ShardStats getShardStats(IndexMetadata indexMeta, int shardIndex,
527527
CommonStats stats = new CommonStats();
528528
stats.docs = new DocsStats(100, 0, randomByteSizeValue().getBytes());
529529
stats.store = new StoreStats();
530-
stats.indexing = new IndexingStats(new IndexingStats.Stats(1, 1, 1, 1, 1, 1, 1, 1, 1, false, 1, targetWriteLoad, 1, 0.123));
530+
stats.indexing = new IndexingStats(new IndexingStats.Stats(1, 1, 1, 1, 1, 1, 1, 1, 1, false, 1, targetWriteLoad, 1, 0.123, 0.234));
531531
return new ShardStats(shardRouting, new ShardPath(false, path, path, shardId), stats, null, null, null, false, 0);
532532
}
533533

muted-tests.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -245,16 +245,12 @@ tests:
245245
- class: org.elasticsearch.action.admin.cluster.node.tasks.CancellableTasksIT
246246
method: testChildrenTasksCancelledOnTimeout
247247
issue: https://github.com/elastic/elasticsearch/issues/123568
248-
- class: org.elasticsearch.test.rest.yaml.RcsCcsCommonYamlTestSuiteIT
249-
method: test {p0=search.vectors/41_knn_search_bbq_hnsw/Test knn search}
250-
issue: https://github.com/elastic/elasticsearch/issues/123727
251248
- class: org.elasticsearch.xpack.downsample.DataStreamLifecycleDownsampleDisruptionIT
252249
method: testDataStreamLifecycleDownsampleRollingRestart
253250
issue: https://github.com/elastic/elasticsearch/issues/123769
254251
- class: org.elasticsearch.xpack.searchablesnapshots.FrozenSearchableSnapshotsIntegTests
255252
method: testCreateAndRestorePartialSearchableSnapshot
256253
issue: https://github.com/elastic/elasticsearch/issues/123773
257-
258254
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
259255
method: test {p0=snapshot/10_basic/Create a source only snapshot and then restore it}
260256
issue: https://github.com/elastic/elasticsearch/issues/122755
@@ -318,9 +314,6 @@ tests:
318314
- class: org.elasticsearch.common.metrics.ExponentiallyWeightedMovingRateTests
319315
method: testEwmr_threadSafe
320316
issue: https://github.com/elastic/elasticsearch/issues/124692
321-
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
322-
method: test {p0=search.vectors/41_knn_search_bbq_hnsw/Test knn search}
323-
issue: https://github.com/elastic/elasticsearch/issues/124848
324317
- class: org.elasticsearch.packaging.test.BootstrapCheckTests
325318
method: test20RunWithBootstrapChecks
326319
issue: https://github.com/elastic/elasticsearch/issues/124940
@@ -354,9 +347,6 @@ tests:
354347
- class: org.elasticsearch.index.shard.StoreRecoveryTests
355348
method: testAddIndices
356349
issue: https://github.com/elastic/elasticsearch/issues/124104
357-
- class: org.elasticsearch.xpack.esql.parser.StatementParserTests
358-
method: testInvalidJoinPatterns
359-
issue: https://github.com/elastic/elasticsearch/issues/125536
360350
- class: org.elasticsearch.xpack.inference.registry.ModelRegistryMetadataTests
361351
method: testUpgrade
362352
issue: https://github.com/elastic/elasticsearch/issues/125554
@@ -396,6 +386,9 @@ tests:
396386
- class: org.elasticsearch.test.rest.ClientYamlTestSuiteIT
397387
method: test {yaml=cat.allocation/10_basic/Node forecasts}
398388
issue: https://github.com/elastic/elasticsearch/issues/125661
389+
- class: org.elasticsearch.xpack.esql.spatial.SpatialExtentAggregationNoLicenseIT
390+
method: testStExtentAggregationWithPoints
391+
issue: https://github.com/elastic/elasticsearch/issues/125735
399392

400393
# Examples:
401394
#

qa/mixed-cluster/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ excludeList.add('aggregations/percentiles_hdr_metric/Negative values test')
7070
// sync_id is removed in 9.0
7171
excludeList.add("cat.shards/10_basic/Help")
7272

73-
// Can't work until auto-expand replicas is 0-1 for synonyms index
74-
excludeList.add("synonyms/90_synonyms_reloading_for_synset/Reload analyzers for specific synonym set")
75-
7673
def clusterPath = getPath()
7774

7875
buildParams.bwcVersions.withWireCompatible { bwcVersion, baseName ->

rest-api-spec/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,5 @@ tasks.named("yamlRestCompatTestTransform").configure ({ task ->
8888
task.skipTest("indices.create/21_synthetic_source_stored/field param - keep nested array", "Synthetic source keep arrays now stores leaf arrays natively")
8989
task.skipTest("indices.create/21_synthetic_source_stored/field param - keep root array", "Synthetic source keep arrays now stores leaf arrays natively")
9090
task.skipTest("cluster.info/30_info_thread_pool/Cluster HTTP Info", "The search_throttled thread pool has been removed")
91+
task.skipTest("synonyms/80_synonyms_from_index/Fail loading synonyms from index if synonyms_set doesn't exist", "Synonyms do no longer fail if the synonyms_set doesn't exist")
9192
})

0 commit comments

Comments
 (0)