Skip to content

Commit 42a964b

Browse files
authored
Merge branch 'main' into handle_quotes
2 parents da56da3 + 6bc1452 commit 42a964b

File tree

156 files changed

+2438
-639
lines changed

Some content is hidden

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

156 files changed

+2438
-639
lines changed

build-tools/src/integTest/groovy/org/elasticsearch/gradle/test/TestBuildInfoPluginFuncTest.groovy

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,6 @@ class TestBuildInfoPluginFuncTest extends AbstractGradleFuncTest {
3939
}
4040
"""
4141

42-
when:
43-
def result = gradleRunner('generateTestBuildInfo').build()
44-
def task = result.task(":generateTestBuildInfo")
45-
46-
47-
then:
48-
task.outcome == TaskOutcome.SUCCESS
49-
50-
def output = file("build/generated-build-info/plugin-test-build-info.json")
51-
output.exists() == true
52-
5342
def location = Map.of(
5443
"module", "com.example",
5544
"representative_class", "com/example/Example.class"
@@ -58,6 +47,15 @@ class TestBuildInfoPluginFuncTest extends AbstractGradleFuncTest {
5847
"component", "example-component",
5948
"locations", List.of(location)
6049
)
50+
51+
def output = file("build/generated-build-info/plugin-test-build-info.json")
52+
53+
when:
54+
def result = gradleRunner('generateTestBuildInfo').build()
55+
56+
then:
57+
result.task(":generateTestBuildInfo").outcome == TaskOutcome.SUCCESS
58+
output.exists() == true
6159
new ObjectMapper().readValue(output, Map.class) == expectedOutput
6260
}
6361

@@ -87,16 +85,7 @@ class TestBuildInfoPluginFuncTest extends AbstractGradleFuncTest {
8785
}
8886
"""
8987

90-
when:
91-
def result = gradleRunner('generateTestBuildInfo').build()
92-
def task = result.task(":generateTestBuildInfo")
93-
94-
95-
then:
96-
task.outcome == TaskOutcome.SUCCESS
97-
9888
def output = file("build/generated-build-info/plugin-test-build-info.json")
99-
output.exists() == true
10089

10190
def locationFromModuleInfo = Map.of(
10291
"module", "org.objectweb.asm",
@@ -115,7 +104,12 @@ class TestBuildInfoPluginFuncTest extends AbstractGradleFuncTest {
115104
"locations", List.of(locationFromModuleInfo, locationFromManifest, locationFromJarFileName)
116105
)
117106

118-
def value = new ObjectMapper().readValue(output, Map.class)
119-
value == expectedOutput
107+
when:
108+
def result = gradleRunner('generateTestBuildInfo').build()
109+
110+
then:
111+
result.task(":generateTestBuildInfo").outcome == TaskOutcome.SUCCESS
112+
output.exists() == true
113+
new ObjectMapper().readValue(output, Map.class) == expectedOutput
120114
}
121115
}

distribution/docker/src/docker/dockerfiles/cloud_ess_fips/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# Extract Elasticsearch artifact
2525
################################################################################
2626
27-
FROM docker.elastic.co/wolfi/chainguard-base-fips:latest@sha256:a9e07d97c55f5b854b1c203509e57b6f466eb26318540b2e1b59734355f747b6 AS builder
27+
FROM docker.elastic.co/wolfi/chainguard-base-fips:latest@sha256:68e0781cd592beda39880428985d5fecca1cf2abb18365da73bf1f7ebd994974 AS builder
2828
2929
# Install required packages to extract the Elasticsearch distribution
3030
RUN <%= retry.loop(package_manager, "export DEBIAN_FRONTEND=noninteractive && ${package_manager} update && ${package_manager} update && ${package_manager} add --no-cache curl") %>
@@ -103,7 +103,7 @@ WORKDIR /usr/share/elasticsearch/config
103103
# Add entrypoint
104104
################################################################################
105105

106-
FROM docker.elastic.co/wolfi/chainguard-base-fips:latest@sha256:a9e07d97c55f5b854b1c203509e57b6f466eb26318540b2e1b59734355f747b6
106+
FROM docker.elastic.co/wolfi/chainguard-base-fips:latest@sha256:68e0781cd592beda39880428985d5fecca1cf2abb18365da73bf1f7ebd994974
107107

