Commit graph

75439 commits

Author SHA1 Message Date
Stef Nestor
822a906920
(Doc+) Link Troubleshooting Discover from Mapping Explosion (#105991) (#106176)
👋 howdy team! [Mapping Explosion](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-explosion.html) is a common root issue of [Discover Slowness](https://www.elastic.co/blog/troubleshooting-guide-common-issues-kibana-discover-load), so cross-linking these Dev-reviewed pages.
2024-03-11 10:23:12 -04:00
Aurélien FOUCRET
ad161a1586
Ensure LTR models are cached when used as a rescorer. (#106161) 2024-03-11 14:59:50 +01:00
Ignacio Vera
5e14acae11
Disable parallel collection for terms aggregation with min_doc_count equals to 0 (#106156) (#106159) 2024-03-11 05:39:23 -04:00
Matteo Piergiovanni
4cc9f5cf64
Field-caps field has value lookup use map instead of looping array (#105770) (#106131)
(cherry picked from commit 35b2dbee2a)
2024-03-11 08:40:27 +01:00
Mark Vieira
7dcdba029f
AwaitsFix #105577 2024-03-08 11:45:52 -08:00
Luigi Dell'Aquila
724d119ef9
ES|QL: Disable optimizations that rely on Expression.nullable() (#105691) (#106132) 2024-03-08 12:30:22 -05:00
Stef Nestor
e1d91a2e5a
(DOC+) Node Stats fs.available reflects XFS quotas (#106085) (#106130)
Moving https://github.com/elastic/elasticsearch/pull/103472 here.

---

👋 howdy, team!

Could we include "XFS quotas" as an example for "depending on OS or process level restrictions" for this doc's searchability for users to better understand how to investigate this potential lever's impact?

TIA!
2024-03-08 10:40:46 -05:00
Jan Kuipers
4757b89750
During ML maintenance, reset jobs in the reset state without a corresponding task. (#106062) (#106125)
* During ML maintenance, reset jobs in the reset state without a corresponding task.

* Update docs/changelog/106062.yaml

* Fix race condition in MlDailyMaintenanceServiceTests

* Fix log level
2024-03-08 10:24:23 -05:00
Tim Vernum
321c4e1e6b
Respect --pass option in certutil csr mode (#106105) (#106120)
elasticsearch-certutil csr generates a private key and a certificate
signing request (CSR) file. It has always accepted the "--pass" command
line option, but ignore it and always generated an unencrypted private
key.

This commit fixes the utility so the --pass option is respected and the
private key is encrypted.
2024-03-08 08:20:03 -05:00
Mark Vieira
11bf603e89
Fix BWC versions 2024-03-07 13:43:28 -08:00
Nhat Nguyen
cdc59db4c4
Add docs for cross cluster search in ES|QL(#105934) (#106093)
This change adds a documentation for cross cluster search in ES|QL.

Relates #102954
Closes #105529
2024-03-07 16:36:26 -05:00
Nik Everett
71a6b5e7ca
ESQL: Fix order in block loading tests (#106087) (#106089)
The tests for loading `Block`s from scripted fields could fail randomly
when the `RandomIndexWriter` shuffles the documents. This disables
merging and adds the documents as a block so their order is consistent.

Closes #106044
2024-03-07 16:33:24 -05:00
Jake Landis
ee5e5bf132
OIDC doc - mention client secret needs a restart (#106088) (#106091) 2024-03-07 16:20:10 -05:00
Mark Vieira
7333d910f9
Split out Java matrix BWC tasks (#106078) (#106082) 2024-03-07 14:20:18 -05:00
Jedr Blaszyk
a4cb440b88
[Connector API] Fix serialisation of script params in connector index service (#106060) (#106072) 2024-03-07 09:08:22 -05:00
István Zoltán Szabó
1fa4cdae99
[DOCS] Documents scripted metric aggregation limitation in datafeeds (#106059) (#106070) 2024-03-07 08:28:00 -05:00
Aurélien FOUCRET
05fe2849b8
Fix ILM to DSL migration test for BA. (#106054) (#106064) 2024-03-07 13:58:51 +01:00
David Turner
426201671b Avoid computing currentInferenceProcessors on every cluster state (#106057)
This computation involves parsing all the pipeline metadata on the
cluster applier thread. It's pretty expensive if there are lots of
pipelines, and seems mostly unnecessary because it's only needed for a
validation check when creating new processors.
2024-03-07 12:41:33 +00:00
Jan Kuipers
5d830b08dc
Backport 106020 (#106058)
* Reset job if existing reset fails (#106020)

* Try again to reset a job if waiting for completion of an existing reset task fails.

* Update docs/changelog/106020.yaml

* Update 106020.yaml

* Update docs/changelog/106020.yaml

* Improve code

* Trigger rebuild
2024-03-07 07:32:46 -05:00
Mark Vieira
49629caced
Remove end of life Java versions from our testing matrix (#106042) (#106047)
These Java versions are EOL and no longer supported by Elasticsearch so
we can remove them from our CI testing. We only need to support LTS
versions >= 17 and the currently latest bundled JDK version.
2024-03-06 18:11:24 -05:00
Benjamin Trent
727b8c2e9b
Test mute for #106044 (#106046) 2024-03-06 17:13:37 -05:00
István Zoltán Szabó
34de5b27e7
[DOCS] Changes the cohere example to use a different model (#106037) (#106039) 2024-03-06 20:03:35 +01:00
Lee Hinman
9e2e6646ee
Use index block API in shrink/split/clone docs (#105997) (#106035)
This uses the dedicated index block API in the docs for the shrink, split, and clone APIs, rather than putting the block in as a setting directly. The specialized API will wait for ongoing operations to finish, which is better during indexing operations.

Resolves #105831
2024-03-06 12:07:21 -05:00
Benjamin Trent
64ee22fb87
Test mute for #105485 (#106028) 2024-03-06 11:21:22 -05:00
Benjamin Trent
f864083230
Fix bug when nested knn pre-filter might match nested docs (#105994) (#106021)
When using a pre-filter with nested kNN vectors, its treated like a
top-level filter. Meaning, it is applied over parent document fields. 

However, there are times when a query filter is applied that may or may
not match internal nested or non-nested docs. We failed to handle this
case correctly and users would receive an error.

closes: https://github.com/elastic/elasticsearch/issues/105901
2024-03-06 09:45:30 -05:00
Craig Taverner
a1525a81c3
For cartesian values we are even more lenient with extremely large values (#106014) (#106017) 2024-03-06 08:47:22 -05:00
Joe Gallo
2a482466c5
Docs typo fix (#105835) (#106001) 2024-03-06 07:44:49 -05:00
David Roberts
e571d609ea
[ML] Fix categorize_text aggregation nested under empty buckets (#105987) (#106012)
Previously the `categorize_text` aggregation could throw an
exception if nested as a sub-aggregation of another aggregation
that produced empty buckets at the end of its results. This
change avoids this possibility.

Fixes #105836
2024-03-06 05:54:55 -05:00
Andrei Dan
88f2881a1c
Make sure we test the listener is called (#105914) (#106010) 2024-03-06 05:16:51 -05:00
Jedr Blaszyk
a91f0020b2
[Connector API] Fix default ordering in SyncJob list endpoint (#105945) (#106009) 2024-03-06 04:26:57 -05:00
Jim Ferenczi
34fe40b5b0
Fix performance bug in SourceConfirmedTextQuery#matches (#105930) (#105983)
This change ensures that the matches implementation of the `SourceConfirmedTextQuery` only checks the current document instead of calling advance on the two phase iterator. The latter tries to find the first doc that matches the query instead of restricting the search to the current doc. This can lead to abnormally slow highlighting if the query is very restrictive and the highlight is done on a non-matching document.

Closes #103298
2024-03-06 08:48:28 +00:00
Nik Everett
86719a3a38
ESQL: fix single valued query tests (backport of #105986) (#105995)
* ESQL: fix single valued query tests (#105986)

In some cases the tests for our lucene query that makes sure a field is
single-valued was asserting incorrect things about the stats that come
from the query. That was failing the test from time to time. This fixes
the assertion in those cases.

Closes #105918

* ESQL: Reenable svq tests

We fixed the test failure in #105986 but this snuck in.

Closes #105952
2024-03-05 16:41:32 -05:00
Benjamin Trent
f53e027a6a
Add note about optional times and epochs (#105786) (#105973) 2024-03-05 09:06:36 -05:00
Benjamin Trent
41ec34a968
Test mute for #105952 (#105954)
test mute for https://github.com/elastic/elasticsearch/issues/105952
2024-03-05 07:57:46 -05:00
Benjamin Trent
bc57a519b7
Manually backport changes from #105578 (#105913) 2024-03-05 06:33:50 -05:00
Liam Thompson
abfc8e05be
Update geoip.asciidoc (#105908) (#105946)
The GeoIP endpoint does not use the xpack http client. The GeoIP downloader uses the JDKs builtin cacerts.

If customer is using custom https endpoint they need to provide the cacert in the jdk, whether our jdk bundled in or their jdk. Otherwise they will see something like
```
...PKiX path building failed: sun.security.provier.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target...
```

(cherry picked from commit 30828a5680)

Co-authored-by: Jennie Soria <predogma@users.noreply.github.com>
2024-03-05 12:12:28 +01:00
Niels Bauman
ff920b5fe4
Update health YAML REST test skip version (#105927) (#105929)
The health report API changed names in
https://github.com/elastic/elasticsearch/pull/92879, which causes this
YAML REST test to fail in versions < 8.7.0.

Closes #105923
2024-03-04 14:15:33 -05:00
Benjamin Trent
352850bba8
Test mute for #105918 (#105920)
mute for: https://github.com/elastic/elasticsearch/issues/105918
2024-03-04 11:44:33 -05:00
István Zoltán Szabó
bcafbe35d9
[DOCS] Adds cohere service example to the inference API tutorial (#105904) (#105915)
Co-authored-by: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com>
2024-03-04 17:02:42 +01:00
Liam Thompson
787fae97ac
Update README.asciidoc (#103597) (#105899)
* Update README.asciidoc

updating the readme with the latest blurb from PMM and a reference to RAG + a few links to search labs content.

* Tweak verbiage

---------

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
(cherry picked from commit 0b664dd4d4)

Co-authored-by: Serena Chou <serenachou@users.noreply.github.com>
2024-03-04 15:38:53 +01:00
Niels Bauman
111b22108d
Make Health API more resilient to multi-version clusters (#105789) (#105903)
First check whether the full cluster supports a specific indicator (feature) before we mark an indicator as "unknown" when (meta) data is missing from the cluster state.
2024-03-04 09:03:13 -05:00
Andrei Dan
2103adc40b
[ILM] Delete step deletes data stream with only one index (#105772) (#105897)
We seem to have a couple of checks to make sure we delete the data
stream when the last index reaches the delete step however, these checks
seem a bit contradictory.

Namely, the first check makes use if `Index` equality (UUID included)
and the second just checks the index name. So if a data stream with just
one index (the write index) is restored from snapshot (different UUID)
we would've failed the first index equality check and go through the
second check `dataStream.getWriteIndex().getName().equals(indexName)`
and fail the delete step (in a non-retryable way :( ) because we don't
want to delete the write index of a data stream (but we really do if the
data stream has only one index)

This PR makes 2 changes: 1. use the index name equality everywhere in
the step (we already looked up the index abstraction and the parent data
stream, so we know for sure the managed index is part of the data
stream) 2. do not throw exception when we got here via a write index
that is NOT the last index in the data stream but report the exception
so we keep retrying this step (i.e. this enables our users to simply
execute a manual rollover and the index is deleted by ILM eventually on
retry)
2024-03-04 06:54:19 -05:00
Nhat Nguyen
9a474ab282
ProjectOperator should not retain references to released blocks (#105848) (#105883)
The heap attack tests hit OOM where the circuit breaker was 
under-accounted. This was because the ProjectOperator retained
references to released blocks. Consequently, the released block couldn't
be GCed although we have decreased memory usage in the circuit breaker.

Relates #10563
2024-03-02 21:42:04 -05:00
Rene Groeschke
6f3adbe9a5
Update Gradle Enterprise plugin to 3.16.2 (#105871) (#105873) 2024-03-01 14:09:31 -05:00
Stef Nestor
1250a70416
(+DOC)(ILM) Shrink recovers to specific node (#105872) (#105876) 2024-03-01 13:59:10 -05:00
Henning Andersen
a3b5f6ffb0
Document 429 handling generically (#105700) (#105869)
We only had a few mentions of 429 handling, now documenting our expectation generically.

Co-authored-by: David Turner <david.turner@elastic.co>
Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
2024-03-01 11:40:59 -05:00
Liam Thompson
66ec625984
[DOCS] Fix bullet in get-desired-balance ref (#105819) (#105851)
Fix formatting
2024-02-29 03:52:14 -05:00
Liam Thompson
e2da524d9d
[Docs] Tiny format fix (#105820) (#105849) 2024-02-29 03:50:38 -05:00
Ryan Ernst
e9ca58589b
Standardize build distribution internals on os/architecture (#105842) (#105846)
The build handles platform specific code which may be for arm or x86.
Yet there are multiple ways to describe 64bit x86, and the build
converts between the two in several places. This commit consolidates on
the x64 nomenclature in most places, except where necessary (eg ML still
uses x86_64).

relates #105715
2024-02-28 17:08:42 -05:00
Alessandro Stoltenberg
eae8d7ebe0
email-reporting-attachment-docs: Correct auth and proxy fields. (#105730) (#105824) 2024-02-27 05:24:46 -05:00