Commit Graph

87608 Commits

Author SHA1 Message Date
Ryan Ernst f4e7ce935f
Upgrade ASM for entitlements to support JDK 25 (#130037) 2025-06-26 10:30:15 +10:00
Gal Lalouche 6970bd24a0
ESQL: Aggressive release of shard contexts (#129454)
Keep better track of shard contexts using RefCounted, so they can be released more aggressively during operator processing. For example, during TopN, we can potentially release some contexts if they don't pass the limit filter.

This is done in preparation of TopN fetch optimization, which will delay the fetching of additional columns to the data node coordinator, instead of doing it in each individual worker, thereby reducing IO. Since the node coordinator would need to maintain the shard contexts for a potentially longer duration, it is important we try to release what we can eariler.

An even more advanced optimization is to delay fetching to the main cluster coordinator, but that would be more involved, since we need to first figure out how to transport the shard contexts between nodes.

Summary of main changes:

DocVector now maintains a RefCounted instance per shard.
Things which can build or release DocVectors (e.g., LuceneSourceOperator, TopNOperator), can also hold RefCounted instances, so they can pass them to DocVector and also ensure contexts aren't released if they can still be potentially used later.
Driver's main loop iteration (runSingleLoopIteration), now closes its operators even between different operator processing. This is extra aggressive, and was mostly done to improve testability.
Added a couple of tests to TopNOperator and a new integration test EsqlTopNShardManagementIT, which uses the pausable plugin framework to check that TopNOperator releases things as early as possible..
2025-06-26 09:49:40 +10:00
Mark Vieira e6cf2234fc
Allow ESQL extra verifiers to access settings (#129954) 2025-06-26 09:43:56 +10:00
elasticsearchmachine bf2a283315 Mute org.elasticsearch.cluster.metadata.ComposableIndexTemplateTests testMergeEmptyMappingsIntoTemplateWithNonEmptySettings #130050 2025-06-26 07:44:19 +10:00
elasticsearchmachine 831a461155 Mute org.elasticsearch.xpack.autoscaling.storage.ReactiveStorageIT testScaleDuringSplitOrClone #130044 2025-06-26 07:30:54 +10:00
Mark Vieira e59e98e068
AwaitsFix: https://github.com/elastic/elasticsearch/issues/128224 2025-06-25 13:33:45 -07:00
Keith Massey 528bd9c234
Adding mappings to data streams (#129787) 2025-06-25 15:03:28 -05:00
David Kyle 5be4100afa
[ML] Apply patch logic for Cohere V2 transport changes (#129993) 2025-06-26 05:16:30 +10:00
Nhat Nguyen 2bc62848e8
Avoid dropping aggregate groupings in local plans (#129370)
The local plan optimizer should not change the layout, as it has already 
been agreed upon. However, CombineProjections can violate this when some
grouping elements refer to the same attribute. This occurs when
ReplaceFieldWithConstantOrNull replaces missing fields with the same
reference for a given data type.

Closes #128054
Closes #129811
2025-06-25 11:48:15 -07:00
Albert Zaharovits 72b3343ed3
Fix ThreadPoolMergeExecutorServiceDiskSpaceTests testUnavailableBudgetBlocksNewMergeTasksFromStartingExecution (#130001)
The test might produce over-budget tasks that cannot run even if all the
other tasks that were blocked (and hold up budget) while running
complete. Rather than prevent submitting such over-budget tasks, this
fix simply sets the merge task's queue available budget to
`Long.MAX_VALUE`, in order to ensure that all merge tasks run before the
test ends.

Fixes https://github.com/elastic/elasticsearch/issues/129148
2025-06-26 04:46:43 +10:00
Stanislav Malyshev d3e00bec73
ES|QL CCS GA release notes highlight (#130032)
* ESQL CCS GA
2025-06-25 19:29:27 +01:00
Sam Xiao 285b09ef8d
Remove geoip multi-project tests from release build (#129976) 2025-06-26 00:01:39 +08:00
Pawan Kartik c94c021d0e
ES|QL: Check if cluster aliases and index patterns are valid before executing query (#122497)
ES|QL index patterns validation: Ensure that the patterns in the query are syntactically and semantically valid

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
Co-authored-by: Andrei Stefan <astefan@users.noreply.github.com>
Co-authored-by: Alexander Spies <alexander.spies@elastic.co>
2025-06-25 16:47:42 +01:00
Stef Nestor af735accda
(Doc+) Link Slow Logs to Read+Write models (#129810)
* (Doc+) Link Slow Logs to Read+Write models

👋 howdy team! Baby update to cross-link the reading+write models from the Slow Logs page. 🙏

* feedback

Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>

---------

Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>
2025-06-25 09:40:44 -06:00
Niels Bauman bc515c4070
Make `IndexLifecycleService` project-aware (#129932)
Updates the background service of ILM to process all projects in the
cluster.
2025-06-25 10:38:15 -03:00
Martijn van Groningen bd5f43f3ee
Build the correct keyword field type for PotentiallyUnmappedKeywordEsField (#129854)
Before a `KeywordFieldType` was created that didn't set the isSyntheticSource field, causing to use the wrong block loader that would synthesize the complete _source instead of just loading values from ignored source. This PR addresses this.
2025-06-25 15:29:26 +02:00
elasticsearchmachine e729705015 Mute org.elasticsearch.xpack.inference.qa.mixed.CohereServiceMixedIT testCohereEmbeddings #130010 2025-06-25 23:05:04 +10:00
elasticsearchmachine 1dc754eedf Mute org.elasticsearch.xpack.inference.qa.mixed.CohereServiceMixedIT testRerank #130009 2025-06-25 23:04:57 +10:00
Niels Bauman 126e8cc5dc
Add `NotMultiProjectCapable` annotation (#129934)
Some features are unavailable in serverless and are thus not worth the
investment to make fully project-aware. This new annotation can be used
to clearly mark blocks of code that are intentionally not made properly
project-aware, in case we need to revisit them in the future.
2025-06-25 09:11:15 -03:00
elasticsearchmachine e977fccc4f
Finalize release notes for v9.0.3 release (#129938)
* Finalize docs for v9.0.3 release

* Fix breaking changes page

* Fix deprications page

* Fix release notes index page

---------

Co-authored-by: Charlotte Hoblik <sarolta@saroltah.hu>
Co-authored-by: Charlotte Hoblik <116336412+charlotte-hoblik@users.noreply.github.com>
2025-06-25 14:02:49 +02:00
elasticsearchmachine 87e6c7462f
Finalize docs for v9.0.2 release (#128837)
Co-authored-by: Charlotte Hoblik <116336412+charlotte-hoblik@users.noreply.github.com>
2025-06-25 12:27:27 +01:00
Lorenzo Dematté b52e5a71eb
[Entitlements] Small fix on relative_path docs (#129984) 2025-06-25 11:53:54 +01:00
Liam Thompson 4df0e9930c
[DOCS] Update ESQL metadata fields page (#129939)
* [DOCS] Update ESQL metadata fields page

**esql-metadata-fields.md:**
- restructured from bullet list to table format for metadata fields
- added `_index_mode` and `_source` fields to available metadata
- improved field descriptions (more detailed)
- added "usage and limitations" section
- reorganized examples into subsections with headers
- added `_score` sorting example
- added tip box linking to search documentation

* 🚙Drive by updates to search functions ref page

moved tutorial link into tip box at top
added cross-reference to search overview documentation
minor text flow improvements and punctuation fixes

* Fix id typo

* Apply suggestions from review

Co-authored-by: Bogdan Pintea <sig11@mailbox.org>
2025-06-25 12:00:28 +02:00
David Turner 138f350840
Upgrade tests to MinIO `RELEASE.2025-06-13T11-33-47Z` (#129920)
New MinIO release just dropped, migrating the tests to use it and
dropping the workaround for known issues in older versions.
2025-06-25 19:22:41 +10:00
Albert Zaharovits 98a6354ad4
Fix ThreadPoolMergeExecutorServiceDiskSpaceTests testAbortingOrRunningMergeTaskHoldsUpBudget (#129979)
When there are multiple FS with the same available disk space but different total sizes, it's unpredictable (and irrelevant) which one the checker uses.

Fixes #129823
2025-06-25 12:06:10 +03:00
Panagiotis Bailis f095b3c592
Fix for DenseVectorFieldMapperTests to properly initialize random vector given the dimensions in mappings (#129912) 2025-06-25 19:05:11 +10:00
Ievgen Degtiarenko 56d5009924
Add query plans to profile output (#128828) 2025-06-25 10:50:04 +02:00
Tim Vernum 8b62a55f2f
Watch SSL files instead of directories (#129738)
With the introduction of entitlements (#120243) and exclusive file
access (#123087) it is no longer safe to watch a whole directory.

In a lot of deployments, the parent directory for SSL config files
will be the main config directory, which also contains exclusive files
such as SAML realm metadata or File realm users. Watching that
directory will cause entitlement warnings because it is not
permissible for core/ssl-config to read files that are exclusively
owned by the security module (or other modules)
2025-06-25 18:24:57 +10:00
Bogdan Pintea e245c176a2
ESQL: Add one more test of FTF with LOOKUP JOIN (#129781)
Add one more test of FTF with LOOKUP JOIN
2025-06-25 10:22:06 +02:00
Alexander Spies 7b5e92fcb2
ESQL: Declare LOOKUP JOIN as GA in docs (#129947)
* Declare LU JOIN GA in 9.1
* Align applies_to tags for sample, change_point

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
2025-06-25 09:30:37 +02:00
Sam Xiao 41a47c24b7
Make GeoIP database node loader project-aware (#129829)
- loads the downloaded GeoIP databases from system index to ingest node file system for each project
- each project's databases are loaded to directory `tmp/geoip-databases/{nodeId}/{projectId}`
2025-06-25 12:46:47 +08:00
Niels Bauman 73d2e30c39
Clean up x-pack multi-project YAML test mutes (#129965) 2025-06-25 11:04:16 +10:00
Yang Wang e1c930f8c1
Make RepositoriesService project-aware (#129821)
This PR makes RepositoriesService project aware so that the basic Put,
Get, Delete and Verify repository actions are now project scoped. 

It intentionally leaves the following aspects out of scope for the
current changes: * Repository stats reporting * Repository clean-up,
analysis and integrity verification * Repository usages for searchable
snapshots and CCR

They will be worked on separately. One main reason for leaving them out
is that they are not needed by OBS which is currently blocked by
repository/snapshot changes. They may also have their own complexities,
e.g. stats reporting.

Resolves: ES-10478
2025-06-25 10:34:34 +10:00
elasticsearchmachine 4fe787a1df [renovate] Update branches config 2025-06-25 10:00:20 +10:00
elasticsearchmachine e7a6983372 Add 9.1 to branches.json 2025-06-25 10:00:19 +10:00
Mike Pellegrini 651bc39565
Simplified Linear & RRF Retrievers - Return error on empty fields param (#129962) 2025-06-24 19:25:24 -04:00
elasticsearchmachine c3e4f4c189 Mute org.elasticsearch.gradle.internal.InternalDistributionBwcSetupPluginFuncTest builds distribution from branches via archives extractedAssemble [bwcDistVersion: 8.2.1, bwcProject: bugfix, expectedAssembleTaskName: extractedAssemble, #2] #119871 2025-06-25 09:03:01 +10:00
elasticsearchmachine 8509e85345 Mute org.elasticsearch.xpack.test.rest.XPackRestIT test {p0=esql/60_usage/Basic ESQL usage output (telemetry) non-snapshot version} #129888 2025-06-25 08:23:29 +10:00
David Kyle 3a1551e0ef
[ML] Move to the Cohere V2 API for new inference endpoints (#129884) 2025-06-25 07:51:05 +10:00
Brendan Cully 73b0a60a77
Revert "Dispatch ingest work to coordination thread pool (#129820)" (#129949)
This reverts commit 53dae7a3a2.
2025-06-24 14:38:50 -07:00
HYUNSANG HAN (한현상, Travis) d16271b78d
Add RemoveBlock API to allow `DELETE /{index}/_block/{block}` (#129128)
Introduces a new `RemoveBlock` API that complements the existing `AddBlock` API by allowing users to remove index blocks using `DELETE /{index}/_block/{block}`.

Resolves #128966

---------

Co-authored-by: Niels Bauman <nielsbauman@gmail.com>
2025-06-25 06:16:14 +10:00
Tim Grein 3b51dd568c
[EIS] Dense Text Embedding task type integration (#129847) 2025-06-24 21:38:16 +02:00
Patrick Doyle 0e2362432c
Pass empty lists instead of nulls to FileAccessTree.of (#129942) 2025-06-25 04:44:13 +10:00
elasticsearchmachine ba50e26252 Bump versions after 8.18.3 release 2025-06-24 18:30:29 +00:00
elasticsearchmachine 7c13a1553e Bump versions after 9.0.3 release 2025-06-24 18:12:45 +00:00
elasticsearchmachine cff9da2eae Prune changelogs after 8.17.8 release 2025-06-24 18:00:57 +00:00
elasticsearchmachine 8f1d593119 Bump versions after 8.17.8 release 2025-06-24 17:58:58 +00:00
David Turner ba103f1c24
Reverse disordered-version warning message (#129904)
The comment in `TransportHandshaker` indicates (correctly) that we emit
a warning when talking to a chronologically-newer-yet-numerically-older
version, but the wording of the warning message is inverted and says
that the remote is chronologically-older-yet-numerically-newer. This
commit straightens out the message to match the situation it is
describing.

Relates #123397
2025-06-24 18:30:11 +01:00
Alexey Ivanov 876c456ac1
Move per-project settings out of ProjectMetadata (#129068)
To better support project restoration after deletion, this change moves project Settings from ProjectMetadata to the new custom in the ClusterState. It also introduces a new transport version for cluster state serialization. Reserved cluster state for project settings remains within ProjectMetadata.

Note: In mixed-version multiproject clusters, this may cause existing settings for projects to temporarily disappear until all nodes have been upgraded and restarted.
2025-06-24 18:06:45 +01:00
Panagiotis Bailis 07f65e978a
Fixing race condition in DynamicMappingIT when checking for updates in mappings (#129931) 2025-06-25 02:31:09 +10:00