Commit graph

81332 commits

Author SHA1 Message Date
elasticsearchmachine
e4e4cffccf Bump versions after 8.16.4 release 2025-02-14 16:17:39 +00:00
elasticsearchmachine
18e2b7efec Bump versions after 8.17.2 release 2025-02-14 15:52:39 +00:00
Dimitris Rempapis
66f9dd5b5f
unmute test (#122603)
Backports the following commits to 8.17:

unmute test (https://github.com/elastic/elasticsearch/pull/122592)
2025-02-15 02:14:38 +11:00
Martijn van Groningen
34a39bafc9
[8.x] Logsdb and source only snapshots. (#122572) (#122595)
* [8.x] Logsdb and source only snapshots.

Backporting #122199 to 8.x branch.

Addresses a few issues with logsdb and source only snapshots:
* Avoid initializing index sorting, because sort fields will not have doc values.
* Also disable doc value skippers when doc values get disabled.
* As part of source only validation figure out what the nested parent field is.

Also added a few more tests that snapshot and restore logsdb data streams.

* fix test
2025-02-14 23:45:19 +11:00
Benjamin Trent
da33a03a84
Addressing int4 flat flakiness (#121437) (#122539)
This simplifies the setup and relaxes the similarity check.

We can restrict the similarity check once we evolve the quantization
algorithm in the future.

(cherry picked from commit 2de1a3defe)
2025-02-14 09:14:26 +11:00
Ryan Ernst
f06b450e25
Block running ES 8.17 with JDK 24+. (#122517)
JDK 24+ will not work due to SecurityManager being disabled. This commit
makes the error explicit instead of runtime errors in SecurityManager
code.
2025-02-13 19:16:50 +01:00
Ignacio Vera
4bdc3f9db0
Deduplicate IngestStats and IngestStats.Stats identity records when deserializing (#122496) (#122514)
This commit makes sure we reuse the existing static instance when deserializing to avoid excessive heap usage.
2025-02-14 04:22:27 +11:00
Mark Vieira
dba9d58b54
Add release tooling for adding new transport versions (#122426) (#122451) 2025-02-13 07:22:57 -08:00
Rene Groeschke
8a03edc37e
Develocity setup does not allow overwriting server url (#122470) (#122479)
This is a prerequisite to have
https://github.com/elastic/elasticsearch/pull/122296 passing in bwc
tests
2025-02-13 10:49:30 +01:00
Nhat Nguyen
a59785f69d
Fix listener leak in exchange service (#122417) (#122454) (#122467)
If we hit the circuit breaker exception before fetching pages,
we fail to notify the listener.

Closes #122271
2025-02-13 17:37:00 +11:00
Benjamin Trent
1a426889ab
Fix synthetic source bug that would mishandle nested dense_vector fields (#122425) (#122437)
When utilizing synthetic source with nested fields, we attempt to
rebuild the child values in addition to all the parent values.

While this generally works well, its potential that certain values might
be missing from various child docs. Consequently, we will attempt to
iterate the vector values strangely, resulting in seemingly missing
values or potentially exceptions indicating EOFs.

closes: #122383
(cherry picked from commit f5c901e68c)
2025-02-13 09:44:18 +11:00
elasticsearchmachine
c7398bc866
Forward port release notes for v8.16.4 (#122289) 2025-02-12 09:33:15 +01:00
Rene Groeschke
a080a98d46
[Build] Fix the manifest target and source information for jdbc projects (#121888) (#122239)
The nebula info broker plugin takes the information for the manifest from the java project settings rather then from
the compile task configuration. Instead of setting the compiler task configuration explicitly we now set the project
configuration accordingly. Also tweaked the javaTestCompile tasks to keep compiling with general minimum runtime version as we did before

(cherry picked from commit 6e6e42f5d4)
2025-02-12 09:14:09 +01:00
elasticsearchmachine
f108363930 Bump versions after 8.16.4 release 2025-02-11 20:18:32 +00:00
elasticsearchmachine
5d8efe6283 Prune changelogs after 8.17.2 release 2025-02-11 19:51:46 +00:00
elasticsearchmachine
53fdc71026 Bump versions after 8.17.2 release 2025-02-11 19:50:48 +00:00
elasticsearchmachine
b6243be866 Finalize release notes for v8.17.2 2025-02-12 06:30:15 +11:00
Brian Seeders
f172996fdf
Update .backportrc.json 2025-02-11 13:59:59 -05:00
Rene Groeschke
9b099d45f2
Update Gradle wrapper to 8.12.1 (#120960) (#121201)
(cherry picked from commit 2b16515166)
2025-02-11 20:31:39 +11:00
Luca Cavanna
1614d02e2d
Fix SearchTimeoutIT (#120390) (#122205)
Two of the timeout tests have been muted for several months. The reason is that we tightened the assertions to cover for partial results being returned, but there were edge cases in which partial results were not actually returned.

The timeout used in the test was time dependent, hence when the timeout precisely will be thrown is unpredictable, because we have timeout checks in different places in the codebase, when iterating through the leaves, before scoring any document, or while scoring documents. The edge case that caused failures is a typical timing issue where the initial check for timeout in CancellableBulkScorer already triggers the timeout, before any document has been collected.

I made several adjustments to the test to make it more robust:
- use index random to index documents, that speeds it up
- share indexing across test methods, so that it happens once at the suite level
- replace the custom query that triggers a timeout to not be a script query, but rather a lucene query that is not time dependent, and throws a time exceeded exception precisely where we expect it, so that we can test how the system reacts to that. That allows to test that partial results are always returned when a timeout happens while scoring documents, and that partial results are never returned when a timeout happens before we even started to score documents.

Closes #98369
Closes #98053
2025-02-11 06:52:43 +11:00
Luigi Dell'Aquila
bf6109bae9
EQL: fix JOIN command validation (not supported) (#122011) (#122173) 2025-02-11 01:29:32 +11:00
elasticsearchmachine
9afe4a0f8e
Update docs for v8.17.2 release (#122107) 2025-02-10 10:13:27 +01:00
Nik Everett
7353ba7385
Retry timeout tests for aggs (#122031) (#122081)
The aggs timeout test waits for the agg to return and then double checks
that the agg is stopped using the tasks API. We're seeing some failures
where the tasks API reports that the agg is still running. I can't
reproduce them because computers. This adds two things:
1. Logs the hot_threads so we can see if the query is indeed still
   running.
2. Retries the _tasks API for a minute. If it goes away soon after the
   _search returns that's *fine*. If it sticks around for more than a
   few seconds then the cancel isn't working. We wait for a minute
   because CI can't be trusted to do anything quickly.

Closes #121993
2025-02-08 06:56:10 +11:00
Luigi Dell'Aquila
27d1c6e23a
ES|QL: fix ENRICH validation for use of wildcards (#121911) (#122021) 2025-02-07 23:50:55 +11:00
Mark Tozzi
b35a9239e6
Aggregations cancellation after collection (#120944) (#121952)
This PR addresses issues around aggregations cancellation, mentioned in https://github.com/elastic/elasticsearch/issues/108701 and other places. In brief, during aggregations collection time, we respect cancellation via the mechanisms in the searcher to poison cancelled queries. But once the aggregation finishes collection, there is no further need to interact with the searcher, so we cannot rely on that for cancellation checking. In particular, deeply nested aggregations can spend a long time constructing the results tree.

Checking for cancellation is a trade off, as the check itself is somewhat expensive (it involves a volatile read), so we want to balance checking often enough that cancelled queries aren't taking up resources for a long time, but not so frequently that it slows down most aggregation queries. Our first attempt to this is to check once when we go to build sub-aggregations, as the worst cases for this that we've seen involve needing to build deep sub-aggregation trees. Checking at sub-aggregation construction time also provides a conveniently centralized method call to add the check to.

---------



 Conflicts:
	test/framework/src/main/java/org/elasticsearch/search/aggregations/AggregatorTestCase.java

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
2025-02-07 08:53:02 +11:00
Brian Seeders
4749254375
[CI] Remove Windows 2016 testing (#121941) (#121957)
(cherry picked from commit b952809838)
2025-02-06 16:38:58 -05:00
Mark Vieira
795d92bbdd
Upgrade mockito (#121849) (#121933) 2025-02-07 05:53:09 +11:00
Nhat Nguyen
1607149029
Clean up exchanges in EsqlNodeFailureIT (#121633) (#121926)
If the query hits the failing index first, we will cancel the request,
preventing exchange-sink requests and data-node requests from reaching
another data node. As a result, exchange sinks could stay for 30
seconds.
2025-02-06 10:26:57 -08:00
Mark Vieira
ab5815846b
Fix thirdPartyAudit task when running on Java 24 (#121712) (#121839)
We need to explicitly add the incubating vector API module to the third
party audit task on Java 24.

(cherry picked from commit 0c667ecd2a)

# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ThirdPartyAuditTask.java
2025-02-06 07:04:36 -08:00
Mark Vieira
2846f646c4
Don't attempt to install modules into test cluster more than once (#121833) (#121862)
(cherry picked from commit 56cac1bfe9)
2025-02-06 12:15:51 +11:00
elasticsearchmachine
a6358289d6 Mute org.elasticsearch.search.basic.SearchWithRandomIOExceptionsIT testRandomDirectoryIOExceptions #118733 2025-02-06 09:28:47 +11:00
Oleksandr Kolomiiets
747663ddda
Fix synthetic source issue with deeply nested ignored source fields (#121715) (#121789)
* Fix synthetic source issue with deeply nested ignored source fields

* Update docs/changelog/121715.yaml
2025-02-06 05:04:28 +11:00
Jedr Blaszyk
ebc3026b14
[Connectors][Docs] Fix docker image name (#121778) (#121786) 2025-02-06 03:35:37 +11:00
Pat Whelan
d569ff53af
[ML] Skip Usage stats update when ML is disabled (#121559) (#121768)
Do not call ML's GetDeploymentStatsAction API when ML is disabled in the cluster, instead return the inference configurations as-is.

Fix #121532
2025-02-06 03:01:47 +11:00
Christoph Büscher
cbb9b15392
Fix rare failures in YAML xContent roundtrip tests (#121515) (#121683)
Under very unfortunate conditions tests that check xContent objects
roundtrip parsing  (like i.e. SearchHitsTests#testFromXContent)
can fail when we happen to randomly pick YAML xContent type and create
random (realistic)Unicode character sequences that may contain the
character U+0085 (133) from the Latin1 code page. That specific character
doesn't get parsed back to its original form for YAML xContent, which can 
lead to rare but hard to diagnose test failures.

This change adds logic to AbstractXContentTestCase#test() which lies at
the core of most of our  xContent roundtrip tests that disallows test
instances containing that particular character  when using YAML xContent
type.

Closes #97716
2025-02-05 05:28:32 +11:00
Joe Gallo
1a252841a1
Update geolocation database documentation (#121472) (#121670) 2025-02-05 02:22:30 +11:00
Andrei Stefan
73381dbeb1
[8.x] ESQL: use field_caps native nested fields filtering (#117201) (#117375) (#121645)
* Just filter the nested fields natively with field_caps support
2025-02-04 14:28:04 +01:00
Nhat Nguyen
b49564d13f
Unwrap failure in testCancelRequestWhenFailingFetchingPages (#121597) (#121615)
The thrown exception may be wrapped in an ExecutionException; therefore,
we need to unwrap it before verification.

Closes #121596
Closes #118193
2025-02-03 22:13:56 -08:00
Nhat Nguyen
9c42846014
Fix ClusterRequestTests (#121570) (#121619)
The upper bound of randomVersionBetween is inclusive; therefore, for
testing the fallback version of the request, we need to use the version
preceding 8.16.0 rather than 8.16.0 itself.

Closes #117937
2025-02-04 14:44:04 +11:00
Carson Ip
690644603a
Add missing apm-server tail sampling monitoring metrics to stack monitoring mapping (#121543) (#121580)
Add missing apm-server tail sampling monitoring metrics to stack monitoring mapping. They were missed in #110568.

(cherry picked from commit f3f5135f06)

# Conflicts:
#	x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/MonitoringTemplateRegistry.java
2025-02-04 09:43:27 +11:00
David Kyle
1d55fb3328
[ML] Fix infer on and elasticsearch service endpoint created with a deployment id (#121428) (#121440) (#121514)
Fixes a bug where the deployment Id was lost creating the text embedding
model configuration
# Conflicts:
#	x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/elasticsearch/ElasticsearchInternalService.java
#	x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/elasticsearch/ElserInternalServiceSettings.java
#	x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/elasticsearch/MultilingualE5SmallInternalServiceSettings.java
#	x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/elasticsearch/ElasticsearchInternalServiceTests.java
2025-02-04 04:58:15 +11:00
Simon Cooper
7f4ce9c8f8
[8.17] Update transport and index version id numbers to S_PP (#121380) (#121522)
Backport #121380 to 8.17
2025-02-03 13:54:28 +00:00
Luigi Dell'Aquila
50d65f9a4c
Fix docs.testFilterToday JDBC test (#121504) (#121511) 2025-02-03 21:31:30 +11:00
Dan Rubinstein
afd5b9f9ce
Fix inference update API calls with task_type in body or deployment_id defined (#121231) (#121320)
* Fix inference update API calls with task_type in body or deployment_id defined

* Update docs/changelog/121231.yaml

* Fixing test

* Reuse existing deployment ID retrieval logic

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-30 14:58:36 -05:00
David Turner
c34afe022b
Cheaper snapshot-related toString() impls (#121283) (#121307)
If the `MasterService` needs to log a create-snapshot task description
then it will call `CreateSnapshotTask#toString`, which today calls
`RepositoryData#toString` which is not overridden so ends up calling
`RepositoryData#hashCode`. This can be extraordinarily expensive in a
large repository. Worse, if there's masses of create-snapshot tasks to
execute then it'll do this repeatedly, because each one only ends up
yielding a short hex string so we don't reach the description length
limit very easily.

With this commit we provide a more efficient implementation of
`CreateSnapshotTask#toString` and also override
`RepositoryData#toString` to protect against some other caller running
into the same issue.
2025-01-31 04:15:13 +11:00
Michael Peterson
1c48948508
Clarify the behavior of remote/info and resolve/cluster for connected status of remotes (#118993) (#121203) 2025-01-29 14:51:50 -05:00
Liam Thompson
28a1a4df5f
Update recovery.asciidoc (#114889) (#121217)
(cherry picked from commit d8874b6524)

Co-authored-by: Paulo <paulletilly@gmail.com>
2025-01-30 04:44:33 +11:00
Rene Groeschke
f6062cd2ed
[8.17] [Gradle] Make rolling upgrade tests configuration cache compatible (#119577) (#120316)
* [Gradle] Make rolling upgrade tests configuration cache compatible (#119577)

With this, all rolling upgrade tests that involve a
`nextNodeToNextVersion` update are gradle configuration cache
compatible.

Simplify API around test cluster registry and cc compatible usage of
test cluster in TestClusterAware tasks.

(cherry picked from commit 7b6bdfa323)

# Conflicts:
#	qa/ccs-rolling-upgrade-remote-cluster/build.gradle
#	x-pack/plugin/sql/qa/jdbc/security/build.gradle
#	x-pack/plugin/sql/qa/server/security/build.gradle

* Fix backport merge issue
2025-01-30 04:16:09 +11:00
Liam Thompson
bffc1d9751
(Doc+) Clarify dimension field requirements for time_series aggregation (#119442) (#121163) 2025-01-29 18:09:18 +01:00
Rene Groeschke
85ef42376b
Breakup release tests in PR (#120692) (#120729)
* Breakup release tests in PR
* fix test release task dependencies

(cherry picked from commit 1484f783d8)

# Conflicts:
#	build.gradle
2025-01-29 16:51:37 +01:00