Commit graph

80733 commits

Author SHA1 Message Date
Brian Seeders
3a298fc723
[CI] Remove Windows 2016 testing (#121941) (#121958)
(cherry picked from commit b952809838)
2025-02-06 16:39:18 -05:00
Mark Vieira
a87fb8d386
Upgrade mockito (#121849) (#121932) 2025-02-06 12:23:57 -08:00
Mark Tozzi
cf36d97a32
Aggregations cancellation after collection (#120944) (#121936)
This PR addresses issues around aggregations cancellation, mentioned in https://github.com/elastic/elasticsearch/issues/108701 and other places. In brief, during aggregations collection time, we respect cancellation via the mechanisms in the searcher to poison cancelled queries. But once the aggregation finishes collection, there is no further need to interact with the searcher, so we cannot rely on that for cancellation checking. In particular, deeply nested aggregations can spend a long time constructing the results tree.

Checking for cancellation is a trade off, as the check itself is somewhat expensive (it involves a volatile read), so we want to balance checking often enough that cancelled queries aren't taking up resources for a long time, but not so frequently that it slows down most aggregation queries. Our first attempt to this is to check once when we go to build sub-aggregations, as the worst cases for this that we've seen involve needing to build deep sub-aggregation trees. Checking at sub-aggregation construction time also provides a conveniently centralized method call to add the check to.

---------



 Conflicts:
	server/src/main/java/org/elasticsearch/search/aggregations/bucket/BucketsAggregator.java
	test/framework/src/main/java/org/elasticsearch/search/aggregations/AggregatorTestCase.java

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
2025-02-07 06:51:21 +11:00
Andrei Stefan
bb77d4979e
ESQL: use field_caps native nested fields filtering (#121918)
* [8.x] ESQL: use field_caps native nested fields filtering (#117201) (#117375) (#121645)

* Just filter the nested fields natively with field_caps support

(cherry picked from commit 73381dbeb1)

* Add import
2025-02-06 19:39:53 +02:00
Mark Vieira
2f9f364ae2
Fix thirdPartyAudit task when running on Java 24 (#121712) (#121840)
We need to explicitly add the incubating vector API module to the third
party audit task on Java 24.

(cherry picked from commit 0c667ecd2a)

# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ThirdPartyAuditTask.java
2025-02-06 07:04:46 -08:00
Mark Vieira
0b865d477e
Don't attempt to install modules into test cluster more than once (#121833) (#121863)
(cherry picked from commit 56cac1bfe9)
2025-02-06 11:56:51 +11:00
Oleksandr Kolomiiets
28635f09d8
[8.16] Fix synthetic source issue with deeply nested ignored source fields (#121715) (#121790)
* Fix synthetic source issue with deeply nested ignored source fields (#121715)

* Fix synthetic source issue with deeply nested ignored source fields

* Update docs/changelog/121715.yaml

* fix tests
2025-02-06 07:13:24 +11:00
Christoph Büscher
a57a79269b
[8.16] Fix rare failures in YAML xContent roundtrip tests (#121515) (#121684)
Under very unfortunate conditions tests that check xContent objects
roundtrip parsing  (like i.e. SearchHitsTests#testFromXContent)
can fail when we happen to randomly pick YAML xContent type and create
random (realistic)Unicode character sequences that may contain the
character U+0085 (133) from the Latin1 code page. That specific character
doesn't get parsed back to its original form for YAML xContent, which can 
lead to rare but hard to diagnose test failures.

This change adds logic to AbstractXContentTestCase#test() which lies at
the core of most of our  xContent roundtrip tests that disallows test
instances containing that particular character  when using YAML xContent
type.

Closes #97716
2025-02-05 16:12:17 +01:00
Joe Gallo
24c39085ca
Update geolocation database documentation (#121472) (#121671) 2025-02-05 02:22:49 +11:00
Carson Ip
0396027494
Add missing apm-server tail sampling monitoring metrics to stack monitoring mapping (#121543) (#121579)
Add missing apm-server tail sampling monitoring metrics to stack monitoring mapping. They were missed in #110568.

(cherry picked from commit f3f5135f06)

# Conflicts:
#	x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/MonitoringTemplateRegistry.java
2025-02-04 22:35:16 +11:00
Luigi Dell'Aquila
ad192c5456
[8.16] Fix docs.testFilterToday JDBC test (#121504) (#121635)
* Unmute

* Fix docs.testFilterToday JDBC test (#121504)
2025-02-04 19:46:46 +11:00
elasticsearchmachine
2142631e72 Mute org.elasticsearch.xpack.sql.qa.single_node.JdbcDocCsvSpecIT test {docs.testFilterToday} #121474 2025-02-04 16:56:37 +11:00
Nhat Nguyen
49eb1f8f24
Fix ClusterRequestTests (#121570) (#121618)
The upper bound of randomVersionBetween is inclusive; therefore, for
testing the fallback version of the request, we need to use the version
preceding 8.16.0 rather than 8.16.0 itself.

Closes #117937
2025-02-03 20:21:37 -08:00
Simon Cooper
9fa215a68f
[8.16] Update transport and index version id numbers to S_PP (#121380) (#121523)
Backport #121380 to 8.16
2025-02-03 13:56:48 +00:00
elasticsearchmachine
9be30eaff7 Mute org.elasticsearch.gradle.internal.InternalDistributionBwcSetupPluginFuncTest builds distribution from branches via archives extractedAssemble [bwcDistVersion: 8.2.1, bwcProject: bugfix, expectedAssembleTaskName: extractedAssemble, #2] #119871 2025-02-02 18:23:31 +11:00
Dimitris Rempapis
e03e7f31a0
unmute test (#121391)
unmute tests in SearchWithMinCompatibleSearchNodeIT
2025-01-31 16:24:58 +02:00
David Turner
12a39baef2
Cheaper snapshot-related toString() impls (#121283) (#121308)
If the `MasterService` needs to log a create-snapshot task description
then it will call `CreateSnapshotTask#toString`, which today calls
`RepositoryData#toString` which is not overridden so ends up calling
`RepositoryData#hashCode`. This can be extraordinarily expensive in a
large repository. Worse, if there's masses of create-snapshot tasks to
execute then it'll do this repeatedly, because each one only ends up
yielding a short hex string so we don't reach the description length
limit very easily.

With this commit we provide a more efficient implementation of
`CreateSnapshotTask#toString` and also override
`RepositoryData#toString` to protect against some other caller running
into the same issue.
2025-01-31 04:09:56 +11:00
elasticsearchmachine
f62f55029d Mute org.elasticsearch.xpack.apmdata.APMYamlTestSuiteIT test {yaml=/20_metrics_ingest/Test metrics-apm.app-* setting event.ingested via ingest pipeline} #118875 2025-01-31 01:27:14 +11:00
elasticsearchmachine
72eeaa7cd9 Add 9.0 to branches.json 2025-01-30 11:30:12 +11:00
elasticsearchmachine
b1039ccc12 Add 8.18 to branches.json 2025-01-30 11:00:08 +11:00
Liam Thompson
13441bc9b1
Update recovery.asciidoc (#114889) (#121218)
(cherry picked from commit d8874b6524)

Co-authored-by: Paulo <paulletilly@gmail.com>
2025-01-30 04:45:20 +11:00
Rene Groeschke
40b279c9ad
[8.16] [Gradle] Make rolling upgrade tests configuration cache compatible (#119577) (#120317)
* [Gradle] Make rolling upgrade tests configuration cache compatible (#119577)

With this, all rolling upgrade tests that involve a
`nextNodeToNextVersion` update are gradle configuration cache
compatible.

Simplify API around test cluster registry and cc compatible usage of
test cluster in TestClusterAware tasks.

(cherry picked from commit 7b6bdfa323)

# Conflicts:
#	qa/ccs-rolling-upgrade-remote-cluster/build.gradle
#	x-pack/plugin/sql/qa/jdbc/security/build.gradle
#	x-pack/plugin/sql/qa/server/security/build.gradle

* Fix backport merge issue
2025-01-30 04:07:37 +11:00
Rene Groeschke
119dfc37dd
Update Gradle wrapper to 8.12.1 (#120960) (#121202)
(cherry picked from commit 2b16515166)
2025-01-30 03:58:02 +11:00
Liam Thompson
7e736e0def
[DOCS] Update getting-started.asciidoc (#116151) (#121172)
Update `new_field` to `language` which is the actual new field added in dynamic mapping

Co-authored-by: Ekwinder <ekwindersaini@gmail.com>
2025-01-30 00:51:21 +11:00
Valeriy Khakhutskyy
1538e0d29e
Extend documentation note. (#121146) (#121160) 2025-01-29 23:30:26 +11:00
István Zoltán Szabó
a201f549d2
[8.16] [DOCS] Documents that deployment_id can be used as inference_id in certain cases. (#121055) (#121072)
* [DOCS] Resolves conflict.

* Apply suggestions from code review
2025-01-28 21:56:22 +01:00
Mark Vieira
de8664c5e5
Use links when possible when installing test cluster modules (#121067) (#121081)
When we install modules into test clusters we do a full copy instead of
links. This both eats up more IO and disk space unnecessarily.
2025-01-29 07:43:55 +11:00
István Zoltán Szabó
cfddc26697
[DOCS] Resolves conflict. (#121069) 2025-01-28 21:07:05 +01:00
George Wallace
e7be978b3a
Adjusted alias doc for clarity (#120437) (#121063)
Co-authored-by: Kofi B <kofi.bartlett@elastic.co>
Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
2025-01-29 03:51:38 +11:00
Panagiotis Bailis
c5a57fc690
[8.16] backporting fix for negative scores in text_similarity_ranker retriever (#121056) 2025-01-28 18:30:16 +02:00
Carlos Delgado
97c4bdca28
Fix incorrect use of "updateable" flag in synonyms documentation (#120866) (#121044)
Co-authored-by: Amine GANI <gani.amine@gmail.com>
Co-authored-by: Amine GANI <amine.gani@adelean.com>
2025-01-29 02:07:26 +11:00
Charlotte Hoblik
5d00b7e8cc
Fix typo in tutorial (#120928) (#121040) 2025-01-29 01:36:28 +11:00
Liam Thompson
80039d6d25
Update match-phrase-query.asciidoc (#118828) (#121035)
(cherry picked from commit 8e9cccba6a)

Co-authored-by: Damien RENIER <153135842+damien-renier-elastic@users.noreply.github.com>
2025-01-29 01:10:09 +11:00
Liam Thompson
abad04d97a
Update README.asciidoc (#96455) (#121027)
Co-authored-by: ARPIT SHARMA <93235104+ARPIT2128@users.noreply.github.com>
2025-01-28 15:01:01 +01:00
Rene Groeschke
b4c721286b
Breakup release tests in PR (#120692) (#120730)
* Breakup release tests in PR
* fix test release task dependencies

(cherry picked from commit 1484f783d8)

# Conflicts:
#	build.gradle
2025-01-28 14:27:35 +01:00
Pius Fung
e1c635b336
Add warning on scripted metric aggregation's intermediate state memory usage (#119379) (#121003) 2025-01-28 21:39:26 +11:00
Sean Story
46361e4d70
Clarify need to submit for authorization (#119460) (#121002) 2025-01-28 21:34:12 +11:00
Panagiotis Bailis
7b02cb221f
[8.16] backporting support for deprecated window_size param for rank rrf (#120935) 2025-01-28 12:12:46 +02:00
Maxim Kholod
7fbe99db8a
Update index-templates.asciidoc (#113461) (#120893)
Adding `security_solution-*-*` in list of index nae to avoid the pattern collisions.

(cherry picked from commit 0638d3977a)

Co-authored-by: Smriti <152067238+smriti0321@users.noreply.github.com>
2025-01-27 12:30:07 +01:00
Aurélien FOUCRET
12ea3b2f64
[8.16] LTR - Fix explain failure when index has multiple shards (#120717) (#120794)
* LTR - Fix explain failure when index has multiple shards  (#120717)

* Fix test failing in 8.x branch.
2025-01-24 23:21:43 +01:00
Aurélien FOUCRET
149fbf215f
LTR sometines throw NullPointerException: Cannot read field "approximation" because "top" is null (#120809) (#120827)
* Add check on the DisiPriorityQueue size.

* Update docs/changelog/120809.yaml

* Add a unit test.
2025-01-25 06:15:42 +11:00
Niels Bauman
8adafb01d7
[8.16] Improve memory aspects of enrich cache (#120256) (#120762)
* Improve memory aspects of enrich cache (#120256)

This commit reduces the occupied heap space of the enrich cache and
corrects inaccuracies in tracking the occupied heap space (for cache
size limitation purposes).

---------

Co-authored-by: Joe Gallo <joegallo@gmail.com>

* Fix compilation

---------

Co-authored-by: Joe Gallo <joegallo@gmail.com>
2025-01-24 16:18:14 +11:00
Liam Thompson
8f58b770c3
Removes outdated admonition (#120556) (#120705)
Resolves /security-docs/https://github.com/elastic/security-docs/issues/6430. Removes an outdated admonition.

(cherry picked from commit 63074d8e70)

Co-authored-by: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com>
2025-01-23 23:42:35 +11:00
Marci W
ce90795b2d
[DOCS] Count API: clarify ways to specify search query (#120564) (#120681)
* Clarify query methods; other sprucing

* Apply suggestions from review
2025-01-23 10:31:10 +11:00
Andrei Stefan
faeeb31822
Update search-across-clusters.asciidoc to reflect the true default value of skip_unavailable setting. (#120592) (#120634) 2025-01-23 01:36:51 +11:00
Felix Barnsteiner
ae7ae7b9e4
Map scope.name as a dimension (#120590) (#120615) 2025-01-23 00:00:12 +11:00
Jan Kuipers
eef2fb3ddb
[8.16] Test ML model server (#120270) (#120589)
* Test ML model server (#120270)

* Fix model downloading for very small models.

* Test MlModelServer

* Tiny ELSER

* unmute TextEmbeddingCrudIT and DefaultEndPointsIT

* update ELSER

* Improve MlModelServer

* tiny E5

* more logging

* improved E5 model

* tiny reranker

* scan for ports

* [CI] Auto commit changes from spotless

* Serve default models when optimized model is requested

* @ClassRule

* polish code

* Respect dynamic setting ML model repo

* fix metadata for optimized models

* improve logging

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>

* backport HttpHeaderParser

* Fix stripping platform

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
2025-01-22 23:00:56 +11:00
elasticsearchmachine
24ff286e59 Finalize release notes for v8.16.3 2025-01-22 22:30:08 +11:00
elasticsearchmachine
943c61e335 Prune changelogs after 8.16.3 release 2025-01-21 16:32:28 +00:00
elasticsearchmachine
917caf5763 Bump versions after 8.16.3 release 2025-01-21 16:31:52 +00:00