Commit graph

75574 commits

Author SHA1 Message Date
Nhat Nguyen
da95df1186
Fix BlockHash DirectEncoder (#108283) (#108329)
The DirectEncoder currently returns the incorrect value for the
positionCount() method, which should be the number of positions ready in
the current batch. We need to keep track of whether a position is loaded
via encodeNextBatch() and consumed via the read() method. However, we
can always return 1 for positionCount(), indicating that one position is
already loaded. Our tests failed to catch this because mv_ordering
wasn't enabled when generating test blocks, effectively disabling the
DirectEncoders.

Closes #108268
2024-05-06 12:54:58 -04:00
Nhat Nguyen
a928c58248
Fix random limit in AsyncOperatorTests (#108289) (#108323)
Adjust the lower bound to include the case where the number of positions is zero.

Closes #107847
2024-05-06 11:39:59 -04:00
Yang Wang
9094f79a28
Ensure necessary security context for s3 bulk deletions (#108280) (#108299)
This PR moves the doPrivileged wrapper closer to the actual deletion
request to ensure the necesary security context is established at all
times. Also added a new repository setting to configure max size for s3
deleteObjects request.

Fixes: #108049
(cherry picked from commit bcf4297e89)

# Conflicts:
#	docs/reference/snapshot-restore/repository-s3.asciidoc
#	modules/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3BlobStore.java
2024-05-06 07:34:57 -04:00
István Zoltán Szabó
a337e2edd2
[DOCS] Documents param for Health API. (#108296) (#108303) 2024-05-06 06:46:10 -04:00
Yarden Shoham
86c5fcda0d
Fix typo in the file descriptors docs (#108284)
Changed "that JVM" to "the JVM"
2024-05-06 09:28:17 +02:00
Nhat Nguyen
f86e93c9aa
Fix tsdb codec when doc-values spread in two blocks (#108276) (#108282)
Currently, loading ordinals multiple times (after advanceExact) for 
documents with values spread across multiple blocks in the TSDB codec
will fail due to the absence of re-seeking for the ordinals block.

Doc-values of a document can spread across multiple blocks in two cases:
when it has more than 128 values or when it exceeds the remaining space
in the current block.
2024-05-04 17:49:52 -04:00
Simon Cooper
0fe59cac90
Backport serialization fixes to 8.13 (#108250)
Backport of #107862 to 8.13
2024-05-03 16:59:01 +01:00
elasticsearchmachine
6fa97e6390 Bump versions after 7.17.21 release 2024-05-03 15:39:48 +00:00
elasticsearchmachine
8bf33a45ad Finalize release notes for v8.13.3 2024-05-03 11:21:13 -04:00
elasticsearchmachine
72a54c09ba Prune changelogs after 8.13.3 release 2024-05-03 15:13:01 +00:00
elasticsearchmachine
fc62674549 Bump versions after 8.13.3 release 2024-05-03 15:12:16 +00:00
Ignacio Vera
c62df16c38
Fix Bucket ordering for partial reduction in date histogram and histogram aggregation (#108184)
#105359. we changed the bucket ordering for partial reduces which causes issues when the output is shared with a 
node running on an older version. This commit reorders the output to the expected order for previous versions.
2024-05-03 14:31:54 +02:00
Stef Nestor
fe8cb9f9a4
[Doc+] Add Secure Connection to Setup CCR Tutorial (#103237) (#108231) 2024-05-03 03:35:44 -04:00
Nik Everett
34c9793e5c
Docs: Update known issue (#108211) (#108214)
Updates the known issue for #108181 to include that this can happen
during a rolling restart.
2024-05-02 13:35:54 -04:00
Brian Seeders
fe09cc46b1
[ci] Add elastic-agent to Windows jobs (#108157) (#108198)
(cherry picked from commit 164bac0654)
2024-05-02 10:58:15 -04:00
elasticsearchmachine
699aece8e8
Update docs for v8.13.3 release (#108028) 2024-05-02 06:44:39 -07:00
Ignacio Vera
33db2dbcab
Add known issue for CCS duplicated buckets (#108182) (#108186) 2024-05-02 08:01:48 -04:00
Brian Seeders
f8e6104e7f
[ci] Move BWC to spot instances, shrink packaging-test-unix instances (#108111) (#108166) 2024-05-01 17:52:38 -04:00
Martijn van Groningen
2b8a13139f
Add documentation around migration from rollup to downsampling (#107965) (#108124) (#108140)
This change also updated the deprecation warning on all rollup pages from Rollups will be removed in a future version. Use <<downsampling,downsampling>> instead. to Rollups will be removed in a future version. Please <<rollup-migrating-to-downsampling,migrate>> to <<downsampling,downsampling>> instead..

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-05-01 09:00:00 -04:00
Martijn van Groningen
eb353cf2db
Simplify tsds getting started (#108090) (#108136)
* By only using index templates.
* Removing the usage and mentioning of index.routing_path index setting.
2024-05-01 08:57:45 -04:00
Christoph Büscher
37d18e375d
Mute SearchTransportTelemetryTests testSearchTransportMetricsDfsQueryThenFetch (#107942) (#108142) 2024-05-01 08:48:17 -04:00
Mark Vieira
9c38a7f008
Move muted tests file and allow for additional files to be configured (#107916) (#108034) 2024-04-30 11:55:03 -07:00
Benjamin Trent
14370f6858
Adding docs about scaled_float saturation with long values (#107966) (#108081) 2024-04-30 08:52:55 -04:00
Brian Seeders
617f7b76c4
[ci] Move multi-node tests from check part2 to part5 (#107553) (#108027)
(cherry picked from commit 7eae95620b)
2024-04-29 13:35:53 -04:00
Pat Whelan
28e54f61ef
Revert "[Transform] Allow transforms to use PIT with remote clusters … (#107970)
This reverts commit 9b584aa1f2.
2024-04-29 07:39:59 -04:00
Brian Seeders
585fae3042
[ci] Shrink platform-support Windows instances (#107912) (#107926)
(cherry picked from commit ed81cb59f8)
2024-04-25 16:58:42 -04:00
Slobodan Adamović
bc676f31ab
[Test] Fix AsyncSearchResponse resource leak in security tests (#107809) (#107819)
Closes #107759
2024-04-24 05:31:25 -04:00
Nhat Nguyen
b9f277e1ea
Fix minimized_round_trips in lookup runtime fields (#107785) (#107801)
Today, we have disabled ccs_minimized_round_trips for lookup requests, 
under the assumption that cross-cluster lookups occur when
ccs_minimized_round_trips is disabled in the main search request.
However, this assumption does not hold true for cases where the search
is local but the lookup happens remotely.
2024-04-23 20:40:38 -04:00
Mark Vieira
b5b26b260a
Reintroduce Java 22 testing to the matrix 2024-04-23 08:00:40 -07:00
Brian Seeders
a5f3f0adad
[ci] Add Buildkite metrics/logs links to buildscans (#107719) (#107727)
(cherry picked from commit 1100689b50)
2024-04-22 17:37:59 -04:00
David Turner
eb56b0deb8
Fix line break in "The QUICK brown foxes jumped over the dog!" (#107718) (#107731)
Preformatted strings preserve line breaks, but no line break was
intended here.

Co-authored-by: 草原狼 <20969793+coyoteXujie@users.noreply.github.com>
2024-04-22 17:08:26 -04:00
David Turner
1d3d321b22 Fix up hot threads timeout docs (#107692)
The hot threads API does not support a `?master_timeout` parameter, and
the `?timeout` parameter is not an ack timeout and defaults to an
infinite wait. This commit fixes the incorrect docs.
2024-04-22 14:48:11 +01:00
Bogdan Pintea
5f9392a485
SQL: Fix JdbcPreparedStatementIT.testDatetimeWithNanos (#107629) (#107686)
Fixes #105677
2024-04-22 08:18:11 -04:00
Craig Taverner
bc7468c2c1
Fails 3/10000 times, so we're slightly less restrictive with numerical errors (#107679) (#107683)
Fixes #106126
2024-04-22 07:39:35 -04:00
Brian Seeders
c6b0990226
[ci] Add checkPart4 to missing locations (#107552) (#107587)
(cherry picked from commit 91d3bb026f)
2024-04-18 14:38:16 -04:00
Mark Vieira
933c61f9f2
Muted test automation (#106784) (#107637)
# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/ElasticsearchJavaBasePlugin.java
#	build-tools/src/testFixtures/groovy/org/elasticsearch/gradle/fixtures/AbstractGradleFuncTest.groovy

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2024-04-18 14:25:02 -04:00
Bogdan Pintea
1375558ca0
SQL: Limit how much space some string functions can use (#107333) (#107621)
This will check and fail if certain functions would generate a result
exceeding a certain fixed byte size.

This prevents an operation/query to fail the entire VM.
2024-04-18 11:10:43 -04:00
David Turner
1d52dccd96
Add links to repo troubleshooting sub-pages (#107604) (#107610)
Since #104614 the top-level repo troubleshooting page is just a short
paragraph which talks about "this page" but in fact refers to
information spread across a number of subsequent pages. It's not obvious
to the reader that they need to use the navigation menu to get to the
information they seek. Moreover we link to this page from an exception
message today so there's a reasonable chance that users will find it
when trying to troubleshoot a genuine problem.

This commit rewords things slightly and adds links to the subsequent
pages to the body of the page to avoid this confusion.
2024-04-18 07:48:59 -04:00
Alexander Spies
ecb06ef904
ESQL: Fix missing refs due to pruning renamed grouping columns (#107328) (#107599)
Sometimes, CombineProjections does not correctly update an aggregation's groupings when combining with a preceding projection.
Fix this by resolving any aliases used in the groupings and de-duplicating them.

---------

Co-authored-by: Andrei Stefan <astefan@users.noreply.github.com>
(cherry picked from commit adaa4763f3)

# Conflicts:
#	x-pack/plugin/esql/qa/testFixtures/src/main/resources/stats.csv-spec
#	x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/LogicalPlanOptimizerTests.java
2024-04-18 05:03:51 -04:00
Kathleen DeRusso
8de6451701
Fix typo in text_expansion query docs example (#107572) (#107585)
* Fix typo in docs example

* fix indentation
2024-04-17 15:02:25 -04:00
Parker Timmins
b5fea97780
[8.13] GET /_all should return hidden indices with visible aliases (#106975) (#107441)
GET /_all should return hidden indices if they are accessible through a
visible alias. This is currently the behavior when resolution occurs in the 
security layer. This changes adds this behavior to name resolution
when security is not used.

(cherry picked from da8151023f)
2024-04-17 09:18:42 -05:00
Przemyslaw Gomulka
8c36f081f3
Improve EarlyDeprecationindexingIT test reliability backport(#105696) #107540
this test intends to test the bulkProcessor2's request consumer (see DeprecationIndexingComponent#getBulkProcessor) scheduling requests before the startup is completed (flush is enabled). To verify this behaviour the flush has to happen before the templates are loaded. To test this reliably the flush interval in the test should be as small as possible (not hardcoded 5s as of now)

This commit introduces a setting (not meant to be exposed/documented) to allow for the flush interval to be configured. It also adds additional trace logging to help with troubleshooting.

relates #104716
2024-04-16 18:18:46 +02:00
Benjamin Trent
46b4a73145
Add note about random sampler consistency (#107479) (#107530) 2024-04-16 08:53:41 -04:00
David Turner
3b02039a44
Handle exceptions thrown by HTTP header validation (#107355) (#107454)
Today if the HTTP header validation throws an exception (rather than
calling `listener.onFailure()`) then we treat this as a server-side
error, record it in the logs, and close the connection abruptly without
sending a response. In practice such an exception is more likely a
client-side error, so with this commit we catch it and marshal it back
to the client instead.

Closes #107338
2024-04-15 06:10:29 -04:00
Mayya Sharipova
1657ddd512
Percolator named queries: rewrite for matched info (#107432) (#107442)
PR #103084 introduced an ability to return matched_queries during percolate
process for all percolator queries containing `_name` field.

But there was a bug with complex queries, as they were not rewritten before
obraining their Weight function. This fixes the bug by ensuring all
queries are first rewritten.

Backfort for #107432
Closes #107176
2024-04-12 16:42:48 -04:00
Brian Seeders
a561885500
[ci] Use just filename for artifact upload and exclude the build dir prefix (#106844) (#107368)
(cherry picked from commit 90af8b5f4f)
2024-04-12 16:33:30 -04:00
Alexander Spies
cb33b9d19c
ESQL: Fix version test failure on non-SNAPSHOT builds (#107138) (#107365)
Test the snapshot ESQL version separately and take the current build
into account.

(cherry picked from commit ad77d32271)
2024-04-11 17:43:56 +02:00
Panagiotis Bailis
0ac7f25627
Fix for SearchServiceTests#testWaitOnRefreshFailsIfCheckpointNotIndexed - increasing timeout for randomly failing test (#107261) 2024-04-11 11:31:41 +03:00
Brian Seeders
6636e7e1c0
[8.13.2] Update release notes with missing JDK downgrade PR 2024-04-10 14:11:31 -04:00
István Zoltán Szabó
b77ff04ea2
[DOCS] Fixes a typo in the HugggingFace tutorial. (#107321) (#107324) 2024-04-10 13:16:21 -04:00