Skip to content

Commit db07c32

Browse files
Merge branch 'main' into likeToUpper_v2
2 parents ad68e52 + feb0b8f commit db07c32

File tree

132 files changed

+5590
-409
lines changed

Some content is hidden

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

132 files changed

+5590
-409
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

docs/reference/elasticsearch/jvm-settings.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,18 @@ To override the default heap size, set the minimum and maximum heap size setting
8787

8888
The heap size should be based on the available RAM:
8989

90-
* Set `Xms` and `Xmx` to no more than 50% of your total memory. {{es}} requires memory for purposes other than the JVM heap. For example, {{es}} uses off-heap buffers for efficient network communication and relies on the operating system’s filesystem cache for efficient access to files. The JVM itself also requires some memory. It’s normal for {{es}} to use more memory than the limit configured with the `Xmx` setting.
90+
* Set `Xms` and `Xmx` to no more than 50% of the total memory available to each {{es}} node. {{es}} requires memory for purposes other than the JVM heap. For example, {{es}} uses off-heap buffers for efficient network communication and relies on the operating system’s filesystem cache for efficient access to files. The JVM itself also requires some memory. It’s normal for {{es}} to use more memory than the limit configured with the `Xmx` setting.
9191

9292
::::{note}
93-
When running in a container, such as [Docker](docs-content://deploy-manage/deploy/self-managed/install-elasticsearch-with-docker.md), total memory is defined as the amount of memory visible to the container, not the total system memory on the host.
93+
When running in a container, such as [Docker](docs-content://deploy-manage/deploy/self-managed/install-elasticsearch-with-docker.md), the total memory available to {{es}} means the amount of memory available within the container, not the total system memory on the host.
94+
95+
If you are running multiple {{es}} nodes on the same host, or in the same container, the total of all the nodes' heap sizes should not exceed 50% of the total available memory.
96+
97+
Account for the memory usage of other processes running on the same host, or in the same container, when computing the total memory available to {{es}}.
98+
99+
The 50% guideline is intended as a safe upper bound on the heap size. You may find that heap sizes smaller than this maximum offer better performance, for instance by allowing your operating system to use a larger filesystem cache.
100+
101+
If you set the heap size too large, {{es}} may perform poorly and nodes may be terminated by the operating system.
94102
::::
95103

96104
* Set `Xms` and `Xmx` to no more than the threshold for compressed ordinary object pointers (oops). The exact threshold varies but 26GB is safe on most systems and can be as large as 30GB on some systems. To verify you are under the threshold, check the {{es}} log for an entry like this:

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,

modules/kibana/src/main/java/org/elasticsearch/kibana/KibanaPlugin.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ public class KibanaPlugin extends Plugin implements SystemIndexPlugin {
3838
.setAllowedElasticProductOrigins(KIBANA_PRODUCT_ORIGIN)
3939
.build();
4040

41+
public static final SystemIndexDescriptor ONECHAT_INDEX_DESCRIPTOR = SystemIndexDescriptor.builder()
42+
.setIndexPattern(".chat-*")
43+
.setDescription("Onechat system index")
44+
.setType(Type.EXTERNAL_UNMANAGED)
45+
.setAllowedElasticProductOrigins(KIBANA_PRODUCT_ORIGIN)
46+
.build();
47+
4148
public static final SystemIndexDescriptor APM_AGENT_CONFIG_INDEX_DESCRIPTOR = SystemIndexDescriptor.builder()
4249
.setIndexPattern(".apm-agent-configuration*")
4350
.setDescription("system index for APM agent configuration")
@@ -57,6 +64,7 @@ public Collection<SystemIndexDescriptor> getSystemIndexDescriptors(Settings sett
5764
return List.of(
5865
KIBANA_INDEX_DESCRIPTOR,
5966
REPORTING_INDEX_DESCRIPTOR,
67+
ONECHAT_INDEX_DESCRIPTOR,
6068
APM_AGENT_CONFIG_INDEX_DESCRIPTOR,
6169
APM_CUSTOM_LINK_INDEX_DESCRIPTOR
6270
);

modules/kibana/src/test/java/org/elasticsearch/kibana/KibanaPluginTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class KibanaPluginTests extends ESTestCase {
2020
public void testKibanaIndexNames() {
2121
assertThat(
2222
new KibanaPlugin().getSystemIndexDescriptors(Settings.EMPTY).stream().map(SystemIndexDescriptor::getIndexPattern).toList(),
23-
contains(".kibana_*", ".reporting-*", ".apm-agent-configuration*", ".apm-custom-link*")
23+
contains(".kibana_*", ".reporting-*", ".chat-*", ".apm-agent-configuration*", ".apm-custom-link*")
2424
);
2525
}
2626
}

modules/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3BlobContainer.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,13 @@ void run(BytesReference expected, BytesReference updated, ActionListener<Optiona
830830

831831
.<Void>newForked(l -> ensureOtherUploadsComplete(uploadId, uploadIndex, currentUploads, l))
832832

833-
// Step 4: Read the current register value.
833+
// Step 4: Read the current register value. Note that getRegister only has read-after-write semantics but that's ok here as:
834+
// - all earlier uploads are now complete,
835+
// - our upload is not completing yet, and
836+
// - later uploads can only be completing if they have already aborted ours.
837+
// Thus if our operation ultimately succeeds then there cannot have been any concurrent writes in flight, so this read
838+
// cannot have observed a stale value, whereas if our operation ultimately fails then it doesn't matter what this read
839+
// observes.
834840

835841
.<OptionalBytesReference>andThen(l -> getRegister(purpose, rawKey, l))
836842

muted-tests.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,24 @@ tests:
475475
- class: org.elasticsearch.xpack.search.CrossClusterAsyncSearchIT
476476
method: testCancellationViaTimeoutWithAllowPartialResultsSetToFalse
477477
issue: https://github.com/elastic/elasticsearch/issues/131248
478-
- class: org.elasticsearch.xpack.downsample.DownsampleIT
479-
method: testAggMetricInEsqlTSAfterDownsampling
480-
issue: https://github.com/elastic/elasticsearch/issues/131500
478+
- class: org.elasticsearch.xpack.esql.qa.multi_node.GenerativeIT
479+
method: test
480+
issue: https://github.com/elastic/elasticsearch/issues/131508
481+
- class: org.elasticsearch.action.admin.cluster.node.tasks.CancellableTasksIT
482+
method: testRemoveBanParentsOnDisconnect
483+
issue: https://github.com/elastic/elasticsearch/issues/131562
484+
- class: org.elasticsearch.xpack.esql.action.CrossClusterQueryWithPartialResultsIT
485+
method: testPartialResults
486+
issue: https://github.com/elastic/elasticsearch/issues/131481
487+
- class: org.elasticsearch.packaging.test.DockerTests
488+
method: test010Install
489+
issue: https://github.com/elastic/elasticsearch/issues/131376
490+
- class: org.elasticsearch.test.rest.yaml.RcsCcsCommonYamlTestSuiteIT
491+
method: test {p0=search/40_indices_boost/Indices boost with alias}
492+
issue: https://github.com/elastic/elasticsearch/issues/131598
493+
- class: org.elasticsearch.compute.lucene.read.SortedSetOrdinalsBuilderTests
494+
method: testReader
495+
issue: https://github.com/elastic/elasticsearch/issues/131573
481496

482497
# Examples:
483498
#

0 commit comments

Comments
 (0)