Commit Graph

86883 Commits

Author SHA1 Message Date
Rene Groeschke df43f8396b
Fix serialization issue with RunTask using Configuration Cache (#128596) 2025-05-29 09:52:00 +02:00
elasticsearchmachine f65949d899 Mute org.elasticsearch.packaging.test.DockerTests test124CanRestartContainerWithStackLoggingConfig #128121 2025-05-29 17:08:38 +10:00
Nik Everett 33fc85fdff
ESQL: Move some mappers into their expressions (#128342)
This moves half of the remaining centralized expression mapper logic
into the individual expressions. This is how all but 3 of the remaining
expressions work. Let's try and be fully consistent.
2025-05-28 20:50:17 -04:00
Nick Tindall 83d7b7dd70
Add REST & Transport layers section to GeneralArchitectureGuide.md (#126377)
Closes: ES-7885
2025-05-29 03:42:45 +03:00
Stanislav Malyshev 5c482957af
Re-enable and fix the EsqlRestValidationIT test (#128542)
* Re-enable and fix the EsqlRestValidationIT test
2025-05-28 14:57:29 -06:00
Pat Whelan 86cef7f88e
[ML] InferenceService support aliases (#128584)
"elser" is an alias for "elasticsearch", and "sagemaker" is an alias for
"amazon_sagemaker".

Users can continue to create and use providers by their alias.
Elasticsearch will continue to support the alias when it reads the
configuration from the internal index.
2025-05-28 23:36:21 +03:00
Nik Everett 8c89037786
ESQL: Speed up semantic_text tests (#128591)
Speeds up the semantic_text tests by using a test inference plugin. That
skips downloading the normal inference setup.

Closes #128511 Closes #128513 Closes #128571 Closes #128572 Closes
#128573 Closes #128574
2025-05-29 06:25:25 +10:00
Brian Seeders c2ad34b97f
[release-notes] Update automation to use new markdown format (#124161) 2025-05-28 14:53:02 -04:00
Ioana Tagirta f275b71766
ES|QL: Improve field resolution for FORK (#128501) 2025-05-28 20:01:29 +02:00
Patrick Doyle ba50798f62
Split PolicyChecker from PolicyManager (#128004)
* Split PolicyChecker from PolicyManager

* Restore EntitlementCheckerUtils

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
2025-05-28 12:48:14 -04:00
Keith Massey 83a13b9cc4
Making the data stream settngs rest-api-spec consistent with the elasticsearch-specification repository (#128535) 2025-05-28 09:28:11 -05:00
Dan Rubinstein 53668f7565
Improve exception for trained model deployment scale up timeout (#128218)
* Improve exception for trained model deployment scale up timeout

* Update docs/changelog/128218.yaml

* Rename exception and update exception message

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-05-28 10:17:30 -04:00
kosabogi ac08e9c8fb
Adds ml-cpp release notes for 9.0 (#128567) 2025-05-28 14:44:45 +02:00
Chris Hegarty 4a831d0d72
[9.x] Add an integration test to verify DirectIO is used for BBQ rescoring (#128465)
Port DirectIOIT from lucene_snapshot to main.

relates #128370
2025-05-28 11:32:38 +01:00
Gal Lalouche 0aae7f6e0d
ESQL: Add INLINESTATS capability requirement to tests (#128556)
It looks like there are a bunch of tests that failed due to missing
INLINESTATS capability.

Resolves #128512.
2025-05-28 13:26:59 +03:00
Tanguy Leroux e5cdc581cf
Add integration test for concurrent multipart uploads on Azure (#128503)
Enhances existing integration test to account for #128449.

Relates ES-11815
2025-05-28 10:59:35 +02:00
Yang Wang 6bc1452b43
Make repositories project aware (#128285)
Pass project-id explicitly to repository factory and make it part of the
repository interface.

Relates: ES-11839
2025-05-28 17:29:39 +10:00
elasticsearchmachine 790be1ea28 Mute org.elasticsearch.xpack.esql.action.CrossClusterQueryWithPartialResultsIT testFailToStartRequestOnRemoteCluster #128545 2025-05-28 17:28:47 +10:00
Ioana Tagirta 392777d842
Return unsupported attributes in FORK output (#128508) 2025-05-28 08:39:59 +02:00
elasticsearchmachine df82c0629d Mute org.elasticsearch.xpack.ccr.index.engine.FollowingEngineTests testProcessOnceOnPrimary #128541 2025-05-28 14:08:48 +10:00
Nhat Nguyen 890c4e282f Mute EsqlRestValidationIT
Tracked at #128543
2025-05-27 20:54:47 -07:00
Nhat Nguyen 7f2e55fd80
Skip indexing points for seq_no in tsdb and logsdb (#128139)
This change skips indexing points for the seq_no field in tsdb and 
logsdb indices to reduce storage requirements and improve indexing
throughput. Although this optimization could be applied to all new
indices, it is limited to tsdb and logsdb, where seq_no usage is
expected to be limited and storage requirements are more critical.

Co-authored-by: Martijn van Groningen <martijn.v.groningen@gmail.com>
2025-05-27 15:59:44 -07:00
Keith Massey 41f186dca0
Adding prefer_ilm as a whitelisted data stream setting (#128375) 2025-05-27 15:42:08 -05:00
Stanislav Malyshev 8484b71126
ES|QL: Make skip_unavailable catch all errors (#128163)
* Make skip_unavailable catch all errors
2025-05-27 13:49:10 -06:00
Nik Everett 7532ad5e97
ESQL: Raise timeout on test suite (#128525)
It uses `semantic_text` which can be quite slow.

Closes #128513 Closes #128511
2025-05-28 04:53:12 +10:00
Pat Whelan 28307688f7
[ML] Integrate OpenAi Chat Completion in SageMaker (#127767)
SageMaker now supports Completion and Chat Completion using the OpenAI
interfaces.

Additionally:
- Fixed bug related to timeouts being nullable, default to 30s timeout
- Exposed existing OpenAi request/response parsing logic for reuse
2025-05-27 21:50:10 +03:00
Carlos Delgado 13f3864ed9
Fix KQL usage in in STATS .. BY (#128371) 2025-05-27 20:57:12 +03:00
Patrick Doyle a78f1f04b7
Refactor TestBuildInfoPluginFuncTest for clarity (#128469)
* Refactor TestBuildInfoPluginFuncTest for clarity

* Further simplify TestBuildInfoPluginFuncTest
2025-05-27 13:50:26 -04:00
Jonathan Buttner 0404c077de
Adjusting the google vertex ai batch size to match documentation (#128518) 2025-05-27 13:42:39 -04:00
Luigi Dell'Aquila 6d636706c6
Add support for parameters in LIMIT command (#128464) 2025-05-27 19:00:12 +03:00
elastic-renovate-prod[bot] 488bd6a846
Update wolfi (versioned) (#128516)
This PR contains the following updates:

| Package | Type | Update | Change | |---|---|---|---| |
docker.elastic.co/wolfi/chainguard-base |  | digest | `55ee1dc` ->
`3d19648` | | docker.elastic.co/wolfi/chainguard-base | final | digest |
`55ee1dc` -> `3d19648` | | docker.elastic.co/wolfi/chainguard-base |
stage | digest | `55ee1dc` -> `3d19648` | |
docker.elastic.co/wolfi/chainguard-base-fips |  | digest | `a9e07d9` ->
`68e0781` | | docker.elastic.co/wolfi/chainguard-base-fips | final |
digest | `a9e07d9` -> `68e0781` | |
docker.elastic.co/wolfi/chainguard-base-fips | stage | digest |
`a9e07d9` -> `68e0781` |

---

### Configuration

📅 **Schedule**: Branch creation - "after 1pm on tuesday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once
you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyI6RGVsaXZlcnkvUGFja2FnaW5nIiwiPm5vbi1pc3N1ZSIsIlRlYW06RGVsaXZlcnkiLCJhdXRvLW1lcmdlLXdpdGhvdXQtYXBwcm92YWwiXX0=-->
2025-05-28 01:50:20 +10:00
Ievgen Degtiarenko b909a503a5
Create a pipeline to run micro-benchmarks periodically (#128507) 2025-05-27 16:34:08 +02:00
David Turner cdc74748dc
Note in Javadocs that `SubscribableListener` fires once (#128131)
Spell out that multiple completions of a `SubscribableListener` race to
be chosen as the winner that is passed to subscribed listeners, such
that the subscribed listeners all fire at most once.
2025-05-28 00:33:07 +10:00
Ievgen Degtiarenko 9e57f1471b
generate sequence diagramRefactor logger declaration (#128457) 2025-05-27 16:09:30 +02:00
Bogdan Pintea 21fe40a9b5
ESQL: Add optimization to purge join on null merge key (#127583)
This adds a new logical optimization rule to purge a Join in case the
merge key(s) are null. The null detection is based on recognizing a tree
pattern where the join sits atop a project and/or eval (possibly a few
nodes deep) which contains a reference to a `null`, reference which
matches the join key.

It works at coordinator planning level, but it's most useful locally,
after insertions of `nulls` in the plan on detecting missing fields.

The Join is substituted with a projection with the same attributes as
the join, atop an eval with all join's right fields aliased to null.

Closes #125577.
2025-05-27 23:38:18 +10:00
fzowl 52bc94e295
[INFERENCE] Adding VoyageAI's v3.5 models (#128241) 2025-05-27 15:45:39 +03:00
elasticsearchmachine ea4dc14afd Merge patch/serverless-fix into main 2025-05-27 12:22:12 +00:00
Martijn van Groningen 6a4a285284
Conditionally force sequential reading in LuceneSyntheticSourceChangesSnapshot (#128473)
Change LuceneSyntheticSourceChangesSnapshot to force sequential stored field reading when index.code is best_compression.

In CCR benchmarks I see that relatively often we spend a lot of time compressing the same stored field block over and over again when the doc ids are not dense. It is likely when a seqno range is requested that the corresponding doc id list contains gaps. However most docids are monotonically increasing, so not sequential reading harms performance. The reason that currently we're not loading sequentially is because of the logic in `StoredFieldLoader#hasSequentialDocs(...)`, which requires all requested docids to be in monotonically order (no gaps allowed). In the case of `LuceneSyntheticSourceChangesSnapshot` with stored field best compression that is too conservative. In practice, we end decompressing stored field blocks for each docid we need to synthetisize source for recovery.

I think it makes sense to do sequential reading in this case, given that it is very likely that many of the requested doc id ranges will contain monotonically increasing ranges. Note that the requested docids will always sort in ascending order (this happens in `LuceneSyntheticSourceChangesSnapshot#transformScoreDocsToRecords(...)`.
2025-05-27 13:44:12 +02:00
Tanguy Leroux 3bc6a4368a
Support concurrent multipart uploads in Azure (#128449)
Introduces some basic support for concurrent multipart uploads 
on Azure, to help with benchmarking.

Relates ES-11815
2025-05-27 13:01:41 +02:00
Ido Cohen 0a10581838
[Cloud Security] update index privileges 2025-05-27 13:25:35 +03:00
elasticsearchmachine beabbb36f8 Mute org.elasticsearch.xpack.esql.plugin.DataNodeRequestSenderIT testSearchWhileRelocating #128500 2025-05-27 20:00:47 +10:00
Chris Hegarty 7f2ddff0e8
Use TestUtil.alwaysKnnVectorsFormat where possible in tests (#128477)
This commit is a minor refactoring of several tests to use TestUtil.alwaysKnnVectorsFormat where possible, rather than extending Lucene101Codec. The alwaysKnnVectorsFormat static method returns an AssertingCodec that delegates to the default codec for everything except KnnVectorsFormat.

The primary motivation for this change is to avoid extending a version specific Lucene codec that will require to be updated when Lucene updates its codec ( as can be seen in the lucene_snapshot branch, from Lucene101Codec to Lucene103Codec ).
2025-05-27 10:52:16 +01:00
Lorenzo Dematté 0e3f379697
Skip bootstrap checks on snapshot builds (#128448)
Today we determine whether bootstrap checks are enforced (in production builds) based on whether a non-loopback address is configured.

This PR we should expand that to also not enforce bootstrap checks when a snapshot build is used, so that is enforceLimits = non-loopback && non-snapshot

Fixes #118328
2025-05-27 11:07:29 +02:00
Patrick Doyle 7690f4667e
Revert changes to Text class (#128483) (#128484)
* Revert "Fix the Text class package change in example plugins (#128316)"

This reverts commit cc486480e3.

* Revert "Update Text class to use native java ByteBuffer (#127666)"

This reverts commit db0c3c7a28.

Co-authored-by: Lorenzo Dematté <lorenzo.dematte@elastic.co>
2025-05-27 18:37:43 +10:00
Chris Hegarty 2134a1e6e1
Remove pesky restricted method warnings in tests. (#128212)
Since our unit and IT tests run as unnamed modules we should add `--enable-native-access=ALL-UNNAMED` to suppress the pesky warning that arise from calls to `System::load`.
2025-05-27 09:23:09 +01:00
Liam Thompson 0a46527232
[DOCS] Document `join` field type not available on serverless currently (#128496) 2025-05-27 09:51:35 +02:00
Jan Kuipers e352d2c1da
Fix memory tracking of ES|QL sample agg (#128467)
* Fix memory tracking of ES|QL sample agg

* [CI] Auto commit changes from spotless

* polish code

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
2025-05-27 08:38:28 +02:00
David Turner 7bcbca1268
Upgrade MinIO test container (#128424)
Earlier versions of MinIO had a bug which can cause repository analysis
failures. This commit upgrades the MinIO test container version to pick
up the bug fix, and reverts the workaround implemented in #127166.

Relates https://github.com/minio/minio/issues/21189
2025-05-27 07:24:41 +01:00
Carlos Delgado b7591613e1
ES|QL dense vector field type support (#126456) 2025-05-27 07:54:20 +02:00
Nick Tindall 83fe2eda5c
Optimise shared-blob-cache evictions (#126581)
Closes: ES-10744

Co-authored-by: Tanguy Leroux <tlrx.dev@gmail.com>
2025-05-27 10:01:27 +10:00