Skip to content

Commit 6820c35

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 1ba2eaa + 856a4d7 commit 6820c35

File tree

51 files changed

+1045
-649
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

+1045
-649
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/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: []

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

rest-api-spec/src/main/resources/rest-api-spec/api/async_search.submit.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
"description":"Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false)",
4444
"default":false
4545
},
46+
"keep_alive": {
47+
"type": "time",
48+
"description": "Update the time interval in which the results (partial or final) for this search will be available",
49+
"default": "5d"
50+
},
4651
"batched_reduce_size":{
4752
"type":"number",
4853
"description":"The number of shard results that should be reduced at once on the coordinating node. This value should be used as the granularity at which progress results will be made available.",

server/src/main/java/org/elasticsearch/ReleaseVersions.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
package org.elasticsearch;
1111

1212
import org.elasticsearch.common.Strings;
13-
import org.elasticsearch.core.UpdateForV9;
13+
import org.elasticsearch.core.UpdateForV10;
1414
import org.elasticsearch.internal.BuildExtension;
1515
import org.elasticsearch.plugins.ExtensionLoader;
1616

@@ -114,8 +114,7 @@ private static IntFunction<String> lookupFunction(NavigableMap<Integer, List<Ver
114114
// this will no longer be the case with ES 10 (which won't know about ES v8.x where we introduced separated versions)
115115
// maybe keep the release mapping around in the csv file?
116116
// SEP for now
117-
@UpdateForV9(owner = UpdateForV9.Owner.CORE_INFRA)
118-
// @UpdateForV10(owner = UpdateForV10.Owner.CORE_INFRA)
117+
@UpdateForV10(owner = UpdateForV10.Owner.CORE_INFRA)
119118
Version oldVersion = Version.fromId(id);
120119
return oldVersion.toString();
121120
}

server/src/main/java/org/elasticsearch/Version.java

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
import org.elasticsearch.common.io.stream.StreamInput;
1515
import org.elasticsearch.common.io.stream.StreamOutput;
1616
import org.elasticsearch.core.Assertions;
17+
import org.elasticsearch.core.RestApiVersion;
1718
import org.elasticsearch.core.SuppressForbidden;
18-
import org.elasticsearch.core.UpdateForV9;
1919
import org.elasticsearch.monitor.jvm.JvmInfo;
2020
import org.elasticsearch.xcontent.ToXContentFragment;
2121
import org.elasticsearch.xcontent.XContentBuilder;
@@ -242,17 +242,15 @@ public class Version implements VersionId<Version>, ToXContentFragment {
242242
VERSION_STRINGS = Map.copyOf(builderByString);
243243
}
244244

245-
@UpdateForV9(owner = UpdateForV9.Owner.CORE_INFRA)
246-
// Re-enable this assertion once the rest api version is bumped
247245
private static void assertRestApiVersion() {
248-
// assert RestApiVersion.current().major == CURRENT.major && RestApiVersion.previous().major == CURRENT.major - 1
249-
// : "RestApiVersion must be upgraded "
250-
// + "to reflect major from Version.CURRENT ["
251-
// + CURRENT.major
252-
// + "]"
253-
// + " but is still set to ["
254-
// + RestApiVersion.current().major
255-
// + "]";
246+
assert RestApiVersion.current().major == CURRENT.major && RestApiVersion.previous().major == CURRENT.major - 1
247+
: "RestApiVersion must be upgraded "
248+
+ "to reflect major from Version.CURRENT ["
249+
+ CURRENT.major
250+
+ "]"
251+
+ " but is still set to ["
252+
+ RestApiVersion.current().major
253+
+ "]";
256254
}
257255

258256
public static Version readVersion(StreamInput in) throws IOException {

server/src/main/java/org/elasticsearch/cluster/ClusterState.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
import org.elasticsearch.common.xcontent.ChunkedToXContentHelper;
4848
import org.elasticsearch.core.Nullable;
4949
import org.elasticsearch.core.SuppressForbidden;
50-
import org.elasticsearch.core.UpdateForV9;
5150
import org.elasticsearch.index.shard.IndexLongFieldRange;
5251
import org.elasticsearch.indices.SystemIndexDescriptor;
5352
import org.elasticsearch.xcontent.ToXContent;
@@ -1039,12 +1038,6 @@ public static ClusterState readFrom(StreamInput in, DiscoveryNode localNode) thr
10391038
return builder.build();
10401039
}
10411040

1042-
/**
1043-
* If the cluster state does not contain transport version information, this is the version
1044-
* that is inferred for all nodes on version 8.8.0 or above.
1045-
*/
1046-
@UpdateForV9(owner = UpdateForV9.Owner.CORE_INFRA)
1047-
public static final TransportVersion INFERRED_TRANSPORT_VERSION = TransportVersions.V_8_8_0;
10481041
public static final Version VERSION_INTRODUCING_TRANSPORT_VERSIONS = Version.V_8_8_0;
10491042

10501043
@Override

server/src/main/java/org/elasticsearch/env/BuildVersion.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ public abstract class BuildVersion implements ToXContentFragment, Writeable {
7373
*/
7474
public abstract String toNodeMetadata();
7575

76+
/**
77+
* Returns the minimum compatible build version based on the current version.
78+
* Ie a node needs to have at least the return version in order to communicate with a node running the current version.
79+
*/
80+
public abstract BuildVersion minimumCompatibilityVersion();
81+
7682
/**
7783
* Create a {@link BuildVersion} from a version ID number.
7884
*

0 commit comments

Comments
 (0)