Commit graph

86123 commits

Author SHA1 Message Date
Nik Everett
492b036326
NOOP some transport versions (#127037)
We accidentally released the `9_051_0_00` and `9_052_0_00` transport
versions to serverless without their backing code. We can't take that
back. It's live. You can't unbake the cake.

That version of Elasticsearch will claim to be `9_052_0_00` but actually
speak `9_050_0_00` code. To make main compatible with that version we're
bumping all transport versions in main *past* those numbers.

This is a forbidden action. You may not do this. I may not do this. It
is not safe. But it is the only way to make the world whole again.

In all seriousness, everything will be fine. It's against the rules but
sometimes you have to break rules to put things right. We believe some
serverless dev environments may break which is sad but it's worth it to
bring everything back to sane land.
2025-04-18 01:45:08 +02:00
Nhat Nguyen
9d5df193ca
Add last_over_time (#126650)
This PR introduces a time-series aggregation function that collects the 
last value of each time series within each grouping.

For example:

TS index 
| STATS sum(last_over_time(memory_usage)) BY cluster, bucket(@timestamp, 1minute)
2025-04-17 16:13:58 -07:00
elasticsearchmachine
aebb1de41e Mute org.elasticsearch.xpack.test.rest.XPackRestIT test {p0=esql/10_basic/basic with documents_found} #127039 2025-04-18 07:54:52 +10:00
Oleksandr Kolomiiets
62c0629da6
Add new-style block loader tests for constant_keyword, version, wildcard (#126968) 2025-04-17 13:22:09 -07:00
Brian Seeders
af6dac5c05
Revert "Forward port release notes for v8.17.5 (#127024)"
This reverts commit 66b504a881.
2025-04-17 16:16:21 -04:00
elasticsearchmachine
66b504a881
Forward port release notes for v8.17.5 (#127024) 2025-04-17 16:15:42 -04:00
Ryan Ernst
42dc870ece
Ensure logs dir exists before using as working dir (#126566)
With the change to using the logs dir as the working dir of the
Elasticsearch process we need to ensure the logs dir exists within the
CLI instead of later during startup.

relates #124966
2025-04-17 12:59:47 -07:00
David Turner
7e62862eab
Clarify queues in thread pool settings (#127027)
The docs about the queue in a `fixed` pool are a little awkwardly
worded, and there is no mention of the queue in a `scaling` pool at all.
This commit cleans this area up.
2025-04-17 19:58:02 +01:00
elasticsearchmachine
633539108f Mute org.elasticsearch.repositories.blobstore.testkit.analyze.RepositoryAnalysisFailureIT testFailsOnReadError #127029 2025-04-18 04:04:19 +10:00
Armin Braun
5a3c9e7dc1
Fix AsyncSearchActionIT tests (#127010)
Missed a spot here when moving this to delayed deserialization, we can leak pending batch results here on exceptions.

closes #126994
closes #126995
closes #126975
closes #126999
closes #127001
closes #126974
closes #127008
2025-04-17 19:31:58 +02:00
Liam Thompson
b6c9b9b54d
[DOCS] Update URLs for ESQL Kibana generated docs (#127011) 2025-04-17 18:25:24 +02:00
Samiul Monir
afb83b7551
Updating text_similarity_reranker documentation (#127004)
* updating documentation to remove duplicate and redundant wording from 9.x

* Update links to rerank model landing page

---------

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
2025-04-17 11:54:19 -04:00
Luca Cavanna
f274ab7402
Remove empty results before merging (#126770)
We addressed the empty top docs issue with #126385 specifically for scenarios where
empty top docs don't go through the wire. Yet they may be serialized from data node
back to the coord node, in which case they will no longer be equal to Lucene#EMPTY_TOP_DOCS.

This commit expands the existing filtering of empty top docs to include also those that
did go through serialization.

Closes #126742
2025-04-17 17:36:20 +02:00
elasticsearchmachine
a4b1692148 Mute org.elasticsearch.packaging.test.DockerTests test024InstallPluginFromArchiveUsingConfigFile #126936 2025-04-18 01:23:57 +10:00
elasticsearchmachine
cd138b02f2 Mute org.elasticsearch.xpack.search.AsyncSearchActionIT testDeleteCleanupIndex #127008 2025-04-18 00:56:59 +10:00
Jeremy Dahlgren
512e86813c
Test for cancelled task in TransportSnapshotsStatusAction.buildResponse() (#126740)
Testing for cancellation in buildResponse() avoids a lot of
unnecessary processing in scenarios with many shards.

Closes ES-10981.
2025-04-17 10:38:41 -04:00
Niels Bauman
16070a342f
Fix tests in TimeSeriesDataStreamsIT (#126851)
These tests had the potential to fail when subsequent requests would hit
different nodes with different versions of the cluster state.

Only one of these tests failed already, but we fix the other ones
proactively to avoid future failures.

Fixes #126746
2025-04-17 16:35:43 +02:00
Armin Braun
0d01f88f95
Release InboundMessage and request instances earlier (#126998)
Follow-up to #126138.
We can now release requst bytes directly after deserialization.
Also, request instances need not go through a ref-counting cycle when forking,
removing some contention from transport threads.
2025-04-17 16:32:09 +02:00
elasticsearchmachine
0f0f0ef596 Mute org.elasticsearch.xpack.search.AsyncSearchActionIT testRestartAfterCompletion #126974 2025-04-17 23:52:50 +10:00
elasticsearchmachine
f94b41667e Mute org.elasticsearch.xpack.search.AsyncSearchActionIT testUpdateStoreKeepAlive #127001 2025-04-17 23:51:15 +10:00
elasticsearchmachine
ff07ce8d60 Mute org.elasticsearch.xpack.search.AsyncSearchActionIT testCleanupOnFailure #126999 2025-04-17 23:32:18 +10:00
elasticsearchmachine
721fd140d0 Mute org.elasticsearch.xpack.search.AsyncSearchActionIT testRemoveAsyncIndex #126975 2025-04-17 23:15:19 +10:00
elasticsearchmachine
316ec175d9 Mute org.elasticsearch.xpack.search.AsyncSearchActionIT testMaxResponseSize #126995 2025-04-17 23:12:33 +10:00
elasticsearchmachine
2de225a048 Mute org.elasticsearch.xpack.search.AsyncSearchActionIT testDeleteCancelRunningTask #126994 2025-04-17 23:12:28 +10:00
Armin Braun
149ff93789
Remove reference counting from InboundMessage and make it Releasable (#126138)
There is no actual need to reference-count InboundMessage instances. Their lifecycle is completely linear and we can simplify it away. This saves a little work directly but more importantly, it enables more eager releasing of the underlying buffers in a follow-up.
---------

Co-authored-by: David Turner <david.turner@elastic.co>
2025-04-17 15:10:08 +02:00
Kathleen DeRusso
a72883e8e3
Default new semantic_text fields to use BBQ when models are compatible (#126629)
* Default new semantic_text fields to use BBQ when models are compatible

* Update docs/changelog/126629.yaml

* Gate default BBQ by IndexVersion

* Cleanup from PR feedback

* PR feedback

* Fix test

* Fix test

* PR feedback

* Update test to test correct options

* Hack alert: Fix issue where mapper service was always being created with current index version
2025-04-17 08:25:10 -04:00
Martijn van Groningen
0d41e9a2a5
Tsdb doc values inline building jump table (#126499)
Build jump table (disi) while iterating over SortedNumericDocValues for encoding the values, instead of separately iterating over SortedNumericDocValues just to build the jump table.

In case when indexing sorting is active, this requires an additional merge sort. Follow up from #125403
2025-04-17 12:08:16 +02:00
Mariusz Jozala
4248c9908c Merge branch 'patch/serverless-fix' 2025-04-17 10:54:54 +02:00
Luigi Dell'Aquila
6b8c37e100
ES|QL: make telemetry more strict (#126940) 2025-04-17 10:46:15 +02:00
Martijn van Groningen
4b05fed0d9
Improve DocValuesConsumerUtil#compatibleWithOptimizedMerge(...) (#126894)
The compatibleWithOptimizedMerge() method doesn't the case when doc value fields don't exist in all segments. It is like that for smaller segments not all fields exist. The change addresses that by skipping such doc value producers instead of returning that a field can't be merged using the optimized method.
2025-04-17 09:24:04 +02:00
Nik Everett
814c8c5a6a
Remove unused empty file (#126969)
Not sure how I made it, but surprise.
2025-04-17 17:05:56 +10:00
Nick Tindall
d378185054
Fix GCS tests broken by idempotency token (#126972) 2025-04-17 04:42:32 +02:00
Nick Tindall
270ca0a80a
Add thread pool utilisation metric (#120363)
There are existing metrics for the active number of threads, but it seems tricky to go from those to a "utilisation" number because all the pools have different sizes.

This commit adds `es.thread_pool.{name}.threads.utilization.current` which will be published by all  `TaskExecutionTimeTrackingEsThreadPoolExecutor` thread pools (where `EsExecutors.TaskTrackingConfig#trackExecutionTime` is true).

The metric is a double gauge indicating what fraction (in [0.0, 1.0]) of the maximum possible execution time was utilised over the polling interval.

It's calculated as actualTaskExecutionTime / maximumTaskExecutionTime, so effectively a "mean" value. The metric interval is 60s so brief spikes won't be apparent in the measure, but the initial goal is to use it to detect hot-spotting so the 60s average will probably suffice.

Relates ES-10530
2025-04-17 11:49:30 +10:00
Tim Vernum
e53d3ff64b
Update docs to reflect removal of TLSv1.1 (#126892)
In ES9 and later, we do not enable TLSv1.1 by default,
even if the JDK supports it.

This updates the docs accordingly.

Relates: #121731
2025-04-17 10:15:29 +10:00
Julio
d19b525eb1
Temporarily bypass competitive iteration for filters aggregation (#12… (#126962)
* Temporarily bypass competitive iteration for filters aggregation (#126956)

* Bump versions after 9.0.0 release

* fix merge conflict

* Remove 8.16 from branches.json

* Bring version-bump related changes from main

* [bwc] Add bugfix3 project (#126880)

* Sync version bump changes from main again

---------

Co-authored-by: Benjamin Trent <ben.w.trent@gmail.com>
Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
Co-authored-by: elasticsearchmachine <58790826+elasticsearchmachine@users.noreply.github.com>
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2025-04-16 18:10:01 -06:00
Armin Braun
880aa52e27
Use DelayableWriteable with batched query execution (#126864)
We should use DelayableWriteable here as well just like we do with per-shard results.
The heap savings of making use of this tool are quite significant at times and without
using it we could actually regress in terms of heap use relative to non-batched execution
in corner cases of a low but larger than one number of shards per node.
2025-04-17 01:27:53 +02:00
Brian Seeders
f4fe57516e
Revert "Bump versions after 8.18.0 release"
This reverts commit 74e8946778.
2025-04-16 18:59:02 -04:00
elasticsearchmachine
1c9ff3a728 Mute org.elasticsearch.cli.keystore.AddStringKeyStoreCommandTests testStdinWithMultipleValues #126882 2025-04-17 08:53:07 +10:00
elasticsearchmachine
74e8946778 Bump versions after 8.18.0 release 2025-04-16 21:45:45 +00:00
Brian Seeders
ec7025c2fa
Revert "Bump versions after 8.18.0 release"
This reverts commit 9fe54808c4.
2025-04-16 17:29:37 -04:00
Benjamin Trent
94748dd1a6 Temporarily bypass competitive iteration for filters aggregation (#126956) 2025-04-16 15:16:25 -06:00
elasticsearchmachine
9fe54808c4 Bump versions after 8.18.0 release 2025-04-16 21:11:31 +00:00
Benjamin Trent
b1f766258b
Temporarily bypass competitive iteration for filters aggregation (#126956) 2025-04-16 23:08:17 +02:00
Samiul Monir
2e1101cf5e
Updating text_similarity_reranker documentation (#126175)
* Updating text_similarity_reranker documentation

* Updating docs to include urls

* remove extra THE from the text

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-04-16 17:05:30 -04:00
elasticsearchmachine
22adfeb9e1 Bump versions after 8.18.0 release 2025-04-16 20:43:10 +00:00
Parker Timmins
2b2c69a008
Fix reindex yaml test (#126942)
Reindex task may not have completed by time status is called, so remove assertion that relies on this. Following assertions are set in the action which starts task, so will be correct whether or not task has completed.
2025-04-16 15:28:05 -05:00
Brian Seeders
3d78c9428c
[bwc] Add bugfix3 project (#126880) 2025-04-16 16:27:03 -04:00
Ryan Ernst
a813949c34
Fix uniquify to handle multiple successive duplicates (#126889)
CollectionUtils.uniquify is based on C++ std::unique. However, C++
iterators are not quite the same as Java iterators. In particular,
advancing them only allows grabbing the value once. This commit reworks
uniquify to be based on list indices instead of iterators.

closes #126883
2025-04-16 21:00:27 +02:00
Jonathan Buttner
7a0f63c1a0
[ML] Refactor inference request executor to leverage scheduled execution (#126858)
* Using threadpool schedule and fixing tests

* Update docs/changelog/126858.yaml

* Clean up

* change log
2025-04-16 14:14:02 -04:00
Jonathan Buttner
e42c118ec6
[ML] Adding missing onFailure call for Inference API start model request (#126930)
* Adding missing onFailure call

* Update docs/changelog/126930.yaml
2025-04-16 14:07:13 -04:00