Commit Graph

67378 Commits

Author SHA1 Message Date
Artem Prigoda a71210c111 Run spotless on the 7.17.9 version bump change 2023-02-02 18:03:19 +01:00
Joe Gallo 94d16a28da
Faster CollectionUtils.ensureNoSelfReferences (#93433) 2023-02-02 11:46:45 -05:00
Artem Prigoda bc05481305 Prune changelogs after 7.17.9 release 2023-02-02 17:37:19 +01:00
Artem Prigoda 6971d2c2f6 Bump versions after 7.17.9 release 2023-02-02 17:36:02 +01:00
Keith Massey 467b8592e9
Avoiding a NullPointerException in GeoIpDownloaderIT (#93471) 2023-02-02 10:24:20 -06:00
David Turner 4c68382065
Capture thread dump on ShardLockObtainFailedException (#93458)
We sometimes see a `ShardLockObtainFailedException` when a shard failed
to shut down as fast as we expected, often because a node left and
rejoined the cluster. Sometimes this is because it was held open by
ongoing scrolls or PITs, but other times it may be because the shutdown
process itself is too slow. With this commit we add the ability to
capture and log a thread dump at the time of the failure to give us more
information about where the shutdown process might be running slowly.

Relates #93226
2023-02-02 11:17:40 -05:00
David Turner 7adeb48fc7
Describe delete-snapshot tasks (#93466)
Delete-snapshot tasks can sometimes be very long-running, but they're
hard to monitor because the tasks API does not include a description of
the snapshot(s) which are being deleted. This commit adds such a
description.
2023-02-02 11:09:16 -05:00
David Turner f8fc2999ec
Even more logging for #93226 (#93465) 2023-02-02 15:37:59 +00:00
Ievgen Degtiarenko 513dc2f24f
Expose per node counts (#93439) 2023-02-02 16:13:01 +01:00
Nikolaj Volgushev a0343e4c57
Make password long enough for FIPS mode (#93450)
In FIPS mode, passwords require a minimal length. This PR adjusts a
test to adhere to this.

Fixes: #93449
2023-02-02 15:03:11 +01:00
Armin Braun 03f8ea5520
Minor cleanups FrozenIndexInput (#93309)
Some random finds while working with this code. We shouldn't use a Consumer<Long> instead of a LongConsumer
as we never pass `null` to the consumer.
Also, way simplified the locking around the Lucene `Bytebuffer b` to simplify the code and technically make it
a little faster/less-contenting as well.
Plus, made use of modern Java's buffer slicing to simplify the slicing of the Lucene buffer.
2023-02-02 14:32:49 +01:00
Francisco Fernández Castaño f4b7335eb5
Remove extra logging from PrioritizedThrottledTaskRunnerTests (#93456) 2023-02-02 13:52:30 +01:00
David Turner eb9eeae5ed
More investigation into 93271 (#93454)
We still don't properly understand why this test is failing, and it
doesn't reproduce locally, so this commit adds a little extra logging to
capture extra detail from a failure in CI.
2023-02-02 07:03:51 -05:00
Mary Gouseti ff60564113
Remove MonitoringWithWatcherRestIT.testThatLocalExporterAddsWatches
We remove this test because it is flaky and the feature tested here is already tested by monitoring.
2023-02-02 12:39:38 +01:00
David Turner 8d44c9a416
Fix context leak in list tasks API (#93431)
In #90977 we made the list tasks API fully async, but failed to notice
that if we waited for a task to complete then we would respond in the
thread context of the last-completing task. This commit fixes the
problem by restoring the context of the list-tasks task before
responding.

Closes #93428
2023-02-02 10:37:19 +00:00
David Turner b0c380d784
Misc improvements to TBbNA tests (#93435)
Similar to #92983, this commit reworks the tests in
`TransportBroadcastByNodeActionTests` to use the `ReachabilityChecker`
to check that things are released on cancellation, and adds a test
showing the cancellation behaviour of the shard-level operations.
2023-02-02 10:29:52 +00:00
Nikolaj Volgushev 221c93531b
Revert "Convert full cluster restart tests to new rest testing framework (#93422)" (#93444)
Reverts #93422

Should address: #93442 and possibly #93440
2023-02-02 11:29:41 +01:00
David Turner 2ef63a4fe5
Fix PrioritizedThrottledTaskRunnerTests (#93446)
These tests try and execute `maxThreads` concurrent tasks to ensure that
the rest of the executor's queue has been processed, but due to #93443
(and the executor's zero timeout) this sometimes doesn't work. This
commit fixes the problem by making every thread a core thread so that
they do not time out.

Closes #92910
Closes #92747
2023-02-02 10:28:58 +00:00
Hendrik Muhs cf5ea0bb1f
[ML] rename frequent_items to frequent_item_sets and make it GA (#93421)
rename frequent_items to frequent_item_sets and remove the experimental batch
2023-02-02 09:25:00 +01:00
Martijn van Groningen 9babcc9bb9
Enforce synthetic source for time series indices (#93380)
Support for synthetic source is also added to `unsigned_long` field as part of this change.
This is required because `unsigned_long` field types can be used in tsdb indices and
this change would prohibit the usage of these field type otherwise.

Closes #92319
2023-02-02 08:00:52 +01:00
Yang Wang 190b617542
Support configuring SSL separately for remote access port (#93334)
Though the remote access is implemented with the transport profile. Its
configuration and behaviour should not be tied to the default transport
profile like other profiles do. Users should be able to enable or
disable SSL separately for the remote access port and configure differnt
values for all SSL settings. These settings can also have different
defaults.

This PR implements the above by:
* Adds a new xpack.security.remote_cluster.ssl.enabled setting to
  control whether SSL is enabled separately for the remote access port
* The above enabled setting defaults to true (unlike the default for
  tranport SSL)
* Client auth defaults to none for the remote access port
* Separate server SSL configuration validation

The PR also moves the remote access profile to be built first for more
consistent error message.
2023-02-02 15:37:36 +11:00
Mark Vieira 91233461d1 Increase volume size of encryption at rest job 2023-02-01 11:51:42 -08:00
Mark Vieira 820ba5af23
Convert full cluster restart tests to new rest testing framework (#93422) 2023-02-01 11:34:21 -08:00
Benjamin Trent 323a13ac3f
Add `term` query support to rank_features mapped field (#93247)
This adds term query capabilities for rank_features fields. term queries against rank_features are not scored in the typical way as regular fields. This is because the stored feature values take advantage of the term frequency storage mechanism, and thus regular BM25 does not work.

Instead, a term query against a rank_features field is very similar to linear rank_feature query. If more complicated combinations of features and values are required, the rank_feature query should be used.
2023-02-01 13:32:13 -05:00
Benjamin Trent 7f9f3bcd30
Add new query_vector_builder option to knn search clause (#93331)
This adds a new option to the knn search clause called query_vector_builder. This is a pluggable configuration that allows the query_vector created or retrieved.
2023-02-01 13:31:46 -05:00
Jake Landis 93ecc4d7b3
Consolidate google-oauth-client to latest version (#91722)
related: #87800
fixes #90126
2023-02-01 12:01:52 -06:00
Mark Vieira 8e44603c06
Fix thirdPartyAudit tasks when running with Java 20 (#93394) 2023-02-01 09:10:51 -08:00
Mark Vieira 5cbbf5c35c Add CI job for BWC testing pull requests on Windows 2023-02-01 09:08:55 -08:00
Tanguy Leroux 2700dc537c
Do not refresh all indices in TransportBulkAction (#93417)
Since we know which indices were involved in the Bulk 
request we can refresh only those instead of all indices, 
and expand to hidden indices so that they are also 
refreshed.

Relates #93160
2023-02-01 17:06:40 +01:00
Tim Brooks 3ffa22e3cf
Fix unexpected in-flight requests log message (#93400)
Currently we log in internal test cluster cases where there are
in-flight bytes. However, the log message is not clear it is referring
to the number of bytes associated with the request. This commit fixes
this log.
2023-02-01 09:01:28 -07:00
Simon Cooper d65e075dd6
Fix exception thrown inside inboundhandler test (#93419) 2023-02-01 16:00:21 +00:00
Nikola Grcevski 5b67fd26cf
[TEST] Fix servercli tests for FIPS mode (#93350) 2023-02-01 10:37:38 -05:00
David Kyle 7c7ee0eb39
[ML] Increase timeout in MlTrainedModelsUpgradeIT (#93416) 2023-02-01 15:17:48 +00:00
Enrico Zimuel 56340cedf5
FIxed the doc URL for rest API update trained model deployment (#93072)
As titled, the previous URL was 404.
2023-02-01 14:30:30 +00:00
Keith Massey 9aeec50472
Re-enabling monitoring bulk yaml tests (#93397) 2023-02-01 08:16:30 -06:00
Hendrik Muhs 51e0a3bd24
[ML] improve frequent_items performance by using global ordinals (#93304)
implement global ordinals for frequent items and add execution_hint to switch between the old (map) based lookup and global ordinals
2023-02-01 15:08:12 +01:00
Craig Taverner bc7a31fd08
Revert "Convert full cluster restart tests to new rest testing framework (#93062)" (#93407)
This reverts commit 013b2e5d5e.
2023-02-01 12:57:50 +01:00
Alan Woodward d62fe2928c
Nested path info shouldn't be added during copy_to (#93340)
When executing the copy_to mappings on a nested doc, if the location was
underneath another nested mapper then the document parser could end up
adding a new nested path metadata field for the source to the destination
document. This was mostly ignored, but could make calculation of a
NestedIdentity incorrect, leading to exceptions when loading the source of
a nested document during the fetch phase.

This commit moves all of the nested path handling directly into
DocumentParserContext.createNestedContext(), which already has some
logic to detect if we're in a copy_to context.

Fixes #93117
2023-02-01 11:25:57 +00:00
Hendrik Muhs eb43e5b9b0
improve code documentation of ValueSource regarding (global, segment) ordinals (#93347)
Lookups on sub-objects in flattened fields don't support global ordinals, but only segment ordinals. Currently code documentation claims support for segment and global ordinals. This change fixes the documentation and adds further details how to check for global ordinal support. This also adds testcase for flattened as example for this special case.
2023-02-01 12:16:21 +01:00
Iraklis Psaroudakis 062981c793
Fix count of unpromotable refreshes in test (#93406)
Fixes #93401
2023-02-01 13:00:28 +02:00
Artem Prigoda 58c1bcc0f8
[DOCS] [main] Add release notes for 8.6.1 (#93236) (#93404)
Forward ports the release notes from #93236
2023-02-01 11:42:36 +01:00
Simon Cooper 99018d9615
Migrate org.elasticsearch.search to TransportVersion (#93091) 2023-02-01 09:45:23 +00:00
Pooya Salehi 926fbfa89e
[CI] Mute testCreateSplitIndexToN (#93402) 2023-02-01 10:43:04 +01:00
Martijn van Groningen b6fa6d8469
Add missing counter field support to some aggregations. (#93311)
Add missing counter field support to min, max and top_metrics aggregations.
2023-02-01 10:40:20 +01:00
Yang Wang 67d4092bf3
Fix error message when SSL key is configured without a cert (#93359)
The error message should refer to the setting of ssl.key instead of
ssl.keystore.path

PS: Labelling this as non-issue since we don't consider error message as
actual production changes (that need go into the release notes).
2023-01-31 19:40:27 -05:00
Abdon Pijpelink d93382bcb6
[DOCS] Remove 'from' parameter from update_by_query/delete_by_query docs (#93379) 2023-02-01 09:09:57 +09:00
Adrien Grand c21ee47610
Switch to Lucene's new IntField/LongField/FloatField/DoubleField. (#93165)
Lucene introduced new numeric fields that index both points and doc
values. This has the same semantics as indexing one field for points and
another one for doc values as we did before, but covering both data
structures in a single field yielded a speedup in Lucene's nightly
benchmarks (see annotation
[AH](http://people.apache.org/~mikemccand/lucenebench/sparseResults.html#index_throughput))
which would be interesting to get too.

This commit does not switch to factory methods for queries such as
`LongField#newRangeQuery` for now, we'll need to look into it in a
follow-up.
2023-01-31 16:09:42 -05:00
Benjamin Trent 4871b5a894
Allow `null` to be provided for dense_vector field values (#93388)
If a document has `null` specified as the vector value, the vector field will not be parsed or indexed.

This is useful for when deleting vector values from an indexed document.

closes: https://github.com/elastic/elasticsearch/issues/70470
2023-01-31 15:32:10 -05:00
Mark Vieira 013b2e5d5e
Convert full cluster restart tests to new rest testing framework (#93062) 2023-01-31 12:26:45 -08:00
Nikola Grcevski 37f195eaf9
[TEST] Fix staleness in fetching component templates (#93321) 2023-01-31 15:15:36 -05:00