Commit graph

75574 commits

Author SHA1 Message Date
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
Ryan Ernst
ce323cc495
Add reference docs links when jna fails to load (#105812) (#105818)
closes #105147
2024-02-26 16:58:29 -05:00
Benjamin Trent
9457972d3f
Muting test for issue #105794 (#105795)
related to: https://github.com/elastic/elasticsearch/issues/105794
2024-02-26 17:20:58 +01:00
Ryan Ernst
3695aa113e
Mute EsqlActionBrakerIT
see https://github.com/elastic/elasticsearch/issues/105543
2024-02-26 16:48:55 +01:00
Alexander Spies
a7ef700476
[8.13] ESQL: Fix wrong attribute shadowing in pushdown rules (#105650) (#105808)
* ESQL: Fix wrong attribute shadowing in pushdown rules (#105650)

Fix https://github.com/elastic/elasticsearch/issues/105434

Fixes accidental shadowing when pushing down `GROK`/`DISSECT`, `EVAL` or
`ENRICH` past a `SORT`.

Example for how this works:

```
...
| SORT x
| EVAL x = y
...

pushing this down just like that would be incorrect as x is used in the SORT, so we turn this essentially into

...
| EVAL $$x = x
| EVAL x = y
| SORT $$x
| DROP $$x
...
```

The same logic is applied to `GROK`/`DISSECT` and `ENRICH`.

This allows to re-enable the dependency checker (after fixing a small
bug in it when handling `ENRICH`).

* Make OptimizerRules compile again
2024-02-26 10:24:42 -05:00
David Kyle
e438c9bdc8
[ML] Rename the internal text embedding service to elasticsearch (#105803) 2024-02-25 07:16:43 -05:00
Andrei Stefan
30e7aa4796
ESQL: push down "[text_field] is not null" and "[text_field] is null"(#105593) (#105800)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-02-25 03:34:17 -05:00
Andrei Dan
8759b31f4b
[TEST] Issue another cluster state change to make sure ILM notices an index is assigned (#105725) (#105793)
ILM transitions to `wait-for-index-color` (a step that needs a cluster
state changed event to evaluate against) but misses the cluster state
event that notifies that `partial-index` is now `GREEN`. And then the
cluster is quiet and no more state changes occur and we timeout. Note
that the test is unblocked by the teardown of the IT that triggers some
cluster state changes.

This fixes the test by issueing some empty `reroute` request to cause
some cluster state  traffic in the cluster and ILM notices an index is
assigned.

Note that a production cluster is busy and ILM would eventually notice
the new state and make progress.

```
2024-02-22T06:33:01,388][INFO ][o.e.x.i.IndexLifecycleTransition] [node_t0] moving
index [index] from [{"phase":"frozen","action":"searchable_snapshot","name":"mount-snapshot"}] to [{"phase":"froz
en","action":"searchable_snapshot","name":"wait-for-index-color"}] in policy [policy]
[2024-02-22T06:33:01,490][INFO ][o.e.c.r.a.AllocationService] [node_t0] current.health="GREEN"
message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started
[[partial-index][0]]])." previous.health="YELLOW" reason="shards started [[partial-index][0]]"
```

Fixes #102405
2024-02-23 13:18:31 -05:00
Brian Seeders
fe32c5bf9c
[ci] Attach correct build artifact link to build scan when multiple are uploaded (#105530) (#105784)
(cherry picked from commit e568f7038d)
2024-02-23 12:19:06 -05:00
Pat Whelan
c96523a140
[Transform] Retry destination index creation (#105759) (#105778)
For Unattended Transforms, if we fail to create the destination index on
the first run, we will retry the transformation iteration, but we will
not retry the destination index creation on that next iteration.

This change stops the Unattended Transform from progressing beyond the
0th checkpoint, so all retries will include the destination index
creation.

Fix #105683
Relate #104146
2024-02-23 10:11:58 -05:00
Liam Thompson
cac2943902
[Docs] [Remote Clusters] Note about certificates in ESS for Remote Cluster Security (#105771) (#105776)
* note about ess certificates

* Update docs/reference/modules/cluster/remote-clusters-api-key.asciidoc

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>

---------

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

Co-authored-by: florent-leborgne <florent.leborgne@elastic.co>
2024-02-23 15:52:55 +01:00
elasticsearchmachine
7d64878dad
Forward port release notes for v8.12.2 (#105756) 2024-02-22 13:28:58 -05:00
elasticsearchmachine
04ba8c8db2 Prune changelogs after 8.12.2 release 2024-02-22 17:42:57 +00:00
elasticsearchmachine
7133bbd188 Bump versions after 8.12.2 release 2024-02-22 17:42:19 +00:00
István Zoltán Szabó
6c72ceb6c9
[DOCS] Adds more detail on disk usage of kNN quantized vectors (#105724) (#105743)
Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
Co-authored-by: Benjamin Trent <ben.w.trent@gmail.com>
(cherry picked from commit 6073e748a3)
2024-02-22 17:45:06 +01:00
David Roberts
ba5ad57351
[ML] Unmute KDETests.testCdfAndSf (#105735) (#105741)
This test was supposed to be fixed by #102878, however,
the test was not unmuted in that PR.

Relates #102876
2024-02-22 10:08:33 -05:00