108108
RUN <%= retry.loop(package_manager,
109109
"export DEBIAN_FRONTEND=noninteractive && \n" +

distribution/docker/src/docker/dockerfiles/wolfi/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# Extract Elasticsearch artifact
2525
################################################################################
2626
27-
FROM docker.elastic.co/wolfi/chainguard-base:latest@sha256:55ee1dca9780931b0929d6eb734f455790c06ddbb59f55008e0cddebfbfd1e2e AS builder
27+
FROM docker.elastic.co/wolfi/chainguard-base:latest@sha256:3d19648819612728a676ab4061edfb3283bd7117a22c6c4479ee1c1d51831832 AS builder
2828
2929
# Install required packages to extract the Elasticsearch distribution
3030
RUN <%= retry.loop(package_manager, "export DEBIAN_FRONTEND=noninteractive && ${package_manager} update && ${package_manager} update && ${package_manager} add --no-cache curl") %>
@@ -79,7 +79,7 @@ RUN sed -i -e 's/ES_DISTRIBUTION_TYPE=tar/ES_DISTRIBUTION_TYPE=docker/' bin/elas
7979
# Add entrypoint
8080
################################################################################
8181

82-
FROM docker.elastic.co/wolfi/chainguard-base:latest@sha256:55ee1dca9780931b0929d6eb734f455790c06ddbb59f55008e0cddebfbfd1e2e
82+
FROM docker.elastic.co/wolfi/chainguard-base:latest@sha256:3d19648819612728a676ab4061edfb3283bd7117a22c6c4479ee1c1d51831832
8383

8484
RUN <%= retry.loop(package_manager,
8585
"export DEBIAN_FRONTEND=noninteractive && \n" +

docs/changelog/127767.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 127767
2+
summary: Integrate `OpenAi` Chat Completion in `SageMaker`
3+
area: Machine Learning
4+
type: enhancement
5+
issues: []

docs/changelog/128139.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 128139
2+
summary: Skip indexing points for `seq_no` in tsdb and logsdb
3+
area: Mapping
4+
type: enhancement
5+
issues: []

docs/changelog/128163.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
pr: 128163
2+
summary: Make `skip_unavailable` catch all errors
3+
area: ES|QL
4+
type: breaking
5+
issues: [ ]
6+
breaking:
7+
title: Cluster setting "skip_unavailable" catches all runtime errors
8+
area: ES|QL
9+
details: "If `skip_unavailable` is set to `true`, the runtime errors from this cluster\
10+
\ do not lead to a failure of the query. Instead, the cluster is set to `skipped`\
11+
\ or `partial` status, and the query execution continues. This is a breaking change\
12+
\ from previous versions, where `skip_unavailable` only applied to errors related\
13+
\ to a cluster being unavailable."
14+
impact: "The errors on remote clusters, e.g. missing indices, will not lead to a\
15+
\ failure of the query. Instead, the cluster is set to `skipped` or `partial` status\
16+
\ in the response metadata."
17+
notable: false

docs/changelog/128464.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 128464
2+
summary: Add support for parameters in LIMIT command
3+
area: ES|QL
4+
type: enhancement
5+
issues: []

modules/data-streams/src/main/java/org/elasticsearch/datastreams/action/TransportUpdateDataStreamSettingsAction.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.elasticsearch.common.util.concurrent.EsExecutors;
3434
import org.elasticsearch.core.TimeValue;
3535
import org.elasticsearch.index.Index;
36+
import org.elasticsearch.index.IndexSettings;
3637
import org.elasticsearch.indices.SystemIndices;
3738
import org.elasticsearch.injection.guice.Inject;
3839
import org.elasticsearch.tasks.Task;
@@ -53,7 +54,7 @@ public class TransportUpdateDataStreamSettingsAction extends TransportMasterNode
5354
UpdateDataStreamSettingsAction.Request,
5455
UpdateDataStreamSettingsAction.Response> {
5556
private static final Logger logger = LogManager.getLogger(TransportUpdateDataStreamSettingsAction.class);
56-
private static final Set<String> APPLY_TO_BACKING_INDICES = Set.of("index.lifecycle.name");
57+
private static final Set<String> APPLY_TO_BACKING_INDICES = Set.of("index.lifecycle.name", IndexSettings.PREFER_ILM);
5758
private static final Set<String> APPLY_TO_DATA_STREAM_ONLY = Set.of("index.number_of_shards");
5859
private final MetadataDataStreamsService metadataDataStreamsService;
5960
private final MetadataUpdateSettingsService updateSettingsService;

modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/240_data_stream_settings.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,20 @@ setup:
5151
body:
5252
index:
5353
number_of_shards: 2
54-
lifecycle.name: my-new-policy
54+
lifecycle:
55+
name: my-new-policy
56+
prefer_ilm: true
5557
- match: { data_streams.0.name: my-data-stream-1 }
5658
- match: { data_streams.0.applied_to_data_stream: true }
5759
- match: { data_streams.0.index_settings_results.applied_to_data_stream_only: [index.number_of_shards]}
58-
- match: { data_streams.0.index_settings_results.applied_to_data_stream_and_backing_indices: [index.lifecycle.name] }
60+
- length: { data_streams.0.index_settings_results.applied_to_data_stream_and_backing_indices: 2 }
5961
- match: { data_streams.0.settings.index.number_of_shards: "2" }
6062
- match: { data_streams.0.settings.index.lifecycle.name: "my-new-policy" }
63+
- match: { data_streams.0.settings.index.lifecycle.prefer_ilm: "true" }
6164
- match: { data_streams.0.effective_settings.index.number_of_shards: "2" }
6265
- match: { data_streams.0.effective_settings.index.number_of_replicas: "0" }
6366
- match: { data_streams.0.effective_settings.index.lifecycle.name: "my-new-policy" }
67+
- match: { data_streams.0.effective_settings.index.lifecycle.prefer_ilm: "true" }
6468

6569
- do:
6670
indices.rollover:
@@ -79,13 +83,15 @@ setup:
7983
- match: { data_streams.0.effective_settings.index.number_of_shards: "2" }
8084
- match: { data_streams.0.effective_settings.index.number_of_replicas: "0" }
8185
- match: { data_streams.0.effective_settings.index.lifecycle.name: "my-new-policy" }
86+
- match: { data_streams.0.effective_settings.index.lifecycle.prefer_ilm: "true" }
8287

8388
- do:
8489
indices.get_data_stream:
8590
name: my-data-stream-1
8691
- match: { data_streams.0.name: my-data-stream-1 }
8792
- match: { data_streams.0.settings.index.number_of_shards: "2" }
8893
- match: { data_streams.0.settings.index.lifecycle.name: "my-new-policy" }
94+
- match: { data_streams.0.settings.index.lifecycle.prefer_ilm: "true" }
8995
- match: { data_streams.0.effective_settings: null }
9096

9197
- do:
@@ -101,6 +107,7 @@ setup:
101107
- match: { .$idx0name.settings.index.lifecycle.name: "my-new-policy" }
102108
- match: { .$idx1name.settings.index.number_of_shards: "2" }
103109
- match: { .$idx1name.settings.index.lifecycle.name: "my-new-policy" }
110+
- match: { .$idx1name.settings.index.lifecycle.prefer_ilm: "true" }
104111

105112
---
106113
"Test multiple data streams":

modules/repository-azure/src/main/java/org/elasticsearch/repositories/azure/AzureRepository.java

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

1212
import org.apache.logging.log4j.LogManager;
1313
import org.apache.logging.log4j.Logger;
14+
import org.elasticsearch.cluster.metadata.ProjectId;
1415
import org.elasticsearch.cluster.metadata.RepositoryMetadata;
1516
import org.elasticsearch.cluster.service.ClusterService;
1617
import org.elasticsearch.common.Strings;
@@ -110,6 +111,7 @@ public static final class Repository {
110111
private final RepositoriesMetrics repositoriesMetrics;
111112

112113
public AzureRepository(
114+
final ProjectId projectId,
113115
final RepositoryMetadata metadata,
114116
final NamedXContentRegistry namedXContentRegistry,
115117
final AzureStorageService storageService,
@@ -119,6 +121,7 @@ public AzureRepository(
119121
final RepositoriesMetrics repositoriesMetrics
120122
) {
121123
super(
124+
projectId,
122125
metadata,
123126
namedXContentRegistry,
124127
clusterService,

0 commit comments

Comments
 (0)