Skip to content

Commit b198800

Browse files
committed
Merge branch 'main' into feature/esql-match-options
# Conflicts: # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java
2 parents 8385993 + 4783d1f commit b198800

File tree

104 files changed

+1846
-1002
lines changed

Some content is hidden

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

104 files changed

+1846
-1002
lines changed

docs/changelog/120392.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 120392
2+
summary: Test/107515 restore template with match only text mapper it fail
3+
area: Search
4+
type: bug
5+
issues:
6+
- 107515

docs/changelog/120617.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 120617
2+
summary: Fix queries with document level security on lookup indexes
3+
area: ES|QL
4+
type: bug
5+
issues: [120509]

docs/changelog/120717.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 120717
2+
summary: Fix LTR rescorer throws 'local model reference is null' on multi-shards index when explained is enabled
3+
area: Ranking
4+
type: bug
5+
issues:
6+
- 120739

docs/changelog/120748.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
pr: 120748
2+
summary: Removing support for types field in watcher search
3+
area: Watcher
4+
type: breaking
5+
issues: []
6+
breaking:
7+
title: Removing support for types field in watcher search
8+
area: REST API
9+
details: >-
10+
Previously, setting the `input.search.request.types` field in the payload when creating a watcher to an empty array
11+
was allowed, although it resulted in a deprecation warning and had no effect (and any value other than an empty
12+
array would result in an error). Now, support for this field is entirely removed, and the empty array will also
13+
result in an error.
14+
impact: Users should stop setting this field (which did not have any effect anyway).
15+
notable: false

docs/changelog/120752.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 120752
2+
summary: Refresh source index before reindexing data stream index
3+
area: Data streams
4+
type: bug
5+
issues:
6+
- 120314

docs/changelog/120753.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 120753
2+
summary: Optimize `IngestDocMetadata` `isAvailable`
3+
area: Ingest Node
4+
type: enhancement
5+
issues: []

docs/changelog/120781.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 120781
2+
summary: Add back `keep_alive` to `async_search.submit` rest-api-spec
3+
area: Search
4+
type: bug
5+
issues: []

docs/changelog/120809.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 120809
2+
summary: LTR sometines throw `NullPointerException:` Cannot read field "approximation"
3+
because "top" is null
4+
area: Ranking
5+
type: bug
6+
issues: []

modules/apm/src/main/java/org/elasticsearch/telemetry/apm/internal/APMAgentSettings.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ public void initAgentSystemProperties(Settings settings) {
9090
*/
9191
@SuppressForbidden(reason = "Need to be able to manipulate APM agent-related properties to set them dynamically")
9292
public void setAgentSetting(String key, String value) {
93+
if (key.startsWith("global_labels.")) {
94+
// Invalid agent setting, leftover from flattening global labels in APMJVMOptions
95+
// https://github.com/elastic/elasticsearch/issues/120791
96+
return;
97+
}
9398
final String completeKey = "elastic.apm." + Objects.requireNonNull(key);
9499
AccessController.doPrivileged((PrivilegedAction<Void>) () -> {
95100
if (value == null || value.isEmpty()) {
@@ -242,8 +247,8 @@ private static Setting<String> concreteAgentSetting(String namespace, String qua
242247
return new Setting<>(qualifiedKey, "", (value) -> {
243248
if (qualifiedKey.equals("_na_") == false && PERMITTED_AGENT_KEYS.contains(namespace) == false) {
244249
if (namespace.startsWith("global_labels.")) {
245-
// The nested labels syntax is transformed in APMJvmOptions.
246-
// Ignore these here to not fail if not correctly removed.
250+
// Invalid agent setting, leftover from flattening global labels in APMJVMOptions
251+
// https://github.com/elastic/elasticsearch/issues/120791
247252
return value;
248253
}
249254
throw new IllegalArgumentException("Configuration [" + qualifiedKey + "] is either prohibited or unknown.");

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

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,11 +1137,8 @@ public void testPartialRestoreSnapshotThatIncludesDataStream() {
11371137

11381138
/**
11391139
* This test is a copy of the {@link #testPartialRestoreSnapshotThatIncludesDataStream()} the only difference
1140-
* is that one include the global state and one doesn't. In general this shouldn't matter that's why it used to be
1141-
* a random parameter of the test, but because of #107515 it fails when we include the global state. Keep them
1142-
* separate until this is fixed.
1140+
* is that one include the global state and one doesn't.
11431141
*/
1144-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/107515")
11451142
public void testPartialRestoreSnapshotThatIncludesDataStreamWithGlobalState() {
11461143
final String snapshot = "test-snapshot";
11471144
final String indexWithoutDataStream = "test-idx-no-ds";
@@ -1307,11 +1304,8 @@ public void testExcludeDSFromSnapshotWhenExcludingAnyOfItsIndices() {
13071304

13081305
/**
13091306
* This test is a copy of the {@link #testExcludeDSFromSnapshotWhenExcludingAnyOfItsIndices()} ()} the only difference
1310-
* is that one include the global state and one doesn't. In general this shouldn't matter that's why it used to be
1311-
* a random parameter of the test, but because of #107515 it fails when we include the global state. Keep them
1312-
* separate until this is fixed.
1307+
* is that one include the global state and one doesn't.
13131308
*/
1314-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/107515")
13151309
public void testExcludeDSFromSnapshotWhenExcludingItsIndicesWithGlobalState() {
13161310
final String snapshot = "test-snapshot";
13171311
final String indexWithoutDataStream = "test-idx-no-ds";
@@ -1477,10 +1471,6 @@ public void testWarningHeaderAbsentOnRestoreWithTemplates() throws Exception {
14771471

14781472
}
14791473

1480-
/**
1481-
* This test is muted as it's awaiting the same fix as {@link #testPartialRestoreSnapshotThatIncludesDataStreamWithGlobalState()}
1482-
*/
1483-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/107515")
14841474
public void testWarningHeaderOnRestoreTemplateFromSnapshot() throws Exception {
14851475
String datastreamName = "ds";
14861476

0 commit comments

Comments
 (0)