Commit graph

77572 commits

Author SHA1 Message Date
elasticsearchmachine
c1ed6a1ca3 [Automated] Update Lucene snapshot to 9.12.0-snapshot-c5ea94fbc6a 2024-05-30 06:13:19 +00:00
Chris Hegarty
f71aba1fdd
Use the SIMD optimized SQ vector scorer at search time (#109109)
This commit extends the custom SIMD optimized SQ vector scorer to include search time scoring.

When run on JDK22+ vector scoring with be done with the custom scorer. The implementation uses the JDK 22+ on-heap ALLOW_HEAP_ACCESS Linker.Option so that the native code can access the query vector directly.
2024-05-29 16:32:06 +01:00
elasticsearchmachine
b35239c952 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-29 10:01:31 +00:00
Artem Prigoda
67a8bd219c AwaitsFix: https://github.com/elastic/elasticsearch/issues/109154 2024-05-29 11:58:47 +02:00
Jedr Blaszyk
1044a0104f
[Connecor API] Add references to tutorial in docs (#109099) 2024-05-29 11:48:58 +02:00
Tim Brooks
b84ad26c9b
Use the unsafe future for read single region (#109139)
We need to use the unsafe future to block on the same thread pool
similar to read multi regions.
2024-05-29 10:56:43 +02:00
Jedr Blaszyk
d9e6f5452e
[Connector API] Fix bug with with wrong target index for access control sync (#109097) 2024-05-29 10:34:51 +02:00
Artem Prigoda
e622101ac9
Fix TasksIT#testGetTaskWaitForCompletionWithoutStoringResult (#108094)
It seems that the failure (the missed index) has always existed in the test scenario and it's supposed to be handled by TransportGetTaskAction.java. We catch IndexNotFoundException here and convert it to ResourceNotFoundException. Then we catch ResourceNotFoundException here and return a snapshot of a task as a response.

In the stack trace, getFinishedTaskFromIndex was called from getRunningTaskFromNode, not from waitedForCompletion due to a race between creating a get request and unblocking request which are sent asynchronously. I've changed the waitForCompletionTestCase test method to unblock the task only after the request started waiting for the task completion by registering a removal listener. By doing so, we make sure we test the "wait for completion" branch when task is running.

The part about the missed index seems to irrelevant, since waitedForCompletion is able to suppress the error and return a snapshot of running task which is not possible if getFinishedTaskFromIndex gets called directly from getRunningTaskFromNode.

Resolves #107823
2024-05-29 09:15:02 +02:00
David Turner
58cb500ba6
Fix trappy timeouts in enrich module (#109136)
Relates #107984
2024-05-29 08:14:28 +01:00
David Turner
0e03920560
Clean up licensing APIs (#109121)
Fixes trappy timeouts related to #107984 and also cleans up all the
indirection via unnecessary request builders.
2024-05-29 08:14:15 +01:00
Tim Grein
fc07f58be8
[Inference API] Use ModelConfigurations.SERVICE_SETTINGS as scope (#109072) 2024-05-29 08:43:55 +02:00
elasticsearchmachine
1608aec2ac [Automated] Update Lucene snapshot to 9.11.0-snapshot-1f02f961480 2024-05-29 06:11:06 +00:00
David Turner
f73fedc52a
Fix trappy timeouts in ILM (#109112)
Relates #107984
2024-05-28 21:40:00 +01:00
Mike Pellegrini
d880c76fad
Handle partial semantic_text updates submitted through the Update API (#108880)
Update TransportUpdateAction to remove stale inference results from _source when a semantic_text field with multiple source fields is partially updated through the Update API.
2024-05-28 16:14:08 -04:00
Jonathan Buttner
96075deff3
[ML] Refactoring http settings and adding stats endpoint (#108219)
* Refactoring http settings and adding comments

* Removing new line

* Adding stats endpoint

* Improving comment and adding tests

* Fixing typo in setting name

* Switching to TransportNodesAction

* Fixing test

* Trying to fix test

* Adding equals hashcode

* Trying to send to all nodes

* Renaming to .diagnostics

* Removing unneeded variable

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-05-28 15:15:26 -04:00
Jake Landis
7504fed0b3
remote_cluster role documentation and expose to built in privs API (#108840)
This commit introduces the documentation for remote_clusters which is used to help
 express the monitor_enrich privilege needed to use the ENRICH keyword across clusters 
when using the API key based CCS security model.

This commit also adds "remote_clusters" to the built in privs API to for easier consumption
 in Kibana.
2024-05-28 13:51:21 -05:00
David Turner
4275c927f3
Fix trappy timeouts in SLM modules (#109122)
Relates #107984
2024-05-28 19:49:05 +01:00
David Turner
e931596bce
Fix trappy timeouts in watcher actions (#109098)
Relates #107984
2024-05-28 19:27:04 +01:00
Nik Everett
e4cb2c9f6d
ESQL: Add parsing for a LOOKUP command (#109040)
This command will serve as a sort of "inline" enrich. This commit itself
is mostly antlr generated code and paranoid tests that the new `LOOKUP`
keyword doesn't clash with any variables named `lookup`.

I've also marked our ANTLR generated files as `linguist-generated` which
causes them to be hidden by default in github's UI. You can still click
a button to see them if you like. See
https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
2024-05-28 13:32:30 -04:00
Nik Everett
a73f52500b
ESQL: Remove nested shims (#109105)
This removes the shim layers for `nested` that we inherited from QL.
ESQL doesn't support nested yet and when it does support nested its not
going to use the same tricks that QL uses.
2024-05-28 12:38:36 -04:00
Max Hniebergall
398c22c06c
Revert "[ML] Refactor the Embedding classes (#107516)" (#109114)
* Revert "[ML] Refactor the Embedding classes (#107516)"

This reverts commit 843579652c.
2024-05-28 11:59:19 -04:00
David Turner
efd450ee19
Clarify that red/yellow health must be addressed (#109090)
We don't expect a cluster to run with `yellow` health for an extended
period of time, but it's not clear from these docs that it's important
to bring the cluster back to `green` health ASAP. This commit clarifies
these docs.
2024-05-28 11:43:54 -04:00
Henning Andersen
0b7114f61c
NodeJoinTests fix for future complete assertion (#109107)
NodeJoinTests.testConcurrentJoining use their own threads, but the thread name
parsing done for validating that wait and complete of future is on different
executors would pick up more or less random fields. Now disregard these test
threads for that assertion.

Closes #109103
2024-05-28 17:22:39 +02:00
eyalkoren
92dc76ee22
Raw mapping merge fix for properties field (#108867) 2024-05-28 17:24:09 +03:00
ChrisHegarty
066b8a4d26 Remove awaits fix 2024-05-28 15:16:10 +01:00
David Turner
a80b7f62db
Fix trappy timeouts in AcknowledgedRequest.Plain (#109102)
Relates #107984
2024-05-28 10:13:25 -04:00
Tim Grein
6d864154ca
[Inference API] Add Google AI Studio completion docs (#109089) 2024-05-28 15:21:33 +02:00
David Turner
968f07353f AwaitsFix for #109103 2024-05-28 14:12:34 +01:00
Jedr Blaszyk
0e8847f7d3
[Connector API] Remove deprecated feature fields (#109074) 2024-05-28 14:54:07 +02:00
Simon Cooper
8329a094ab
Add permission to secure access to certain config files (#107827)
This adds a SecuredFileAccessPermission that Elasticsearch and plugins can use to limit access to certain files, so that only code that also has that same permission can access the specified files
2024-05-28 12:46:15 +01:00
Nik Everett
e5558ca2ab
ESQL: Prepare analyzer for LOOKUP (#109045)
This extracts two fairly uncontroversial changes that were in the main
LOOKUP PR into a smaller change that's easier to review.
2024-05-28 07:27:13 -04:00
Henning Andersen
3fad074417
Enable not same executor assertion (#109088)
Enable the assertion introduced in #108934
2024-05-28 12:57:32 +02:00
elasticsearchmachine
83f51b477e Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-28 10:01:58 +00:00
Simon Cooper
f2c2fc0d99
Add error indexes to all datetime formatter tests (#108944)
And sometimes test the java.time implementations too
2024-05-28 10:07:57 +01:00
David Turner
42e5293c04
Capture GC logs alongside heap dumps (#109087)
GC logs can be important to understand a heap dump, especially if
there's lots of unreachable objects and the GC is struggling to keep up.
2024-05-28 04:54:04 -04:00
Tim Grein
8525751dca
[Inference API] Move completion expectation to ChatCompletionResultsTests and remove code duplication (#109065) 2024-05-28 10:42:25 +02:00
Yang Wang
eff8d0ff95
[Test] Re-enable debug logging for AWS request (#109068)
With logging restriction (#105020), the networkTrace flag needs to be
set for AWS request debug logging.

Relates: #101608
2024-05-28 04:29:58 -04:00
Henning Andersen
a4bd25687c
Assert not same executor when completing future (#108934)
A common deadlock pattern is waiting and completing a future on the same executor.
This only works until the executor is fully depleted of threads. Now assert that
waiting for a future to be completed and the completion happens on different
executors.

Introduced UnsafePlainActionFuture, used in all offending places, allowing those
to be tackled independently.
2024-05-28 10:12:51 +02:00
David Turner
bcb82796af
Fix trappy timeouts in ILM rest actions (#109056)
Relates #107984
2024-05-28 09:11:18 +01:00
Tim Grein
1cff3b4366
[Inference API] Make method names for building expectations more explicit (#109066) 2024-05-28 09:44:40 +02:00
Tim Grein
aab02782e0
[Inference API] Improve URI validation in ServiceUtils#convertToUri (#109060) 2024-05-28 09:38:17 +02:00
Tim Grein
a5ac6a25c7
[Inference API] Add CustomElandRerankTaskSettingsTests (#109069) 2024-05-28 08:19:47 +02:00
Tim Grein
19b1218882
[Inference API] Add Google AI Studio completion (#109029) 2024-05-28 08:18:41 +02:00
elasticsearchmachine
8774736f27 [Automated] Update Lucene snapshot to 9.11.0-snapshot-67d80db41dd 2024-05-28 06:11:05 +00:00
Oleksandr Kolomiiets
42f4294a86
Enable fallback synthetic source for token_count (#109044) 2024-05-27 10:22:59 -07:00
Chris Hegarty
6b62c5129d
Replace use of reflection with MemorySegmentAccessInput (#109061)
This commit replaces the use of reflection with the newly added MemorySegmentAccessInput.
2024-05-27 17:49:49 +01:00
Rene Groeschke
2704d3a8d1
Remove cross project support in TestFixturesPlugin (#109077)
- One step closer to configuration cache support
- Crossproject support has been replaced by using testcontainer based fixtures
2024-05-27 17:59:14 +02:00
ChrisHegarty
12c61e4392 Mute test until Lucene bug is fixed 2024-05-27 16:35:42 +01:00
István Zoltán Szabó
2b0d2c9c23
[DOCS] updates transforms at scale doc with date rounding. (#109073) 2024-05-27 16:34:01 +02:00
ChrisHegarty
cd834e325c Fix lucene_snapshot build 2024-05-27 14:52:26 +01:00