Commit graph

15224 commits

Author SHA1 Message Date
István Zoltán Szabó
17ed5bc2a4
[DOCS] Amends important note on delayed data detection. (#106610) (#106614) 2024-03-21 12:04:33 -04:00
István Zoltán Szabó
d7b3accfa0
[DOCS] Adjusts PUT inference API docs examples (#106604) (#106606)
Co-authored-by: David Kyle <david.kyle@elastic.co>
2024-03-21 10:17:58 -04:00
István Zoltán Szabó
8b50e93124
[DOCS] Adds note to inference tutorial about similarity (#106567) (#106605) 2024-03-21 09:55:11 -04:00
István Zoltán Szabó
893e85b3e2
[DOCS] Adds disclaimer to semantic search tutorials (#106590) (#106594) 2024-03-21 06:54:10 -04:00
Przemysław Witek
c212abddeb
[Transform] Fix _reset API when called with force=true on a failed transform (#106574) (#106589) 2024-03-21 06:42:13 -04:00
David Turner
80634b494f
Release TranslogSnapshot buffer after iteration (#106398) (#106556)
Closes #106390
2024-03-20 11:41:54 -04:00
David Turner
21f1123113
Force execution of SearchService.Reaper (#106544) (#106547)
If the search threadpool fills up then we may reject execution of
`SearchService.Reaper` which means it stops retrying. We must instead
force its execution so that it keeps on going.

With #106542, closes #106543
2024-03-20 10:31:05 -04:00
István Zoltán Szabó
6d8da67bf1
[DOCS] Changes Cohere inference examples in tutorial and API docs (#106524) (#106551) 2024-03-20 10:29:58 -04:00
Navarone Feekery
d40ff36a20
[Connectors API] Add missing _api_key_id docs (#106469) (#106539) 2024-03-20 07:28:09 -04:00
Ioana Tagirta
a892165bd7
Add links to text_expansion in ELSER tutorial (#106490) (#106530)
* Add links to text_expansion in ELSER tutorial

* Apply suggestions from code review



---------

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
2024-03-20 05:24:49 -04:00
Liam Thompson
c7b41ac3ea
[8.13] (DOC+) Version API page for ES API Base URL (#105845) (#106459)
* (DOC+) Version API page for ES API Base URL (#105845)

* (DOC+) Version API page for ES API Base URL

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

* Fix URL syntax, copy nit

---------

Co-authored-by: Stef Nestor <26751266+stefnestor@users.noreply.github.com>
2024-03-19 05:58:04 -04:00
Nhat Nguyen
aa2e022b31
Resume driver when failing to fetch pages (#106392) (#106436)
I investigated a heap attack test failure and found that an ESQL request
was stuck. This occurred in the following:

1. The ExchangeSource on the coordinator was blocked on reading because
there were no available pages.

2. Meanwhile, the ExchangeSink on the data node had pages ready for
fetching.

3. When an exchange request tried to fetch pages, it failed due to a
CircuitBreakingException. Despite the failure, no cancellation was
triggered because the status of the ExchangeSource on the coordinator
remained unchanged.  To fix this issue, this PR introduces two changes:

Resumes the ExchangeSourceOperator and Driver on the coordinator,
eventually allowing the coordinator to trigger cancellation of the
request when failing to fetch pages.

Ensures that an exchange sink on the data nodes fails when a data node
request is cancelled. This callback was inadvertently omitted when
introducing the node-level reduction in Run empty reduction node level
on data nodes #106204.

I plan to spend some time to harden the exchange and compute service.

Closes #106262
2024-03-18 12:04:22 -07:00
Liam Thompson
35d6d1ebf4
[DOCS] Add contextual info about connectors to API docs (#106420) (#106421)
* [DOCS] Add contextual info about connectors to API docs

* Grammar nit
2024-03-18 11:31:18 -04:00
David Turner
887164dbcc Clarify docs about the flood-stage index block (#106391)
The docs here are a little inaccurate, and link to several individual
settings (incorrectly in some cases) in a paragraph that's pretty hard
to read. This commit fixes the inaccuracies and replaces the links to
individual settings with one to all the docs about the disk-based shard
allocator.
2024-03-18 08:07:54 +00:00
Athena Brown
97d4a86427
Adjust interception of requests for specific shard IDs (#101656) (#106376)
Some index requests target shard IDs specifically, which may not match the indices that the request targets as given by `IndicesRequest#indices()`, which requires a different interception strategy in order to make sure those requests are handled correctly in all cases and that any malformed messages are caught early to aid in troubleshooting.

This PR adds and interface allowing requests to report the shard IDs they target as well as the index names, and adjusts the interception of those requests as appropriate to handle those shard IDs in the cases where they are relevant.
2024-03-14 19:52:33 -04:00
Craig Taverner
45576fc0b4
ESQL: Fix error on sorting unsortable geo_point and cartesian_point (#106351) (#106379)
* Fix error on sorting unsortable geo_point and cartesian_point

Without a LIMIT the correct error worked, but with LIMIT it did not. This fix mimics the same error with LIMIT and adds tests for all three scenarios:
* Without limit
* With Limit
* From row with limit

* Update docs/changelog/106351.yaml

* Add tests for geo_shape and cartesian_shape also

* Updated changelog

* Separate point and shape error messages

* Move error to later so we get it only if geo field is actually used in sort.

* Implemented planner check in Verifier instead

This is a much better solution.

* Revert previous solution

* Also check non-field attributes so the same error is provided for ROW

* Changed "can't" to "cannot"

* Add unit tests for verifier error

* Added sort limitations to documentation

* Added unit tests for spatial fields in VerifierTests

* Don't run the new yaml tests on older versions

These tests mostly test the validation errors which were changed only in 8.14.0, so should not be tested in earlier versions.

* Simplify check based on code review, skip duplicate forEachDown
2024-03-14 19:08:05 -04:00
Liam Thompson
24db6c46a8
[DOCS][ESQL] Add link to getting started notebook (#106345) (#106369) 2024-03-14 12:54:55 -04:00
Liam Thompson
0b9671d8ca
[DOCS] Remove CCS limitation for 8.13+ (#106343) (#106368) 2024-03-14 12:10:34 -04:00
Lisa Cawley
fd01b8a12e
[DOCS] Update transform health rule details (#105719) (#106242) 2024-03-14 07:57:11 -07:00
Kathleen DeRusso
b835827311
Fix Search Applications bug where deleting an alias before deleting an application intermittently caused errors (#106329) (#106354)
* Update delete object to never fail if alias does not exist

* Update docs/changelog/106329.yaml

* Update changelog

* Fix area in changelog
2024-03-14 09:18:16 -04:00
Matteo Piergiovanni
56469e9507
[8.13] Field caps performance pt2 (#105941) (#106341) 2024-03-14 11:39:06 +01:00
Youhei Sakurai
5198e7f041
Handling exceptions on watcher reload (#105442) (#106210) 2024-03-13 15:46:24 -05:00
Martijn van Groningen
0d1e7a4a0e
Small time series agg improvement (#106288) (#106307)
After tsid hashing was introduced (#98023), the time series aggregator generates the tsid (from all dimension fields) instead of using the value from the _tsid field directly. This generation of the tsid happens for every time serie, parent bucket and segment combination.

This changes alters that by only generating the tsid once per time serie and segment. This is done by just locally recording the current tsid.
2024-03-13 13:02:58 -04:00
Aurélien FOUCRET
86fd9b6a31
Fix typo in the LTR guide. (#106276) (#106281) 2024-03-13 04:25:59 -04:00
Kathleen DeRusso
85ed7efb57
Fix typo in text_expansion example (#106265) (#106267) 2024-03-12 15:40:23 -04:00
István Zoltán Szabó
0029b2e472
[DOCS] Changes element_type in index mapping for the infrence tutorial. (#106233) (#106237) 2024-03-12 10:06:08 -04:00
Nicole Albee
ca8e9afe52
Clarify filters can be used while creating a normalizer. (#103826) (#106235) 2024-03-12 09:43:20 -04:00
David Turner
e2c9767c93
Expand docs on number value conventions (#106198) (#106201)
Today we do not say explicitly that `integer` response fields are really
arbitrarily large JSON integers and may not fit into a Java `int`. This
commit expands the docs to add this information.
2024-03-11 15:55:47 -04:00
Aurélien FOUCRET
11de303556
First version of the LTR guide. (#105956) (#106195) 2024-03-11 12:47:50 -04:00
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
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
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
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
Jake Landis
ee5e5bf132
OIDC doc - mention client secret needs a restart (#106088) (#106091) 2024-03-07 16:20:10 -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
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
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
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
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
Jedr Blaszyk
a91f0020b2
[Connector API] Fix default ordering in SyncJob list endpoint (#105945) (#106009) 2024-03-06 04:26:57 -05:00
Benjamin Trent
f53e027a6a
Add note about optional times and epochs (#105786) (#105973) 2024-03-05 09:06:36 -05:00
Benjamin Trent
bc57a519b7
Manually backport changes from #105578 (#105913) 2024-03-05 06:33:50 -05:00