Commit graph

87430 commits

Author SHA1 Message Date
elasticsearchmachine
2a59bed068 Mute org.elasticsearch.xpack.esql.action.EnrichIT testTopN #130122 2025-06-27 00:21:54 +10:00
Kathleen DeRusso
f2cf76f027
Update semantic text docs to suggest customization using index_options (#130028)
* Update semantic text docs to suggest using index options for customization

* Correct type of  index_options

* Move example

* PR feedback

* Copy warning fix
2025-06-26 10:10:45 -04:00
elasticsearchmachine
f37c03780c Mute org.elasticsearch.xpack.esql.qa.single_node.GenerativeIT test #130067 2025-06-27 00:04:22 +10:00
Alexander Spies
1ad6dbc599
ESQL: More specific index pattern in testMultipleBatchesWithLookupJoin (#130006)
* Specific idx in testMultipleBatchesWithLookupJoin

Do not use `from *` in the test, be more specifc - otherwise other tests
can affect the output if they leave indices behind, affecting the column
count.

* Remove column count validation

That doesn't really tell us much in this test, anyway.
2025-06-26 15:06:16 +02:00
Niels Bauman
1e9db8b248
Make ILM operation mode APIs project-aware (#129678)
Also updates the lifecycle service.
2025-06-26 22:44:38 +10:00
Albert Zaharovits
f5963959c7
Decrease merge task checker periodicity in tests (#130082)
Decreases the periodicity (from 5s to 100ms), for some tests, with which merge tasks are checked if there's sufficient available disk space to execute or if they've been aborted since enqueued for execution.

Fixes #130044
2025-06-26 15:30:32 +03:00
Nik Everett
59133d5e00
ESQL: Prepare for backport of documents_found (#130039)
Prepares the `main` branch for the backport of #125631. Specifically,
this adds the version constant for 8.19 to main and the serialization
code that lets main talk to 8.19.
2025-06-26 07:51:17 -04:00
Valeriy Khakhutskyy
4c7d922eeb
[ML] Fix timeout bug in DBQ deletion of unused and orphan ML data (#130083)
There was a bug in the code for deleting unused and orphan ML data. When deletion using DBQ occurred, the bug caused the request to time out. This PR resolves the issue.
2025-06-26 13:24:59 +02:00
Albert Zaharovits
a6004a6067
Fix ThreadPoolMergeExecutorServiceDiskSpaceTests testAvailableDiskSpaceMonitorWhenFileSystemStatErrors (#130025)
The test method needs to distinguish between the available disk space update values, when they are coming from either FS.
So the update values from the 2 FSs mustn't be equal.

Fixes #129149
2025-06-26 14:05:40 +03:00
Mariusz Józala
c05794510d
Use ES_VERSION to resolve manifest for ML and Beats (#130084)
Previously BRANCH was used in all cases, but if there is a newer version of the dependency, the incorrect version could be used. BRANCH is still used for snapshot DRA builds because full version is not available in artifacts-snapshot API.

Additionally, added log what URL is used to fetch manifest and make the curl command fail in  case of error like 404 response.
2025-06-26 12:57:02 +02:00
Tanguy Leroux
65788cb6fe
Make Engine.awaitPendingClose protected (#130004)
So that the method can be used by classes implementing the Engine
abstract class.
2025-06-26 20:53:21 +10:00
Luigi Dell'Aquila
9e06a22398
ES|QL: Unmute generative tests (#130081)
Add circuit breaker exceptions to known errors in generative tests
2025-06-26 20:44:30 +10:00
Quentin Pradet
21180dfd8d
Add inference YAML tests to rest-resources-zip (#130070) 2025-06-26 13:55:20 +04:00
Rene Groeschke
e1426b7df6
[Test] Extend timeout for CoreWithMultipleProjectsClientYamlTestSuiteIT timing out in release tests (#130074) 2025-06-26 19:55:05 +10:00
Luigi Dell'Aquila
f848e7af29
Mute GeoIpMultiProjectIT test (#130075)
Muting GeoIpMultiProjectIT that is consistently failing on release tests

see https://github.com/elastic/elasticsearch/issues/130073
2025-06-26 19:50:34 +10:00
Martijn van Groningen
eef5c14876
Include mapper extras yaml tests into mixed cluster qa module. (#130023) 2025-06-26 10:48:33 +02:00
elasticsearchmachine
a455a4a170 Mute org.elasticsearch.xpack.esql.qa.multi_node.GenerativeIT test #130067 2025-06-26 16:05:33 +10:00
Nick Tindall
4bbdfac252
Add WriteLoadConstraintSettings (#130056)
Relates: ES-11989
2025-06-26 05:14:23 +01:00
Parker Timmins
9aaba25d58
Simple version of patterned_text with a single doc value for arguments (#129292)
Initial version of patterned_text mapper. Behaves similarly to match_only_text. This version uses a single SortedSetDocValues for a template and another for arguments. It splits the message by delimiters, the classifies a token as an argument if it contains a digit. All arguments are concatenated and inserted as a single doc value. A single inverted index is used, without positions. Phrase queries are still possible, using the SourceConfirmedTextQuery, but are not fast.
2025-06-25 21:31:32 -05:00
Ryan Ernst
2df9dd42fb
Fail startup if entitlement instrumentation failed (#130051)
Java class transformers swallow exceptions, so any instrumentation
failures, for example due to a java version mismatch, will silently
proceed with startup, which then will cryptically fail the entitlement
self test. This commit logs exceptions that occur during
instrumentation, as well as plumb through the fact that any occured so
that bootstrap can fail rather than allow startup to proceed.
2025-06-26 10:31:48 +10:00
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