[DOCS] Add Swift client to community clients (#74075) (#74080)
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com> Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
[DOCS] Clarify criteria for restore completion (#74094) (#74124)
A restore operation is complete when all attempts to recover primary shards have finished, even if unsuccessful. Closes #70854
Recycle buffers used for file-based recovery (#74117)
Adds a missing `decRef()` that prevents buffer recycling during recovery. Relates #65921 which introduced the extra retention.
[DOCS] Note ESS must use custom bundles for custom GeoIP database fil…
…es (#73978) Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
[7.13] Fix bug when formatting epoch dates (#73955) (#74140)
* Fix bug when formatting epoch dates (#73955) Date based aggregations accept a timezone, which gets applied to both the bucketing logic and the formatter. This is usually what you want, but in the case of date formats where a timezone doesn't make any sense, it can create problems. In particular, our formatting logic and our parsing logic were doing different things for epoch_second and epoch_millis formats with time zones. This led to a problem on composite where we'd return an after key for the last bucket that would parse to a time before the last bucket, so instead of correctly returning an empty response to indicate the end of the aggregation, we'd keep returning the same last page of data. * fix merge mistake
[DOCS] Clone index API doesn't apply index templates or settings (#74138
) (#74153) Changes: * Notes that Elasticsearch doesn't apply index templates to cloned indices. * Notes the clone API doesn't copy index settings.
Disable query cache for FunctionScoreQuery and ScriptScoreQuery (#74060)
This commit disables the query cache for the `FunctionScoreQuery` and the `ScriptScoreQuery`. These queries are not meant to be cached. If the score is not needed, we'll now cache the sub-query and filters independently since we don't want to keep an unused script in the cache. Closes #73925
Fix clone API settings docs bug (#74175)
In #74138 we noted that index settings aren't copied in a clone. In fact that's not true, we copy everything except explicitly-excluded ones, `number_of_replicas` and `auto_expand_replicas`. This fixes the mistake. Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Replace deprecated script.cache.* settings with `script.context.$co…
[DOC] Add watcher to the threadpool doc (#73935) (#74189)
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com> Co-authored-by: Joe Gallo <joegallo@gmail.com> Co-authored-by: François-Clément Brossard <renshuki@users.noreply.github.com>
Fix Snapshot Docs Listing Query Params in Body Incorrectly (#74196) (#…
…74206) Both of these APIs don't parse request bodies, the parameters are all taken from the query string. Also, included the master timeout param include as it was missing here also.
[DOCS] Update central reporting image (#74195) (#74216)
[DOCS] Service account edits (#73732) (#74151)
* Put all service accounts information on one page * De-emphasize connection with built-in accounts + edits * Iterate on the docs: tweak, correction and more details. * fix test * Edits and minor text changes Co-authored-by: Yang Wang <yang.wang@elastic.co> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Yang Wang <yang.wang@elastic.co> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
[DOCS] Fix URL of get stored script API (#74221) (#74243)
Co-authored-by: bellengao <gbl_long@163.com>
Fix Searchable Snapshot Test Range Size Overflow (#74113) (#74239)
Page alignment of the setting value can push it past the maximum since we round up. Closes #74016
Document types terms agg can consume (#73272) (#74259)
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com> Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
[DOCS] SQL: Move null handling to arg descriptions (#74255) (#74262)
Increment Request Before Serializing it in OutboundHandler (#74256) (#…
…74273) If there are outside ways by which a request can be decremented (e.g. due to cancelling a recovery concurrently) we may run into a situation where we try to send a `refcount == 0` request. We have to avoid this by incrementing a request before serializing and decrementing after it returns to make sure we don't corrupt the request bytes while they're being serialized or sent over the wire. Closes #74253
Fix Snapshots Recording Incorrect Max. Segment Counts (#74291) (#74302)
If sequence numbers are equal across snapshots (and thus no files get written to the repository) the segment count in the index commit is not reliable as it may have changed due to background merges. => fixed by always using the segment count determined from the file names in the snapshot instead closes #74249
SQL: Fix literal projection with condition (#74083) (#74308)
Fixes #64567 Queries with a literal selection and a filter like `SELECT 1 FROM test_emp WHERE gender = 'F'` are currently erroneously optimised to use a local relation. This causes ES to always return a single record, no matter how many records match the filter condition. This PR makes sure that `SkipQueryIfFoldingProjection` only skips the query if it's an aggregate with only constants (e.g. `SELECT 'foo' FROM test GROUP BY 1`). This optimization seems to lead to another issue #74064 that's not yet addressed in this PR. Besides this the "skip query" optimization, the `SkipQueryIfFoldingProjection` class also folds constants from `LocalRelation`s and pushes the evaluated values into a new `LocalRelation` (e.g. for queries like `SELECT 1 + 2`). (cherry-picked from commit 189adf5)
[DOCS] enhance transform example with range filter (#74284)
enhance transform example using range instead of terms for 5xx error codes
Fix rare failure condition in FieldSortBuilderTests (#74347) (#74356)
Under rare randomization conditions, the mininum values used in FieldSortBuilderTests#testIsBottomSortShardDisjoint can currently be missintepreted and parsed as years by the date parser that is called deeper down in DateFieldMapper#isFieldWithinQuery. In practice this cannot happen because `isBottomSortShardDisjoint` uses the formatted sort values for a date field, which are string values and don't cause this kind of error. This PR fixes that in the test setup. Closes #74142
[DOCS] add missing dynamic runtime option (#74294) (#74364)
Co-authored-by: Luca Cavanna <javanna@users.noreply.github.com>
Fix UBI source URL (#74357) (#74370)
This commit fix the source URL for UBI image to ensure that it stays consistent with the one generated in https://artifacts.elastic.co/reports/dependencies/dependencies-current.html
[DOCS] Note bulk API supports application/json content type (#73949) (
[DOCS] Note remote reindex does not support slicing (#73959) (#74426)
A reindex from a remote cluster doesn't support automatic or manual slicing. This reuses a related note from the reindex docs in the upgrade docs. Closes #54243.
Avoid scaling empty tier unnecessarily (#74086) (#74413) (#74436)
Autoscaling supports data tiers using attributes. This commit refines the check to avoid bootstrapping a tier when a non-filter decider says NO. Co-authored-by: David Turner <david.turner@elastic.co>
Autoscale frozen tier into existence (#73435) (#74412) (#74443)
This commit adds two related changes: * ILM WaitForDataTierStep * Autoscaling frozen_existence decider The first part ensures that we wait mounting an index until a node that can hold the index is available, avoiding a failed restore and red cluster state. This is in particular important for the frozen phase, but is done generically in the searchable snapshot action. The second part triggers on indices in the ILM frozen phase to scale the tier into existence by requiring a minimal amount of memory and storage. Closes #72771
Validate PIT on _msearch (#63167) (#74460)
This change ensures that we validate point in times provided by individual search requests in _msearch. Relates #63132
Adding priority list and executing description to the pending tasks d…
…oc (#74456) * Adding priority to the pending tasks doc #19448 (comment) https://github.com/elastic/elasticsearch/blob/917fea7c5d0ea31ae1ccf301298f5f006216bb9f/core/src/main/java/org/elasticsearch/common/Priority.java#L29 * Adding executing into the cluster pending tasks * Update docs/reference/cluster/pending.asciidoc Co-authored-by: Henning Andersen <33268011+henningandersen@users.noreply.github.com> Co-authored-by: Henning Andersen <33268011+henningandersen@users.noreply.github.com>
[7.13] Shared cache's recovery range should be aligned with page size (…
Fix testIsNotTierOnlyDecision (#74475)
The test would fail 2 percent of the time due to using the same-shard allocation decider to make it a "not tier only decision". That decider is however ignored here and the test has been adjusted to not use that decider. Related to #74086