Skip to content

Commit ef894f3

Browse files
Merge branch 'main' into lookupJoin
2 parents 4db37fd + 74cd006 commit ef894f3

File tree

104 files changed

+5205
-314
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

+5205
-314
lines changed

docs/changelog/130092.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 130092
2+
summary: "Added Llama provider support to the Inference Plugin"
3+
area: Machine Learning
4+
type: enhancement
5+
issues: []

docs/changelog/131395.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 131395
2+
summary: Enable failure store for newly created OTel data streams
3+
area: Data streams
4+
type: enhancement
5+
issues: []

docs/changelog/131442.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 131442
2+
summary: Track inference deployments
3+
area: Machine Learning
4+
type: enhancement
5+
issues: []

docs/reference/elasticsearch/index-settings/slow-log.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Events that meet the specified threshold are emitted into [{{es}} logging](docs-
2020
* If [{{es}} monitoring](docs-content://deploy-manage/monitor/stack-monitoring.md) is enabled, from [Stack Monitoring](docs-content://deploy-manage/monitor/monitoring-data/visualizing-monitoring-data.md). Slow log events have a `logger` value of `index.search.slowlog` or `index.indexing.slowlog`.
2121
* From local {{es}} service logs directory. Slow log files have a suffix of `_index_search_slowlog.json` or `_index_indexing_slowlog.json`.
2222

23+
See this [this video](https://www.youtube.com/watch?v=ulUPJshB5bU) for a walkthrough of setting and reviewing slow logs.
2324

2425
## Slow log format [slow-log-format]
2526

libs/x-content/src/main/java/org/elasticsearch/xcontent/ConstructingObjectParser.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,27 @@ public <T> void declareField(BiConsumer<Value, T> consumer, ContextParser<Contex
220220
}
221221
}
222222

223+
/**
224+
* Declare a field that is an array of objects or null. Used to avoid calling the consumer when used with
225+
* {@link #optionalConstructorArg()} or {@link #constructorArg()}.
226+
* @param consumer Consumer that will be passed as is to the {@link #declareField(BiConsumer, ContextParser, ParseField, ValueType)}.
227+
* @param objectParser Parser that will parse the objects in the array, checking for nulls.
228+
* @param field Field to declare.
229+
*/
230+
@Override
231+
public <T> void declareObjectArrayOrNull(
232+
BiConsumer<Value, List<T>> consumer,
233+
ContextParser<Context, T> objectParser,
234+
ParseField field
235+
) {
236+
declareField(
237+
consumer,
238+
(p, c) -> p.currentToken() == XContentParser.Token.VALUE_NULL ? null : parseArray(p, c, objectParser),
239+
field,
240+
ValueType.OBJECT_ARRAY_OR_NULL
241+
);
242+
}
243+
223244
@Override
224245
public <T> void declareNamedObject(
225246
BiConsumer<Value, T> consumer,

muted-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,12 @@ tests:
478478
- class: org.elasticsearch.xpack.downsample.DownsampleIT
479479
method: testAggMetricInEsqlTSAfterDownsampling
480480
issue: https://github.com/elastic/elasticsearch/issues/131500
481+
- class: org.elasticsearch.xpack.esql.qa.multi_node.GenerativeIT
482+
method: test
483+
issue: https://github.com/elastic/elasticsearch/issues/131508
484+
- class: org.elasticsearch.action.admin.cluster.node.tasks.CancellableTasksIT
485+
method: testRemoveBanParentsOnDisconnect
486+
issue: https://github.com/elastic/elasticsearch/issues/131562
481487

482488
# Examples:
483489
#

server/src/main/java/module-info.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,4 +484,5 @@
484484
exports org.elasticsearch.index.codec.perfield;
485485
exports org.elasticsearch.index.codec.vectors to org.elasticsearch.test.knn;
486486
exports org.elasticsearch.index.codec.vectors.es818 to org.elasticsearch.test.knn;
487+
exports org.elasticsearch.inference.telemetry;
487488
}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,10 @@ static TransportVersion def(int id) {
342342
public static final TransportVersion NODE_USAGE_STATS_FOR_THREAD_POOLS_IN_CLUSTER_INFO = def(9_121_0_00);
343343
public static final TransportVersion ESQL_CATEGORIZE_OPTIONS = def(9_122_0_00);
344344
public static final TransportVersion ML_INFERENCE_AZURE_AI_STUDIO_RERANK_ADDED = def(9_123_0_00);
345-
public static final TransportVersion ESQL_LOOKUP_JOIN_ON_MANY_FIELDS = def(9_124_0_00);
345+
public static final TransportVersion PROJECT_STATE_REGISTRY_ENTRY = def(9_124_0_00);
346+
public static final TransportVersion ML_INFERENCE_LLAMA_ADDED = def(9_125_0_00);
347+
public static final TransportVersion ESQL_LOOKUP_JOIN_ON_MANY_FIELDS = def(9_126_0_00);
348+
346349

347350
/*
348351
* STOP! READ THIS FIRST! No, really,

server/src/main/java/org/elasticsearch/cluster/metadata/Metadata.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -835,10 +835,6 @@ private Iterator<? extends ToXContent> toXContentChunkedWithSingleProjectFormat(
835835
);
836836
}
837837

838-
private static final DiffableUtils.KeySerializer<ProjectId> PROJECT_ID_SERIALIZER = DiffableUtils.getWriteableKeySerializer(
839-
ProjectId.READER
840-
);
841-
842838
private static class MetadataDiff implements Diff<Metadata> {
843839

844840
private final long version;
@@ -880,7 +876,7 @@ private static class MetadataDiff implements Diff<Metadata> {
880876
multiProject = null;
881877
} else {
882878
singleProject = null;
883-
multiProject = DiffableUtils.diff(before.projectMetadata, after.projectMetadata, PROJECT_ID_SERIALIZER);
879+
multiProject = DiffableUtils.diff(before.projectMetadata, after.projectMetadata, ProjectId.PROJECT_ID_SERIALIZER);
884880
}
885881

886882
if (empty) {
@@ -1004,7 +1000,7 @@ private MetadataDiff(StreamInput in) throws IOException {
10041000
singleProject = null;
10051001
multiProject = DiffableUtils.readJdkMapDiff(
10061002
in,
1007-
PROJECT_ID_SERIALIZER,
1003+
ProjectId.PROJECT_ID_SERIALIZER,
10081004
ProjectMetadata::readFrom,
10091005
ProjectMetadata.ProjectMetadataDiff::new
10101006
);
@@ -1059,7 +1055,7 @@ public void writeTo(StreamOutput out) throws IOException {
10591055
if (multiProject != null) {
10601056
multiProject.writeTo(out);
10611057
} else {
1062-
DiffableUtils.singleEntryDiff(DEFAULT_PROJECT_ID, singleProject, PROJECT_ID_SERIALIZER).writeTo(out);
1058+
DiffableUtils.singleEntryDiff(DEFAULT_PROJECT_ID, singleProject, ProjectId.PROJECT_ID_SERIALIZER).writeTo(out);
10631059
}
10641060
}
10651061
}

server/src/main/java/org/elasticsearch/cluster/metadata/ProjectId.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
package org.elasticsearch.cluster.metadata;
1111

12+
import org.elasticsearch.cluster.DiffableUtils;
1213
import org.elasticsearch.common.Strings;
1314
import org.elasticsearch.common.io.stream.StreamInput;
1415
import org.elasticsearch.common.io.stream.StreamOutput;
@@ -26,6 +27,7 @@ public class ProjectId implements Writeable, ToXContent {
2627
private static final String DEFAULT_STRING = "default";
2728
public static final ProjectId DEFAULT = new ProjectId(DEFAULT_STRING);
2829
public static final Reader<ProjectId> READER = ProjectId::readFrom;
30+
public static final DiffableUtils.KeySerializer<ProjectId> PROJECT_ID_SERIALIZER = DiffableUtils.getWriteableKeySerializer(READER);
2931
private static final int MAX_LENGTH = 128;
3032

3133
private final String id;

0 commit comments

Comments
 (0)