Commits on Jun 10, 2021

  1. Configuration menu
    Copy the full SHA
    04715f2 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2021

  1. [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>
    jrodewig and 0xTim committed Jun 14, 2021
    Configuration menu
    Copy the full SHA
    0868613 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    92b4145 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cb69d28 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    410035d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f27a84c View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2021

  1. [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
    jrodewig committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    024fb91 View commit details
    Browse the repository at this point in the history
  2. 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.
    DaveCTurner committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    973e620 View commit details
    Browse the repository at this point in the history
  3. [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>
    predogma and jrodewig committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    a122c8a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9eb41a0 View commit details
    Browse the repository at this point in the history
  5. [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
    not-napoleon committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    62f524d View commit details
    Browse the repository at this point in the history
  6. [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.
    jrodewig committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    1eee8b9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9c6a5fd View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2021

  1. 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
    jimczi committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    ef2c82e View commit details
    Browse the repository at this point in the history
  2. 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>
    DaveCTurner and jrodewig committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    efa41cf View commit details
    Browse the repository at this point in the history
  3. Replace deprecated script.cache.* settings with `script.context.$co…

    …nstext.cache_*` in documentation. (#74144) (#74184)
    
    Co-authored-by: Nicole Albee <2642763+a03nikki@users.noreply.github.com>
    Adam Locke and a03nikki committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    4ad7d8a View commit details
    Browse the repository at this point in the history
  4. [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>
    3 people committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    dd839f8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d31893d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e8c94ed View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    25d92bb View commit details
    Browse the repository at this point in the history
  8. 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.
    original-brownbear committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    9b87eb0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    690966c View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2021

  1. Configuration menu
    Copy the full SHA
    813d2aa View commit details
    Browse the repository at this point in the history
  2. [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>
    3 people committed Jun 17, 2021
    Configuration menu
    Copy the full SHA
    81b41b7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9438c2b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5f44332 View commit details
    Browse the repository at this point in the history
  5. [DOCS] Fix URL of get stored script API (#74221) (#74243)

    Co-authored-by: bellengao <gbl_long@163.com>
    jrodewig and gaobinlong committed Jun 17, 2021
    Configuration menu
    Copy the full SHA
    a00dbc4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3b0e7cf View commit details
    Browse the repository at this point in the history
  7. 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
    original-brownbear committed Jun 17, 2021
    Configuration menu
    Copy the full SHA
    bd61d81 View commit details
    Browse the repository at this point in the history
  8. 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>
    nik9000 and jrodewig committed Jun 17, 2021
    Configuration menu
    Copy the full SHA
    53e652b View commit details
    Browse the repository at this point in the history
  9. [DOCS] SQL: Move null handling to arg descriptions (#74255) (#74262)

    #74201 documents `null` handling  to the arg descriptions of several string functions.
    
    This PR moves pre-existing docs for `null` handling and similar edge case handling for string functions to arg descriptions for consistency.
    
    Relates to #74193
    jrodewig committed Jun 17, 2021
    Configuration menu
    Copy the full SHA
    148bd3d View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2021

  1. 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
    original-brownbear committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    dcb7a01 View commit details
    Browse the repository at this point in the history
  2. 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
    original-brownbear committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    c25c874 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0d48dae View commit details
    Browse the repository at this point in the history
  4. 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)
    Luegg committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    6ab6bee View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2021

  1. [DOCS] enhance transform example with range filter (#74284)

    enhance transform example using range instead of terms for 5xx error codes
    Hendrik Muhs committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    1d277b8 View commit details
    Browse the repository at this point in the history
  2. 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
    Christoph Büscher committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    98572f6 View commit details
    Browse the repository at this point in the history
  3. [DOCS] Add missing xpack role (#74331) (#74367)

    Co-authored-by: Yang Cheng <chengyang2048@163.com>
    jrodewig and chengyang14 committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    3bf6fb9 View commit details
    Browse the repository at this point in the history
  4. [DOCS] add missing dynamic runtime option (#74294) (#74364)

    Co-authored-by: Luca Cavanna <javanna@users.noreply.github.com>
    Adam Locke and javanna committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    6f0cf7d View commit details
    Browse the repository at this point in the history
  5. 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
    jmlrt committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    6d0a2bb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9467eb7 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2021

  1. [DOCS] Note bulk API supports application/json content type (#73949) (

    #74424)
    
    The bulk API supports a `Content-Type` header of `application/json` or
    `application/x-ndjson`.
    
    Closes #26280
    jrodewig committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    6e6b4a0 View commit details
    Browse the repository at this point in the history
  2. [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.
    jrodewig committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    3400b10 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aea0b6a View commit details
    Browse the repository at this point in the history
  4. 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>
    henningandersen and DaveCTurner committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    b387256 View commit details
    Browse the repository at this point in the history
  5. 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
    henningandersen committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    1b2e072 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2021

  1. Validate PIT on _msearch (#63167) (#74460)

    This change ensures that we validate point in times provided by individual search
    requests in _msearch.
    
    Relates #63132
    dnhatn committed Jun 23, 2021
    Configuration menu
    Copy the full SHA
    08993af View commit details
    Browse the repository at this point in the history
  2. 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>
    Leaf-Lin and henningandersen committed Jun 23, 2021
    Configuration menu
    Copy the full SHA
    9874fc1 View commit details
    Browse the repository at this point in the history
  3. [7.13] Shared cache's recovery range should be aligned with page size (

    …#74474)
    
    Shared cache expects read and write operations to be aligned 
    with a given page size (4096 bytes). The recovery range size 
    setting should be validated against this constraint and the 
    integration tests should not try to set a non-aligned setting 
    value.
    
    Backport of #74439
    Closes #74372
    tlrx committed Jun 23, 2021
    Configuration menu
    Copy the full SHA
    47c8b52 View commit details
    Browse the repository at this point in the history
  4. 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
    henningandersen committed Jun 23, 2021
    Configuration menu
    Copy the full SHA
    0637218 View commit details
    Browse the repository at this point in the history