Commit graph

80476 commits

Author SHA1 Message Date
Francesco Gualazzi
ffe992aa68
[Apm-data]: disable date_detection for all apm data streams (#116995) (#117011)
(cherry picked from commit db63a28161)

Co-authored-by: Kostiantyn Masliuk <1pkg@protonmail.com>
2024-11-19 12:10:31 +01:00
Bogdan Pintea
abfecc730f
ESQL: Docs: COUNT: add an explanation to the use of the 3VL (#116684) (#117005)
Add an explanation of why `... OR NULL` is needed with `COUNT(...)`.

Fixes: #99954
2024-11-19 21:35:22 +11:00
David Turner
f663886e25
Split searchable snapshot into multiple repo operations (#116987)
* Split searchable snapshot into multiple repo operations

Each operation on a snapshot repository uses the same `Repository`,
`BlobStore`, etc. instances throughout, in order to avoid the complexity
arising from handling metadata updates that occur while an operation is
running. Today we model the entire lifetime of a searchable snapshot
shard as a single repository operation since there should be no metadata
updates that matter in this context (other than those that are handled
dynamically via other mechanisms) and some metadata updates might be
positively harmful to a searchable snapshot shard.

It turns out that there are some undocumented legacy settings which _do_
matter to searchable snapshots, and which are still in use, so with this
commit we move to a finer-grained model of repository operations within
a searchable snapshot.

Backport of #116918 to 8.16

* Add end-to-end test for reloading S3 credentials

We don't seem to have a test that completely verifies that a S3
repository can reload credentials from an updated keystore. This commit
adds such a test.

Backport of #116762 to 8.16.
2024-11-19 20:59:19 +11:00
Nikolaj Volgushev
33b8fb14df
Move expensive role building off transport thread (#113020) (#117002)
# Backport

This will backport the following commits from `main` to `8.16`:
 - [Move expensive role building off transport thread (#113020)](https://github.com/elastic/elasticsearch/pull/113020)
2024-11-19 10:35:37 +01:00
David Turner
771bea1e37
Add end-to-end test for reloading S3 credentials (#116994)
We don't seem to have a test that completely verifies that a S3
repository can reload credentials from an updated keystore. This commit
adds such a test.

Backport of #116762 to 8.16.
2024-11-19 09:30:22 +11:00
Mike Pellegrini
0a18b0e6db
Update Semantic Query To Handle Zero Size Responses (#116277) (#116977) 2024-11-19 06:59:33 +11:00
David Turner
a8e616f937
Improve message about insecure S3 settings (#116955)
Clarifies that insecure settings are stored in plaintext and must not be
used. Also removes the mention of the (wrong) system property from the
error message if insecure settings are not permitted.

Backport of #116915 to `8.16`
2024-11-18 18:41:18 +00:00
Jim Ferenczi
dab09e27e0
[8.16] Fix handling of bulk requests with semantic text fields and delete ops (#116961)
* Fix handling of bulk requests with semantic text fields and delete ops (#116942)

Previously, delete operations were not processed correctly when followed by operations containing semantic text fields. This issue caused the positions of subsequent operations in the items array to shift incorrectly by one.

This PR resolves the discrepancy and includes additional tests to ensure proper behavior.

* fix compilation
2024-11-19 04:12:57 +11:00
Liam Thompson
a80bd583a2
fix formatting errors (#116843) (#116912)
(cherry picked from commit 2d2ad00872)

Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>
2024-11-18 11:19:06 -05:00
Luca Cavanna
267abe781d
Fix handling of time exceeded exception in fetch phase (#116676)
The fetch phase is subject to timeouts like any other search phase. Timeouts
may happen when low level cancellation is enabled (true by default), hence the
directory reader is wrapped into ExitableDirectoryReader and a timeout is
provided to the search request.

The exception that is used is TimeExceededException, but it is an internal
exception that should never be returned to the user. When that is thrown, we
need to catch it and throw error or mark the response as timed out depending
on whether partial results are allowed or not.
2024-11-18 15:08:08 +01:00
Liam Thompson
2ea8e12ebe
[DOCS] Remove 'rescore' from retriever.asciidoc (#116921) (#116924)
(cherry picked from commit 4e17c61d39)

# Conflicts:
#	docs/reference/search/retriever.asciidoc
2024-11-18 22:05:02 +11:00
Yang Wang
d4d71417f6
fix trappy http stream tests (#116829) (#116905)
(cherry picked from commit 94897268b3)

# Conflicts:
#	modules/transport-netty4/src/internalClusterTest/java/org/elasticsearch/http/netty4/Netty4IncrementalRequestHandlingIT.java
#	modules/transport-netty4/src/main/java/org/elasticsearch/http/netty4/Netty4HttpRequestBodyStream.java
#	muted-tests.yml

Co-authored-by: Mikhail Berezovskiy <mikhail@elastic.co>
2024-11-18 17:01:44 +11:00
Rene Groeschke
68337ff66e
[Gradle] Update shadow plugin (#116826) (#116877)
- The shadow plugin has changed ownership and plugin id.
- Make some formatting of poms more reproducible

(cherry picked from commit def490ef85)
2024-11-16 15:06:35 +01:00
elasticsearchmachine
46a350df91 Mute org.elasticsearch.http.netty4.Netty4IncrementalRequestHandlingIT testServerCloseConnectionMidStream #116774 2024-11-15 08:49:26 +11:00
Brian Seeders
4dd1cc49a1
Update backport config to fix check 2024-11-14 16:11:23 -05:00
Mark J. Hoy
6486d4118b
backport #116357 to 8.16 (#116840) 2024-11-14 15:54:56 -05:00
Liam Thompson
c2ad8e4b85
[Docs] Link to ECK Azure snapshot docs (#111586) (#116836)
(cherry picked from commit a193fc34a3)
2024-11-15 05:06:56 +11:00
Simon Cooper
eda35e62c7
[8.16] Make snapshot restore release version check more lenient (#116727) (#116803)
* Make snapshot restore release version check more lenient (#116727)

* Add unmutes
2024-11-15 00:56:54 +11:00
Nikolaj Volgushev
b5b710a95a
Use retry logic and real file system in file settings ITs (#116392) (#116710)
Several file-settings ITs fail (rarely) with exceptions like:

```
java.nio.file.AccessDeniedException: C:\Users\jenkins\workspace\platform-support\14\server\build\testrun\internalClusterTest\temp\org.elasticsearch.reservedstate.service.SnaphotsAndFileSettingsIT_5733F2A737542BE-001\tempFile-001.tmp -> C:\Users\jenkins\workspace\platform-support\14\server\build\testrun\internalClusterTest\temp\org.elasticsearch.reservedstate.service.SnaphotsAndFileSettingsIT_5733F2A737542BE-001\tempDir-002\config\operator\settings.json |  

at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89) |  
-- | --
  |   | at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) |  
  |   | at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:317) |  
  |   | at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:293) |  
  |   | at org.apache.lucene.tests.mockfile.FilterFileSystemProvider.move(FilterFileSystemProvider.java:144) |  
  |   | at org.apache.lucene.tests.mockfile.FilterFileSystemProvider.move(FilterFileSystemProvider.java:144) |  
  |   | at org.apache.lucene.tests.mockfile.FilterFileSystemProvider.move(FilterFileSystemProvider.java:144) |  
  |   | at org.apache.lucene.tests.mockfile.FilterFileSystemProvider.move(FilterFileSystemProvider.java:144) |  
  |   | at java.nio.file.Files.move(Files.java:1430) |  
  |   | at org.elasticsearch.reservedstate.service.SnaphotsAndFileSettingsIT.writeJSONFile(SnaphotsAndFileSettingsIT.java:86) |  
  |   | at org.elasticsearch.reservedstate.service.SnaphotsAndFileSettingsIT.testRestoreWithPersistedFileSettings(SnaphotsAndFileSettingsIT.java:321)
```

This happens in Windows file systems, due to a race condition where the
file settings service is reading the settings file concurrently with the
test trying to modify it (a no-go in Windows). It turns out we have
already addressed this with a retry for one test suite
(https://github.com/elastic/elasticsearch/pull/91863), plus addressed a
related issue around mock windows file-systems misbehaving
(https://github.com/elastic/elasticsearch/pull/92653).

This PR extends the above fixes to all file-settings related ITs.

(cherry picked from commit 91559da015)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-11-14 21:34:57 +11:00
shainaraskas
d40c2cc3da
(Doc+) Resolve watermark on Cloud via Autoscaling (#115990) (#116280)
(cherry picked from commit e2bbee104c)

Co-authored-by: Stef Nestor <26751266+stefnestor@users.noreply.github.com>
2024-11-13 14:12:05 -05:00
Quentin Pradet
e37beff717
[8.16] Add missing header in put_data_lifecycle rest-api-spec (#116657) 2024-11-14 05:10:49 +11:00
Jake Landis
3aa26ab364
Bump Netty to 4.1.115.Final (#116696) (#116758)
This commit bumps Netty from 4.1.109.Final to 4.1.115.Final

(cherry picked from commit b42dbab0a4)
2024-11-14 05:01:41 +11:00
Panagiotis Bailis
4d64d96a66
[8.16] Backporting propagating nested inner_hits to the parent compound retriever (#116718) 2024-11-13 16:48:35 +02:00
elasticsearchmachine
73bdb03a0b Mute org.elasticsearch.ingest.geoip.EnterpriseGeoIpDownloaderIT testEnterpriseDownloaderTask #115163 2024-11-14 00:45:36 +11:00
kosabogi
e39768fb50
Updates chunk settings documentation (#116719) (#116723)
(cherry picked from commit bada2a60ed)
2024-11-14 00:45:12 +11:00
Chenhui Wang
6cc513ef1b
Update elastic-connectors docker namespace to integrations (#113839) (#116704) 2024-11-13 09:04:53 +01:00
Felix Barnsteiner
9cb5795086
Ignore conflicting fields during dynamic mapping update (#114227) (#116679)
This fixes a bug when concurrently executing index requests that have different types for the same field.

(cherry picked from commit 9658940a51)
2024-11-13 04:53:36 +11:00
elasticsearchmachine
471f8c4ca9 Prune changelogs after 8.16.0 release 2024-11-12 16:47:52 +00:00
elasticsearchmachine
fc8b5fd35e Bump versions after 8.16.0 release 2024-11-12 16:47:20 +00:00
elasticsearchmachine
42df621ba1 Finalize release notes for v8.16.0 2024-11-13 03:33:00 +11:00
Jedr Blaszyk
20d9a8e959
[Docs] Fix sharepoint docs for 8.16 release (#116661) (#116667) 2024-11-13 01:59:39 +11:00
elasticsearchmachine
8562fad47f Prune changelogs after 8.15.4 release 2024-11-12 12:18:05 +00:00
elasticsearchmachine
14a3e436db Bump versions after 8.15.4 release 2024-11-12 12:17:04 +00:00
elasticsearchmachine
457ffa488e
Forward port release notes for v8.15.4 (#116653) 2024-11-12 12:25:30 +01:00
Liam Thompson
4f1b5f1084
[DOCS] Connectors 8.16.0 release notes (#115856) (#116649)
(cherry picked from commit f121e09fbb)
2024-11-12 21:51:31 +11:00
Panagiotis Bailis
7027dc8625
[8.16] Backporting doc changes for retrievers (#116600) 2024-11-12 08:16:09 +01:00
Joe Gallo
4c1f3d2c2f
Document new ip_location processor (#116623) (#116629) 2024-11-12 12:21:26 +11:00
Benjamin Trent
08306e7074
Clarify the vector files utilized for preloading (#116488) (#116621)
Adds clarification for vector preloading, what extension is to what
storage kind, and that quantized vectors are stored in separate files
allowing for individual preload. 

closes: https://github.com/elastic/elasticsearch/issues/116273
2024-11-12 08:59:47 +11:00
Joe Gallo
502810a22a
Document new ip_location APIs (#116611) (#116614) 2024-11-12 06:24:51 +11:00
Joe Gallo
4a057efb21
Document new ip geolocation fields (#116603) (#116605) 2024-11-12 03:38:56 +11:00
Benjamin Trent
6e9e2b4bdd
char_filter pattern_replace error requires at least java 21 (#116507) (#116597)
This test requires at least java 21, skip it otherwise.

closes: https://github.com/elastic/elasticsearch/issues/116405 closes:
https://github.com/elastic/elasticsearch/issues/116134
(cherry picked from commit 91b4b1e4e4)
2024-11-12 02:50:29 +11:00
elasticsearchmachine
acf2a96a3e Mute org.elasticsearch.xpack.searchablesnapshots.SearchableSnapshotsCanMatchOnCoordinatorIntegTests testSearchableSnapshotShardsAreSkippedBySearchRequestWithoutQueryingAnyNodeWhenTheyAreOutsideOfTheQueryRange #116523 2024-11-12 01:57:33 +11:00
Lorenzo Dematté
d2d1e05573
[8.16] Backporting full CompatibilityVersions to NodeInfo (#116576) 2024-11-11 15:17:45 +01:00
David Kyle
146f2f83a6
[ML] Bump client timeout for model download test (#116247) (#116584)
# Conflicts:
#	muted-tests.yml
2024-11-12 00:16:01 +11:00
kosabogi
1192135739
Adds ml-cpp release notes (#116567) 2024-11-11 12:04:55 +01:00
Bogdan Pintea
fb3893a688
Remove trailing semicolon in REPEAT function example (#116218) (#116573)
Remove trailing semicolon in REPEAT function example (Closes #116156 )

Co-authored-by: Jack Pan <35284546+jackpan123@users.noreply.github.com>
2024-11-11 22:01:44 +11:00
Slobodan Adamović
accb4caa51
Unmute SecurityWithBasicLicenseIT (#116300) (#116569)
Test failure issue got closed without actually unmuting this test.
Locally, this test passes.

Relates https://github.com/elastic/elasticsearch/issues/99169

(cherry picked from commit ddd606d360)
2024-11-11 21:41:24 +11:00
elasticsearchmachine
598cb538f1
Update docs for v8.16.0 release (#116154) 2024-11-11 09:26:20 +01:00
Andrei Dan
870e77aa63
[8.16] Validate missing shards after the coordinator rewrite (#116382) (#116490)
* Validate missing shards after the coordinator rewrite (#116382)

The coordinate rewrite can skip searching shards when the query filters
on `@timestamp`, event.ingested  or the _tier field.

We currently check for missing shards across all the indices that are
the query is running against however,  some shards/indices might not
play a role in the query at all after the coordinator rewrite.

This moves the check for missing shards **after** we've run the
coordinator rewrite so we validate only the  shards that will be
searched by the query.

(cherry picked from commit cd2433d60c)
Signed-off-by: Andrei Dan <andrei.dan@elastic.co>

* imports

* Adapt unit test for 8.16 to use @timestamp rewrite

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-11-10 19:05:17 +11:00
Mark Vieira
920f2f7e6d
Add SLES 15.6 to docker linux exclusions list (#116506) (#116512) 2024-11-09 05:39:31 +11:00