Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jakelandis align jackson versions #1

Open
wants to merge 921 commits into
base: align_jackson_versions
Choose a base branch
from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Jan 24, 2023

  1. Configuration menu
    Copy the full SHA
    91d6881 View commit details
    Browse the repository at this point in the history
  2. Fix elastic#93168 (elastic#93175)

    Removes a now-bogus assertion, and instead asserts that the assigned
    roles correctly influence the engine created for each shard copy.
    DaveCTurner committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    00a253f View commit details
    Browse the repository at this point in the history
  3. Fix instructions in max retry decider explanations (elastic#92956)

    Today we say `manually call [/_cluster/reroute?retry_failed=true]` if a
    shard exceeds the max number of retries. We should give a verb here, and
    also since elastic#90399 we should recommend saying `metric=none` too.
    DaveCTurner committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    8ebe2c7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0c1e7db View commit details
    Browse the repository at this point in the history
  5. Add extra logging to PrioritizedThrottledTaskRunnerTests#assertNoRunn…

    …ingTasks (elastic#93174)
    
    This should help debugging elastic#92910 and rule out possible environmental
    issues, such us slowness creating threads due to an overloaded CI
    worker.
    fcofdez committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    8ae886a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bfc52d5 View commit details
    Browse the repository at this point in the history
  7. Fix DataTierDataStreamIT flaky test (elastic#93137)

    If this test runs right before midnight, it's possible when getting
    the settings for the index, it doesn't exist, due to a mismatch between
    the names (datastream names have the date in their name, "uuuu.MM.dd")
    
    Closes elastic#92368
    HiDAl committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    6d21bc2 View commit details
    Browse the repository at this point in the history
  8. Add ActionListener#assertOnce (elastic#93159)

    Alternative approach to elastic#93143, avoiding adding overhead in production.
    DaveCTurner committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    b97eafa View commit details
    Browse the repository at this point in the history
  9. Migrate TcpTransport to TransportVersion (elastic#92960)

    The vast majority of this commit is doing a simple s/Version/TransportVersion/, however there are a couple of areas of complexity.
    
    Handshakes proved to be a particularly tricky issue, as they have complex usage of Version.minimumCompatibilityVersion. In lieu of solving this problem now, I've replaced uses of minimumCompatibilityVersion with TransportVersion.minimumCompatibilityVersion and TransportVersion.calculateMinimumCompatVersion.
    
    As a later piece of work, code using both those methods will need to be refactored to do something else, and the methods removed.
    
    Co-authored-by: Przemyslaw Gomulka <przemyslaw.gomulka@elastic.co>
    thecoop and pgomulka committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    8e28445 View commit details
    Browse the repository at this point in the history
  10. Adjust range of allowed percentages of deletes in an index. (elastic#…

    …93188)
    
    Lucene 9.5 changed the allowed range and the default value for the
    allowed percentage of deletes in an index. It used to allow values in
    [20, 50] with a default of 33. It now allows values in [5, 50] with a
    default of 20.
    
    See apache/lucene#11831.
    jpountz committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    d086706 View commit details
    Browse the repository at this point in the history
  11. Update tsdb docs to include warning and additional limitations (elast…

    …ic#93191)
    
    Update tsdb docs to include a warning that the format of the `_tsid` field shouldn't be relied upon and added additional limitations about dimension fields.
    martijnvg committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    92f229d View commit details
    Browse the repository at this point in the history
  12. Avoid double-completion of ListenableFuture (elastic#93187)

    `ListenableFuture` throws an `IllegalStateException` if completed more
    than once, which (at best) is just silently swallowed and (at worst) may
    prevent other cleanup from happening. In particular, we do not expect
    `onFailure()` to throw an exception as happens here. This commit
    elevates this check to an assertion, and fixes the places that violate
    it using `ActionListener#notifyOnce`.
    DaveCTurner committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    2052ca8 View commit details
    Browse the repository at this point in the history
  13. Unmute DataStreamIT#testWriteLoadAndAvgShardSizeIsStoredInABestEffort (

    …elastic#93194)
    
    This commit unmutes the test and adds additional logging in order
    to debug the test failures in the CI environment.
    
    Relates elastic#91967
    fcofdez committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    3e48117 View commit details
    Browse the repository at this point in the history
  14. Call Refresh API to satisfy ?refresh in Stateless (elastic#93160)

    This is a workaround that provides support for the 
    `IMMEDIATE` and `WAIT_UNTIL` Refresh policies.
    
    Relates ES-5292
    pxsalehi committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    b759fb1 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    a1bf143 View commit details
    Browse the repository at this point in the history
  16. Don't bound low precision geohex aggregations on vector tiles (elasti…

    …c#93195)
    
    This commit adds a mechanism so geohex aggregations with precision <= 3 are created with unbounded bounds.
    iverase committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    1f5546e View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    b79b846 View commit details
    Browse the repository at this point in the history
  18. Restore printing bootstrap checks as errors (elastic#93178)

    Bootstrap check failures were unintentionally moved to the info level
    in the log output. This commit restores logging them as errors.
    
    closes elastic#93074
    rjernst committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    54fe770 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    cc86b16 View commit details
    Browse the repository at this point in the history
  20. Chunked encoding for cluster reroute API (elastic#92615)

    The cluster reroute API (optionally) returns the cluster state in its
    response, which can therefore be rather large. elastic#92285 enables a chunked
    encoding of the cluster state, and this commit adjusts the reroute API
    to make use of this encoding too.
    DaveCTurner committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    87f2221 View commit details
    Browse the repository at this point in the history
  21. Documentation for geohex_grid over geo_shape (elastic#92999)

    * Documentation for geohex_grid over geo_shape
    
    The feature to add support for geohex_grid aggregations over geo_shape
    fields was added in elastic#91956.
    This is the associated documentation for that.
    
    * Update docs/reference/aggregations/bucket/geohexgrid-aggregation.asciidoc
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    
    * Fix explanation for geo_point vs geo_shape proj
    
    When aggregating geohex over geoshape we use requirectangular because
    underlying lucene index indexes and searches the polygons in that way.
    
    * Correct spelling
    
    According to grammarly, "therefor" is not an alternative spelling
    of "therefore". We should use the conjunctive form here.
    
    See https://www.grammarly.com/blog/therefore-vs-therefor/
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    craigtaverner and abdonpijpelink committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    e8b4de9 View commit details
    Browse the repository at this point in the history
  22. Bounds inflation performance and unit tests (elastic#92901)

    * Alternative algorithm for inflated bounds
    
    The BoundedGeoHexGridTiler inflates the bounding box for parent
    cell searches since the parent cells bounds do not match the
    descendents.
    
    This algorithm does a slightly more refined calculation of the
    inflation factor by considering all four corners and inflating in
    the four directions independently.
    
    * Remove alternative algorithm for bbox inflation
    
    The new algorithm was faster than the old for the same inflation factor
    but had more failures, and a longer tail of failures (which needed
    higher inflation factors). So it would take a lot more work (probably)
    to find and fix these edge cases. An easier option is to keep the
    original algorithm.
    
    * Reduce bbox inflation factor to 0.25
    
    This increases performance by about 10% (a factor of 0.22 increased
    performance by about 13%).
    
    We found the error rate for `testGeoShapeGeoHex` was about 0.5% for
    inflation factor 0.19 and 0.2% for inflation factor 0.22.
    These last 2/1000 failed tests required inflation factors of 0.27
    0.30 respectively, so we'll investigate them individually.
    
    * Increase bbox inflation factor to 0.35
    
    Since there were three failures discovered for 0.25, all of which passed
    at 0.30, we decided to set the inflation factor to 0.35 initially for
    the sake of caution, and consider revising it down again later with
    more careful testing.
    
    * Fixed comment about bounded tiler inflation
    
    * Fixed comment about bounded tiler inflation
    craigtaverner committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    649a5d7 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    f49b520 View commit details
    Browse the repository at this point in the history
  24. Fix ByteArrayIndexInput with nonzero offset (elastic#93205)

    We introduced a bug in elastic#79885 by not accounting for cases where there's
    a nonzero offset in the underlying byte array. Unfortunately
    `ESIndexInputTestCase` didn't cover these code paths. This commit
    extends the test coverage and fixes the bug.
    DaveCTurner committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    7390b4d View commit details
    Browse the repository at this point in the history
  25. Resolve cluster alias for opened connections (elastic#92584)

    We introduced the ability to resolve the cluster alias in elastic#91724, given a
    connection towards a remote cluster. This works for connections
    obtained via RemoteConnectionManager::getConnection. However,
    connections can also be initiated via openConnection (e.g., in
    SniffConnectionStrategy). This PR adds support to correctly resolve the
    cluster alias for such connections, by wrapping them in an
    InternalRemoteConnection instance. This is necessary to support the new
    remote cluster security model.
    n1v0lg committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    ffabc7e View commit details
    Browse the repository at this point in the history
  26. Enable autoManageMasterNodes in DataTierAllocationDeciderIT (elastic#…

    …93209)
    
    When numDataNodes is 0 the test framework doesn't create nodes
    automatically, for this test we needed to manage the node roles
    manually in order to exercise different topology scenarios, by
    a misunderstanding autoManageMasterNodes was set to false, while
    that was not necessary. This commit sets autoManageMasterNodes to
    its default value simplifying slightly the test suite.
    fcofdez committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    8b80db8 View commit details
    Browse the repository at this point in the history
  27. Remove user exception marker from server cli (elastic#93206)

    Previously UserExceptions could be thrown from the main Elasticsearch
    process during startup. With recent refactorings all remaining
    validation of arguments was moved to the server cli. Since there are no
    longer any uses of the user exception in server, the marker code is no
    longer needed. This commit removes that marker and the associated code
    in the server cli error pump.
    rjernst committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    07b5d85 View commit details
    Browse the repository at this point in the history
  28. Add configurable operation listener for translog (elastic#92926)

    This commit adds a listener that will be called when new operations are written to the translog writer.
    Tim-Brooks committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    45ed328 View commit details
    Browse the repository at this point in the history
  29. Suggest systemd override file instead of unit file for tmpdir (elasti…

    …c#93211)
    
    The systemd unit file is part of the Elasticsearch package and should
    not be edited. Instead, we recommend creating a service override file.
    This commit tweaks the docs for setting tmp dir with systemd to use the
    override file instead of editing the unit file.
    
    relates elastic#93121
    rjernst committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    2cad226 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    601a0a5 View commit details
    Browse the repository at this point in the history
  31. Prefix IP filter settings for remote access port with xpack.security (e…

    …lastic#93181)
    
    Similar to existing dedicated IP filter settings for transport and http,
    the IP filter settings for remote access are now prefixed with
    xpack.security.
    
    Relates: elastic#93126
    ywangd committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    b8c33ec View commit details
    Browse the repository at this point in the history
  32. Making JsonProcessor stricter so that it does not silently drop data (e…

    …lastic#93179)
    
    This PR makes JsonProcessor's JSON parsing a little bit stricter so that
    we are not silently dropping data when given bad inputs. Previously if
    the input string began with something that could be parsed as a valid
    json field, then the processor would grab that and ignore the rest. For
    example, `123 "foo"` would be parsed as `123`, dropping the `"foo"`. Now
    by default it will throw an IllegalArgumentException on a string like
    this. A user can now set the `strict_json_parsing` parameter to false to
    get the old behavior. For example:
    
    ```
    POST _ingest/pipeline/_simulate
    {
      "pipeline": {
        "description": "",
        "processors" : [
          {
            "json" : {
              "field" : "message",
              "strict_json_parsing": false
            }
          }
        ]
      },
      "docs": [
        {
          "_source": {
            "message": "123 \"foo\""
          }
        }
      ]
    }'
    ```
    
    Closes elastic#92898
    masseyke committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    f327352 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    d031dea View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2023

  1. Remove CompletableFuture from SSLConfigurationReloader (elastic#93132)

    The `SSLConfigurationReloader` uses a `CompletableFuture` to receive an
    as-yet-unconstructed instance of the `SSLService`, but in all cases the
    `SSLService` is in fact already constructed so we can just directly pass
    it into the constructor.
    DaveCTurner committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    30ae87c View commit details
    Browse the repository at this point in the history
  2. Send remote access headers for internal users (elastic#92585)

    This PR adds querying-cluster-side support for internal users making
    requests cross cluster under the new security model.
    
    For the querying cluster, this involves detecting that a request is
    made by an internal user and sending a remote access header with an
    empty role descriptors intersection and an embedded authentication
    instance identifying the internal user making the request. The
    fulfilling cluster will use this header to resolve the correct
    privileges for the given internal user (while also enforcing the
    privileges of the remote access key used for the request). The
    fulfilling cluster side implementation will follow in a separate PR.
    
    Currently, the only use of internal users cross cluster is requests
    made by _system to fetch cluster-state from the fulfilling cluster.
    n1v0lg committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    39ef33b View commit details
    Browse the repository at this point in the history
  3. Improve shard routing assertions (elastic#92906)

    Today shard routing assertions are convoluted and even accept some cases.
    For example `assert relocatingNodeId == null || state == RELOCATING || state ==
    INITIALIZING` permits null `relocatingNodeId` for relocating shard. This change
    splits assertion per state in order to simplify and allow stricter invariants.
    idegtiarenko committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    5c217a0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f4c8b16 View commit details
    Browse the repository at this point in the history
  5. Introduce BytesReferenceIndexInput (elastic#93208)

    Similar to `ByteArrayIndexInput`, but for a general `BytesReference` to
    avoid having to copy the bytes into a contiguous array.
    DaveCTurner committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    3027d1b View commit details
    Browse the repository at this point in the history
  6. Simplify ThreadedActionListener construction (elastic#93184)

    - There's no real need for the caller's `Logger` just in case an impossible
      situation happens - we will get enough info from the log message.
    
    - Almost nobody uses the `forceExecution` feature, default it to
      `false`.
    
    - Accept an `ExecutorService` rather than requiring the whole
      `ThreadPool` only to look up the executor later on.
    DaveCTurner committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    416bfcb View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0ddbd25 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    dfbe642 View commit details
    Browse the repository at this point in the history
  9. Fix ReactiveStorageDeciderDecisionTests (elastic#93230)

    After elastic#93075 the first settings parameter in ClusterModule#createAllocationDeciders
    are expected to be the same settings that ClusterSettings contain,
    this was not the case for this test and some of the allocator deciders
    used the default config value instead of the one that the test needed.
    
    Closes elastic#93142
    fcofdez committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    b15098a View commit details
    Browse the repository at this point in the history
  10. Migrate indices package to TransportVersion (elastic#93077)

    This migrates org.elasticsearch.index and org.elasticsearch.indices to use TransportVersion
    thecoop committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    6071c76 View commit details
    Browse the repository at this point in the history
  11. enhancement: boolean field to support ignore_malformed (elastic#90122)

    * enhancement: boolean field to support ignore_malformed
    
    * fix: changes in current builder for BooleanFieldMappers within tests files.
    
    * Updating documentation
    
    Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
    Co-authored-by: Amy Jonsson <amy.jonsson@elastic.co>
    3 people committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    edcdc43 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    26c0a35 View commit details
    Browse the repository at this point in the history
  13. Fix test testMultiKnnClauses (elastic#93047)

    The test uses random vectors, consequently it is possible that vector_1 values are much closer than vector_2 values. Increasing boost to ensure order.
    benwtrent committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    43c8806 View commit details
    Browse the repository at this point in the history
  14. Minor Adjustments to make SharedBlobCacheService more generic (elasti…

    …c#93234)
    
    Some naming adjustments, the ability to set up the cache on a non-frozen
    search node and a small API adjustment that makes it so a `ThreadPool`
    is not a dependency for using the cache.
    original-brownbear committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    fa52364 View commit details
    Browse the repository at this point in the history
  15. Revert "enhancement: boolean field to support ignore_malformed (elast…

    …ic#90122)"
    
    This was merged in error without a full CI run, and has some issues.
    
    This reverts commit edcdc43.
    This reverts commit 26c0a35.
    DaveCTurner committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    ce736dd View commit details
    Browse the repository at this point in the history
  16. [Transform] trigger state persistence based on time (elastic#93221)

    With this change state persistence gets triggered based on time instead of a counter. This applies only to transforms
    during indexing e.g. a batch transform, it doesn't affect other reasons to persist state, e.g. after a checkpoint or a
    state change triggered by an API call. The reduction of state persistence triggers transform reduces overhead. State
    persistence gets triggered every 60s.
    Hendrik Muhs committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    7721377 View commit details
    Browse the repository at this point in the history
  17. Migrate VersionedWriteable & NamedDiff to TransportVersion (elastic#9…

    …3076)
    
    InferenceConfig is kept on Version, as that existed before VersionedNamedWriteable came along
    thecoop committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    bef85c6 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    48f9609 View commit details
    Browse the repository at this point in the history
  19. Add support for closed unpromotable shards (elastic#93240)

    Today it doesn't work to close an index which holds unpromotable shards.
    This commit fixes that.
    DaveCTurner committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    aec8fcb View commit details
    Browse the repository at this point in the history
  20. Adjust validation to allow custom password hash to be provided (elast…

    …ic#93163)
    
    This commit adjusts validation to allow custom password hash
    to be provided when executing change user password transport action.
    
    This change relates to elastic#92871, which introduced the original changes
    but somehow, the validation on the transport action was missed to be
    refactored as well.
    slobodanadamovic committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    7122e12 View commit details
    Browse the repository at this point in the history
  21. Enable Panama-based mmap directory by default (elastic#93232)

    When we upgraded to lucene 9.5 (snapshot) with elastic#92957 we initially disable panama-based
    mmap directory through a system property. With this commit we remove the system property
    and enable java 19 memory segments by default (based on apache/lucene#12033)
    javanna committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    a54bc1b View commit details
    Browse the repository at this point in the history
  22. Fix geo ip database file leak when processing IP arrays (elastic#93177)

    This PR moves the postLookup call out of the lookup methods in order to correctly decrement 
    the instance counter a single time at the end of the processor call.
    jbaiera committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    14e7096 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    4a2df16 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2023

  1. Configuration menu
    Copy the full SHA
    ad63465 View commit details
    Browse the repository at this point in the history
  2. Fix SearchableSnapshotsCanMatchOnCoordinatorIntegTests (elastic#93245)

    Add enough documents to the searchable snapshot backing index so
    all shards have enough data files to be blocked during recovery.
    
    Closes elastic#91450
    fcofdez committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    12141ab View commit details
    Browse the repository at this point in the history
  3. Migrate VersionedWriteable & NamedDiff to TransportVersion take 2 (el…

    …astic#93242)
    
    Re-apply "Migrate VersionedWriteable & NamedDiff to TransportVersion (elastic#93076)"
    
    This reverts commit 48f9609.
    thecoop committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    c513b2b View commit details
    Browse the repository at this point in the history
  4. TransportListTaskAction: wait for tasks to finish asynchronously (ela…

    …stic#90977)
    
    Instead of synchronously blocking a thread in the management pool, add a listener on removed tasks and calls nodeOperation after all matched tasks have been removed. Also add a scheduled tasks to bail out after the specified wait timeout if the tasks haven't been finished.
    
    Fixes elastic#89564, elastic#90988
    arteam committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    6813012 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ce7ed7b View commit details
    Browse the repository at this point in the history
  6. Fix compilation issue in TransportListTasksAction (elastic#93261)

    Use the new constructor signature for ThreadedActionListener from elastic#93184
    arteam committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    9f0ca22 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4b20684 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e971ebe View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    75f7a53 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6d009a3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    cfb2e4d View commit details
    Browse the repository at this point in the history
  12. Migrate server/org.elasticsearch.cluster package to use TransportVers…

    …ion (elastic#93199)
    
    conditional usages of StreamInput/StreamOutput getVersion are refactored to use
    TransportVersion instead of Version
    pgomulka committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    81349d5 View commit details
    Browse the repository at this point in the history
  13. [DOCS] Clarify capabilities of built-in editor role (elastic#93260)

    The built-in `editor` role allows "all" access to all Kibana
    features, but only read access to data indices. This doesn't
    work well for functionality that spans Kibana and Elasticsearch
    and allows the user to choose their own results index, like
    ML data frame analytics.
    
    This change adjusts the notes on the `editor` role to make clear
    that in this case an additional role must be granted to give the
    necessary access on the data index that the results will be
    written to.
    droberts195 committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    a1c700d View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    6f5ca4b View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    57e9e40 View commit details
    Browse the repository at this point in the history
  16. Refactor Security code to use TransportVersion (elastic#93089)

    With the introduction of TransportVersion we want to use this object in transport protocol related code (usages of StreamInput, StreamOutput).
    Also with serverless release being more frequent then on-prem the code changes that relied on Node's Version to perform a conditional logic are also refactored to use TransportVersion which has higher granularity
    pgomulka committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    da01691 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    35e0c4d View commit details
    Browse the repository at this point in the history
  18. Upgrade antlr to 4.11.1 for ql, eql and sql (elastic#93238)

    We recently upgraded the antlr version that painless uses to 4.11.1.
    Lucene 9.5 is on the same version.
    This commit updates ql, eql and sql to the same version
    javanna committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    74742b6 View commit details
    Browse the repository at this point in the history
  19. Refactor GeoIp tests to use database service directly (elastic#93281)

    Replaces the usage of the GeoIp processor factory with the DatabaseNodeService when 
    getting all databases in the tests.
    jbaiera committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    2f46201 View commit details
    Browse the repository at this point in the history
  20. Document structure of transport handshake (elastic#93280)

    Adds a comment to `TransportHandshaker` laying out the details of a
    transport handshake.
    DaveCTurner committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    f786997 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    03769d6 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    98015d1 View commit details
    Browse the repository at this point in the history
  23. Remove Java preview features CI job

    With the merging of apache/lucene#12033 this
    testing is no longer necessary as Lucene no longer requires the
    --enable-preview flag for enabling the project panama mmap
    implementation.
    mark-vieira committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    3864d70 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2023

  1. Update Example plugins after Version->TransportVersion refactor (elas…

    …tic#93293)
    
    Plugins which indirectly implement VersionedNamedWriteable should return
    TransportVersion
    
    relates elastic#93242
    pgomulka committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    c87b7bc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1819a25 View commit details
    Browse the repository at this point in the history
  3. Fix domain erasure in realm rewriting (elastic#93276)

    This PR fixes an issue in authentication rewriting: previously
    maybeRewriteRealmRef did not remove domains, even when this was
    expected. This has very limited customer impact, since the enclosing
    maybeRewriteForOlderVersion method is called in conjunction with
    Authentication.encode() in most cases. Authentication.encode() calls
    writeTo, which in turn omits domains as necessary, based on a version
    check.
    n1v0lg committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    9876977 View commit details
    Browse the repository at this point in the history
  4. Assert one-shot completion in IndexShardOperationPermits (elastic#93290)

    It's vital that listeners passed to the `IndexShardOperationPermits` are
    not completed more than once, because otherwise the caller might not
    release the returned `Releasable` which would leak a permit. It looks
    like this is the case today, but one of its callers has some explicit
    protection against such a leak. This commit adds some assertions to
    demonstrate that this protection is not required.
    DaveCTurner committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    ade4891 View commit details
    Browse the repository at this point in the history
  5. [ML] improve frequent items runtime (elastic#93255)

    don't re-create doc values object for every value. This change fixes a
    conceptual problem which caused significant overhead.
    Hendrik Muhs committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    f35e18e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    217cbfa View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9cce7f1 View commit details
    Browse the repository at this point in the history
  8. Fix DataStreamIT#testWriteLoadAndAvgShardSizeIsStoredInABestEffort (e…

    …lastic#93297)
    
    Ensure that all shards are started before making progress, this
    avoids issues when we expect one of the shards to be active but
    it isn't.
    
    Closes elastic#91967
    fcofdez committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    9c0c508 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    05c7753 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    30172a0 View commit details
    Browse the repository at this point in the history
  11. Update frequent-items-aggregation.asciidoc (elastic#93287)

    Fix type togeher > together
    GlenRSmith committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    81d9cbe View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0993a36 View commit details
    Browse the repository at this point in the history
  13. Add monitoring mappings for es ingest metricset (elastic#92950)

    * Add monitoring mappings for es ingest metricset
    
    * Update mappings
    
    * Fix type for type and type_tag
    
    * Fix JSON and update template version
    
    * Update docs/changelog/92950.yaml
    joshdover committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    77318fe View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    86520bf View commit details
    Browse the repository at this point in the history
  15. [Fleet] Update CODEOWNERS for Fleet/Agent resources (elastic#91670)

    Point Fleet/Agent ES files to Fleet team instead of Agent Control Plane team.
    
    Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
    kpollich and joshdover committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    405328f View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    89475ee View commit details
    Browse the repository at this point in the history
  17. [ML] Fix data counts race condition when starting a datafeed (elastic…

    …#93324)
    
    When a datafeed starts up it looks at the job's data counts to decide
    where to pick up from where a previous invocation finished. Previously
    the datafeed was always getting the data counts from the index. In the
    case where a datafeed has been stopped and restarted while its
    corresponding job was continually opened this is incorrect. In this case
    the data counts need to be obtained from the running job. (In the case
    where the job was closed and reopened while the datafeed was stopped
    this does not matter, as closing the job will have persisted the
    up-to-date data counts.)
    
    This bug has always existed, yet is made much more likely to cause a
    noticeable discrepancy by the changes made in elastic#93000.
    
    Fixes elastic#93298
    droberts195 committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    2311bbf View commit details
    Browse the repository at this point in the history
  18. Fix custom heuristic example plugin unit test (elastic#93326)

    This is a follow up to elastic#93229 to fix one of our example plugin tests.
    mark-vieira committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    81645e1 View commit details
    Browse the repository at this point in the history
  19. Remove more references to KeyStoreWrapper (elastic#92378)

    This change uses a new utility class that
    abstracts the construction of secure settings,
    into environment dependent version. KeyStoreWrapper
    is just one implementation.
    grcevski committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    48bdb08 View commit details
    Browse the repository at this point in the history
  20. Remove length check for source-only keyword fields (elastic#93299)

    Since 8.2 we check keyword fields length against Lucenes MAX_TERM_LENGTH size
    before indexing to prevent later errors and potential need for rollbacks (see
    83738). This, however, currently also triggers even if the field is defined as
    not-indexed, not stored and without doc-values (effectively a source-only
    field). In this case, we don't need to apply the length check, making storing
    larger source-only keyword fields possible as before.
    
    Closes elastic#93046
    cbuescher committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    bd79620 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    ae07371 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2023

  1. Fix testSearchRouting (elastic#93319)

    In some unlucky situations the test sets a prefference for shard 1
    and a routing that points to a completely different shard.
    Updating the test so it is setting only one of them at the time.
    idegtiarenko committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    3eed4f4 View commit details
    Browse the repository at this point in the history
  2. Report committed cluster UUID after reboot (elastic#93128)

    Today when a node reboots it reports its cluster UUID as `_na_` until it
    rejoins the cluster. However, if it was previously a member of a cluster
    then it knows its cluster UUID from its on-disk metadata, so with this
    commit we report the correct cluster UUID right away.
    DaveCTurner committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    4e66bfb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    abbc78d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    130378b View commit details
    Browse the repository at this point in the history
  5. Skip duplicate checks on segments that don't document's timestamp (el…

    …astic#92456)
    
    Keep track of min and max timestamp value per
    PerThreadIDVersionAndSeqNoLookup instance. When loading docid and
    version during ingestion, skip PerThreadIDVersionAndSeqNoLookup
    instances, that have min/max timestamp that don't overlap with
    document's timestamp.
    martijnvg committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    8d42c57 View commit details
    Browse the repository at this point in the history
  6. Prefer Strings#format over String#format(Locale, ... (elastic#93336)

    Today we forbid the trappy locale-free `String#format` and
    `String#formatted` and suggest to use the `String#format` override which
    accepts an explicit `Locale`. These days a better alternative is
    `Strings#format`, so this commit adjusts the message that
    `forbidddenApis` returns to reflect that.
    DaveCTurner committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    fddc2ab View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7b9df00 View commit details
    Browse the repository at this point in the history
  8. [DOCS] Migration guide: link to What's new page for the same version (e…

    …lastic#92823)
    
    Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
    abdonpijpelink and elasticmachine committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    8d60562 View commit details
    Browse the repository at this point in the history
  9. Note in CONTRIBUTING.md re. unsupported platforms (elastic#93343)

    We have an internal policy about contributions which target unsupported
    platforms but this is not spelled out in the contributing guide. This
    commit adds the missing info.
    
    Relates elastic#93341
    DaveCTurner committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    0cfb795 View commit details
    Browse the repository at this point in the history
  10. Mute o.e.s.c.ServerCliTests (elastic#93349)

    Relates: elastic#93335
    
    Skipping via assumeFalse since the failures only occur in FIPS mode.
    n1v0lg committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    2a6e521 View commit details
    Browse the repository at this point in the history
  11. Remove jackson override and upgrade to jackson to 2.14.2 (elastic#93342)

    before the jackson 2.14.2 elasticserach had to override the jackson locally to avoid a bug when filtering empty arrays. elastic#92984
    This commit reverts the local override and upgrades jackson to 2.14.2 which contain the fix to the bug
    pgomulka committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    d065d4b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    f193392 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    37c510c View commit details
    Browse the repository at this point in the history
  14. Authentication model changes for remote access (elastic#93151)

    This PR implements the necessary changes to the Authentication class,
    to support remote access authentication under the new remote cluster
    security model. Upon successful authentication, a new authentication
    instance will be constructed by the fulfilling cluster which combines
    information from the remote access API key used and the user
    authentication and role info sent by the querying cluster with a cross
    cluster request.
    
    Remote access authentication is modeled in way that exposes (and
    assumes) that the underlying authentication method is an API key; for
    example, it includes the metadata associated with API keys in its
    metadata directly, re-using existing metadata field keys. I chose this
    approach instead of trying to generalize away from API keys because
    there are no medium-term plans to support any other authentication
    forms for remote access; generalizing would have made the change more
    complex.
    
    This change is stand-alone and not wired up to active code flows yet. A
    proof of concept in elastic#92089 highlights how the model change in this PR
    fits into the broader context of the fulfilling cluster processing
    cross cluster requests.
    n1v0lg committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    63ca708 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    3e3b271 View commit details
    Browse the repository at this point in the history
  16. Allowed indices matcher supports nested limited roles (elastic#93306)

    This PR modifies the allowedIndicesMatcher method to work with nested
    LimitedRole instances (i.e., limited roles that have a base role or
    limited by role that is itself a limited role). Prior to this fix, the
    method would throw an unsupported operation exception. This change is
    necessary to support remote access roles under the new remote cluster
    security model.
    n1v0lg committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    b930e81 View commit details
    Browse the repository at this point in the history
  17. Fix some possible NPEs in strange JVM configs (elastic#93352)

    `JvmErgonomics` requires various JVM options to be present, but if they
    are omitted then we throw a `NullPointerException` which looks to the
    user like an ES bug. They would have to be doing something a little odd
    to get into this state, but nonetheless it is possible to hit these
    NPEs. We don't need to handle such a config gracefully, but we should
    clarify why Elasticsearch won't start to help the user fix their config.
    DaveCTurner committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    2cf70ae View commit details
    Browse the repository at this point in the history
  18. Download the geoip databases only when needed (elastic#92335)

    This commit changes the geoip downloader so that we only download the geoip databases if you
    have at least one geoip processor in your cluster, or when you add a new geoip processor (or if
    `ingest.geoip.downloader.eager.download` is explicitly set to true).
    masseyke committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    13b7190 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    2a7098a View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    b4484cd View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    feb1f51 View commit details
    Browse the repository at this point in the history
  22. Fix MapperSizeClientYamlTestSuiteIT when FIPS is enabled (elastic#93357)

    The issue with this test failure is actually that we were silently
    failing to install the plugin under test into the cluster. The root
    cause here was the FIPS security policy file was not copied into cluster
    config directory before we attempting to run the plugin installer. Since
    we pass the FIPS JVM arguments to all CLI tools as well this caused
    plugin installation to fail. We now ensure that these files are copied
    before we attempt to run _any_ ES tools.
    
    Closes elastic#93303
    mark-vieira committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    91d111e View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2023

  1. Add ActionListener#run (elastic#93338)

    It's pretty common to run a block of code in a `try ... catch` block
    that just passes exceptions off to a listener's `onFailure` method. This
    commit adds a small utility to encapsulate this, enabling some
    one-liners.
    DaveCTurner committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    fe50f38 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bb50a65 View commit details
    Browse the repository at this point in the history
  3. Unpromotables skip replication and peer recovery (elastic#93210)

    For skipping replication:
    * ReplicationTracker and Group filter shards that are promotable to primary
    * Remove unpromotable shards from in sync allocations in metadata
    * There is a new Refresh action for unpromotable replica shards
    
    Fixes ES-4861
    
    For skipping peer recovery:
    * Unpromotable shards pass directly to STARTED skipping some intermediate peer recovery stages and messages
    
    Fixes ES-5257
    kingherc committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    cb966ef View commit details
    Browse the repository at this point in the history
  4. Add a section about token-based authentication (elastic#93344)

    * Add a section about token-based authentication
    
    It took me a considerable time to figure out the syntax for a token-based authentication, and I said why not add it to the documentation
    
    * Update x-pack/docs/en/watcher/input/http.asciidoc
    
    * Update x-pack/docs/en/watcher/input/http.asciidoc
    
    ---------
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    mjrlgue and abdonpijpelink committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    89467ea View commit details
    Browse the repository at this point in the history
  5. Build role for remote access authentication (elastic#93316)

    This PR adds support for building roles for remote_access
    authentication instances, under the new remote cluster security model.
    
    This change is stand-alone and not wired up to active code flows yet. A
    proof of concept in elastic#92089 highlights how the model change in this PR
    fits into the broader context of the fulfilling cluster processing
    cross cluster requests.
    n1v0lg committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    fd4c617 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e6aa39b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    da387b4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f086dd1 View commit details
    Browse the repository at this point in the history
  9. Update rollup dependencies (elastic#93369)

    Change ilm and data streams dependencies to be test dependencies.
    martijnvg committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    610a3e4 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4e507ba View commit details
    Browse the repository at this point in the history
  11. Set forced_refresh to true when using stateless refresh work-around (e…

    …lastic#93383)
    
    In elastic#93160, we never set the forced_refresh flag in the response. With
    this change, the bulk response now correctly reflects what happened. It
    also unblocks a bunch of YAML tests for Stateless.
    
    Relates ES-5292
    pxsalehi committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    cea92ff View commit details
    Browse the repository at this point in the history
  12. Cache the creation of parsers within DateProcessor (elastic#92880)

    cache potentially duped values in the `DateProcessor`, avoiding the creation of disposable objects during the different executions
    HiDAl committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    7e0ed53 View commit details
    Browse the repository at this point in the history
  13. Add ignore_missing_component_templates config option (elastic#92436)

    This change introduces the configuration option `ignore_missing_component_templates` as discussed in elastic#92426 The implementation [option 6](elastic#92426 (comment)) was picked with a slight adjustment meaning no patterns are allowed.
    
    ## Implementation
    
    During the creation of an index template, the list of component templates is checked if all component templates exist. This check is extended to skip any component templates which are listed under `ignore_missing_component_templates`. An index template that skips the check for the component template `logs-foo@custom` looks as following:
    
    
    ```
    PUT _index_template/logs-foo
    {
      "index_patterns": ["logs-foo-*"],
      "data_stream": { },
      "composed_of": ["logs-foo@package", "logs-foo@custom"],
      "ignore_missing_component_templates": ["logs-foo@custom"],
      "priority": 500
    }
    ```
    
    The component template `logs-foo@package` has to exist before creation. It can be created with:
    
    ```
    PUT _component_template/logs-foo@custom
    {
      "template": {
        "mappings": {
          "properties": {
            "host.ip": {
              "type": "ip"
            }
          }
        }
      }
    }
    ```
    
    ## Testing
    
    For manual testing, different scenarios can be tested. To simplify testing, the commands from `.http` file are added. Before each test run, a clean cluster is expected.
    
    ### New behaviour, missing component template
    
    With the new config option, it must be possible to create an index template with a missing component templates without getting an error:
    
    ```
    ### Add logs-foo@package component template
    
    PUT http://localhost:9200/
        _component_template/logs-foo@package
    Authorization: Basic elastic password
    Content-Type: application/json
    
    {
      "template": {
        "mappings": {
          "properties": {
            "host.name": {
              "type": "keyword"
            }
          }
        }
      }
    }
    
    ### Add logs-foo index template
    
    PUT http://localhost:9200/
        _index_template/logs-foo
    Authorization: Basic elastic password
    Content-Type: application/json
    
    {
      "index_patterns": ["logs-foo-*"],
      "data_stream": { },
      "composed_of": ["logs-foo@package", "logs-foo@custom"],
      "ignore_missing_component_templates": ["logs-foo@custom"],
      "priority": 500
    }
    
    ### Create data stream
    
    PUT http://localhost:9200/
        _data_stream/logs-foo-bar
    Authorization: Basic elastic password
    Content-Type: application/json
    
    ### Check if mappings exist
    
    GET http://localhost:9200/
        logs-foo-bar
    Authorization: Basic elastic password
    Content-Type: application/json
    ```
    
    It is checked if all templates could be created and data stream mappings are correct.
    
    ### Old behaviour, with all component templates
    
    In the following, a component template is made optional but it already exists. It is checked, that it will show up in the mappings:
    
    ```
    ### Add logs-foo@package component template
    
    PUT http://localhost:9200/
        _component_template/logs-foo@package
    Authorization: Basic elastic password
    Content-Type: application/json
    
    {
      "template": {
        "mappings": {
          "properties": {
            "host.name": {
              "type": "keyword"
            }
          }
        }
      }
    }
    
    ### Add logs-foo@custom component template
    
    PUT http://localhost:9200/
        _component_template/logs-foo@custom
    Authorization: Basic elastic password
    Content-Type: application/json
    
    {
      "template": {
        "mappings": {
          "properties": {
            "host.ip": {
              "type": "ip"
            }
          }
        }
      }
    }
    
    ### Add logs-foo index template
    
    PUT http://localhost:9200/
        _index_template/logs-foo
    Authorization: Basic elastic password
    Content-Type: application/json
    
    {
      "index_patterns": ["logs-foo-*"],
      "data_stream": { },
      "composed_of": ["logs-foo@package", "logs-foo@custom"],
      "ignore_missing_component_templates": ["logs-foo@custom"],
      "priority": 500
    }
    
    ### Create data stream
    
    PUT http://localhost:9200/
        _data_stream/logs-foo-bar
    Authorization: Basic elastic password
    Content-Type: application/json
    
    ### Check if mappings exist
    
    GET http://localhost:9200/
        logs-foo-bar
    Authorization: Basic elastic password
    Content-Type: application/json
    ```
    
    ### Check old behaviour
    
    Ensure, that the old behaviour still exists when a component template is used that is not part of `ignore_missing_component_templates`: 
    
    ```
    ### Add logs-foo index template
    
    PUT http://localhost:9200/
        _index_template/logs-foo
    Authorization: Basic elastic password
    Content-Type: application/json
    
    {
      "index_patterns": ["logs-foo-*"],
      "data_stream": { },
      "composed_of": ["logs-foo@package", "logs-foo@custom"],
      "ignore_missing_component_templates": ["logs-foo@custom"],
      "priority": 500
    }
    ```
    
    Co-authored-by: Lee Hinman <dakrone@users.noreply.github.com>
    ruflin and dakrone committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    9f4d7fa View commit details
    Browse the repository at this point in the history
  14. Upgrade to Lucene 9.5.0 (elastic#93385)

    We have recently upgraded to a Lucene 9.5.0 snapshot. With this commit we upgrade to the final 9.5.0 release.
    
    Main changes are around the float vector field, query and values API.
    javanna committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    200e061 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    37f195e View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    013b2e5 View commit details
    Browse the repository at this point in the history
  17. Allow null to be provided for dense_vector field values (elastic#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: elastic#70470
    benwtrent committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    4871b5a View commit details
    Browse the repository at this point in the history
  18. Switch to Lucene's new IntField/LongField/FloatField/DoubleField. (el…

    …astic#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.
    jpountz committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    c21ee47 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2023

  1. Configuration menu
    Copy the full SHA
    d93382b View commit details
    Browse the repository at this point in the history
  2. Fix error message when SSL key is configured without a cert (elastic#…

    …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).
    ywangd committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    67d4092 View commit details
    Browse the repository at this point in the history
  3. Add missing counter field support to some aggregations. (elastic#93311)

    Add missing counter field support to min, max and top_metrics aggregations.
    martijnvg committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    b6fa6d8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    926fbfa View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    99018d9 View commit details
    Browse the repository at this point in the history
  6. [DOCS] [main] Add release notes for 8.6.1 (elastic#93236) (elastic#93404

    )
    
    Forward ports the release notes from elastic#93236
    arteam committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    58c1bcc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    062981c View commit details
    Browse the repository at this point in the history
  8. improve code documentation of ValueSource regarding (global, segment)…

    … ordinals (elastic#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.
    Hendrik Muhs committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    eb43e5b View commit details
    Browse the repository at this point in the history
  9. Nested path info shouldn't be added during copy_to (elastic#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 elastic#93117
    romseygeek committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    d62fe29 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    bc7a31f View commit details
    Browse the repository at this point in the history
  11. [ML] improve frequent_items performance by using global ordinals (ela…

    …stic#93304)
    
    implement global ordinals for frequent items and add execution_hint to switch between the old (map) based lookup and global ordinals
    Hendrik Muhs committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    51e0a3b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    9aeec50 View commit details
    Browse the repository at this point in the history
  13. FIxed the doc URL for rest API update trained model deployment (elast…

    …ic#93072)
    
    As titled, the previous URL was 404.
    ezimuel committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    56340ce View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7c7ee0e View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    5b67fd2 View commit details
    Browse the repository at this point in the history
  16. Merge branch 'align_jackson_versions' of github.com:jakelandis/elasti…

    …csearch into jakelandis-align_jackson_versions
    pgomulka committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    282038d View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    d65e075 View commit details
    Browse the repository at this point in the history
  18. Fix unexpected in-flight requests log message (elastic#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.
    Tim-Brooks committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    3ffa22e View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    c92f3f6 View commit details
    Browse the repository at this point in the history
  20. Do not refresh all indices in TransportBulkAction (elastic#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 elastic#93160
    tlrx committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    2700dc5 View commit details
    Browse the repository at this point in the history
  21. update 2.14.0 -> 2.14.2

    pgomulka committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    3ad0ac1 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    5cbbf5c View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    8e44603 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    93ecc4d View commit details
    Browse the repository at this point in the history
  25. Add new query_vector_builder option to knn search clause (elastic#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.
    benwtrent committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    7f9f3bc View commit details
    Browse the repository at this point in the history
  26. Add term query support to rank_features mapped field (elastic#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.
    benwtrent committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    323a13a View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    820ba5a View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    9123346 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2023

  1. Support configuring SSL separately for remote access port (elastic#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.
    ywangd committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    190b617 View commit details
    Browse the repository at this point in the history
  2. Enforce synthetic source for time series indices (elastic#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 elastic#92319
    martijnvg committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    9babcc9 View commit details
    Browse the repository at this point in the history
  3. [ML] rename frequent_items to frequent_item_sets and make it GA (elas…

    …tic#93421)
    
    rename frequent_items to frequent_item_sets and remove the experimental batch
    Hendrik Muhs committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    cf5ea0b View commit details
    Browse the repository at this point in the history
  4. verification metadata

    pgomulka committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    75b074a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fc20026 View commit details
    Browse the repository at this point in the history
  6. Fix PrioritizedThrottledTaskRunnerTests (elastic#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 elastic#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 elastic#92910
    Closes elastic#92747
    DaveCTurner committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    2ef63a4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    221c935 View commit details
    Browse the repository at this point in the history
  8. Misc improvements to TBbNA tests (elastic#93435)

    Similar to elastic#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.
    DaveCTurner committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    b0c380d View commit details
    Browse the repository at this point in the history
  9. Fix context leak in list tasks API (elastic#93431)

    In elastic#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 elastic#93428
    DaveCTurner committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    8d44c9a View commit details
    Browse the repository at this point in the history
  10. fix maxind version

    pgomulka committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    8468c3b View commit details
    Browse the repository at this point in the history
  11. Remove MonitoringWithWatcherRestIT.testThatLocalExporterAddsWatches

    We remove this test because it is flaky and the feature tested here is already tested by monitoring.
    gmarouli committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    ff60564 View commit details
    Browse the repository at this point in the history
  12. More investigation into 93271 (elastic#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.
    DaveCTurner committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    eb9eeae View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    f4b7335 View commit details
    Browse the repository at this point in the history
  14. Minor cleanups FrozenIndexInput (elastic#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.
    original-brownbear committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    03f8ea5 View commit details
    Browse the repository at this point in the history
  15. Make password long enough for FIPS mode (elastic#93450)

    In FIPS mode, passwords require a minimal length. This PR adjusts a
    test to adhere to this.
    
    Fixes: elastic#93449
    n1v0lg committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    a0343e4 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    513dc2f View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    f8fc299 View commit details
    Browse the repository at this point in the history
  18. Describe delete-snapshot tasks (elastic#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.
    DaveCTurner committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    7adeb48 View commit details
    Browse the repository at this point in the history
  19. Capture thread dump on ShardLockObtainFailedException (elastic#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 elastic#93226
    DaveCTurner committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    4c68382 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    467b859 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    6971d2c View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    bc05481 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    94d16a2 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    a71210c View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    f60401a View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    9229011 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    915b475 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    f2b02ae View commit details
    Browse the repository at this point in the history
  29. Expose a couple of primitive stream wrappers over the underlying test…

    … random instance (elastic#93479)
    
    Expose a couple of primitive stream wrappers over the underlying test random instance. These are not yet used, but are useful in many circumstances.
    ChrisHegarty committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    7f7cf30 View commit details
    Browse the repository at this point in the history
  30. Make GeoIpProcessor backing database instance pluggable. (elastic#93285)

    Introduces two new interfaces: GeoIpDatabase and GeoIpDatabaseProvider. GeoIpDatabaseProvider 
    acts as a generic factory interface for GeoIpDatabase instances. This allows for specifying how 
    database instances are obtained to the processor. GeoIpDatabase encompasses the API footprint for
    performing GeoIp lookups against a maxmind database.
    
    ---------
    
    Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
    jbaiera and elasticmachine committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    c143caf View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    43d9a6a View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    b2d9a4e View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    925a6dc View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2023

  1. Support downsampling of histogram as labels (elastic#93445)

    The first GA version of downsampling supports numeric metrics and
    does not include histograms. Support for downsampling of histogram
    fields as metrics will come in future. In the meanwhile we need to make
    sure that histograms are correctly handled as labels considering that we
    can't use histogram fields as dimensions nor as metrics. This means that
    we treat histograms as any other label, which is, we propagate the latest
    (most recent timestamp-wise) value. Note that we need this even after
    supporting histograms as metrics, in case the time_series_metric is
    not provided for a histogram field.
    
    Histogram fields do not have FormattedDocValues. Here we override the
    getFormattedValues for the histogram field data in such a way to
    be able to extract the doc values and process them.
    salvatore-campagna committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    6f7eeb0 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2023

  1. Improve the false positive rate of the bloom filter by setting 7 hash…

    … functions (elastic#93283)
    
    Co-authored-by: Adrien Grand <jpountz@gmail.com>
    thomasdullien and jpountz committed Feb 4, 2023
    Configuration menu
    Copy the full SHA
    14cca12 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2023

  1. Use cert-pinning in test cluster wait-for-health (elastic#92657)

    The previous model relied on treating the server's certificate
    configuration as a trust anchor. This isn't guaranteed to work,
    which lead to needing to support "certificate_authorities" as an
    alternative, which in turn polluted the node's config with settings
    that only existed to enable tests to run.
    
    The new model ties the "wait-for-health" HTTP client to the leaf
    certificates themselves. This means that it will always connect to a
    node that has the exact certificates it expects, and doesn't rely on
    knowing the issuer of the node's certificate.
    tvernum committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    6e402ad View commit details
    Browse the repository at this point in the history
  2. Use passed-in configuration for SslChannelInitializer (elastic#93362)

    This PR fixes a trivial bug in getSslChannelInitializer where the
    passed-in configuration is ignored and the initializer is always
    instantiated with the default configuration.
    
    This is a trivial bug because the method is overridden by its subclass
    and hence is *not* used at all.
    ywangd committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    a722fc5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ea90f92 View commit details
    Browse the repository at this point in the history
  4. Allow to disable addMockFSIndexStore test plugin (elastic#93473)

    The MockFSIndexStore randomizes the store type index 
    settings in tests. It also throws random I/O exceptions 
    and checks the index when shards are closed.
    
    This behavior is sometimes unwanted in tests, but today 
    tests cannot change the default random behavior. This 
    change allows to disable this test plugin on specific tests.
    tlrx committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    d3d1bbc View commit details
    Browse the repository at this point in the history
  5. More detailed logging for snapshot-based recovery (elastic#93469)

    The logic for planning a snapshot-based recovery is a little intricate
    and lacks much logging, making it hard to determine the reason why a
    snapshot-based recovery might not occur in production. This commit adds
    some extra logging showing details of the branches that ES takes.
    DaveCTurner committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    1fb3a1b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    acece61 View commit details
    Browse the repository at this point in the history
  7. Extract ThrottledTaskRunner (elastic#93436)

    Generalizes `PrioritizedThrottledTaskRunner` slightly:
    
    - The throttling behaviour is also useful for tasks which do not
    complete synchronously. The new `ThrottledTaskRunner` passes a
    `Releasable` to each task, which until released will prevent spawning
    further tasks.
    
    - The only part that needs the tasks to be `Comparable<>` is the queue.
    Letting the caller specify the queue means that we can also use the
    throttling without the prioritisation.
    DaveCTurner committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    e837ff7 View commit details
    Browse the repository at this point in the history
  8. Nicer buffer handling (elastic#93491)

    Some optimisations that I found when reusing searchable snapshot code elsewhere:
    * Add an efficient input stream -> byte buffer path that avoids allocations + copies for heap buffers, this is non-trivial in its effects IMO
      * Also at least avoid allocations and use existing thread-local buffer when doing input stream -> direct bb
      * move `readFully` to lower level streams class to enable this
    * Use same thread local direct byte buffer for frozen and caching index input instead of constantly allocating new heap buffers and writing those to disk inefficiently
    original-brownbear committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    f2760c6 View commit details
    Browse the repository at this point in the history
  9. [ML] Remove semantic_search endpoint (elastic#93492)

    Instead of a separate endpoint the functionality will be built
    into _search.
    droberts195 committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    927e165 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c08c16e View commit details
    Browse the repository at this point in the history
  11. Remove shortcutTotalHitCount optimization (elastic#89047)

    Our TopDocsCollectorContext has an optimization to try and avoid counting total hit count for queries like match all docs, term query and field exists query, relying on the statistics from each segment instead. This optimization has been recently streamlined in lucene through the introduction of Weight#count and now leveraged directly by TotalHitCountCollector in lucene with https://issues.apache.org/jira/browse/LUCENE-10620 , later complemented by elastic#88396 within Elasticsearch.
    
    With this, we can remove this internal optimization and instead leverage the default lucene behaviour which covers more queries and will be possibly expanded in the future as well.
    
    Closes elastic#81034
    javanna committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    283f8ac View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b5387e8 View commit details
    Browse the repository at this point in the history
  13. Decrease queue capacity in EnrichResiliencyTests to make it more resi…

    …lient (elastic#82719) (elastic#93506)
    
    Fixes [elastic#82719](elastic#82719)
    according to the recommendation in
    elastic#82719 (comment).
    
    > I think this failed in CI, because of slowness. The executes a bulk
    request with a number of index requests (50) and then assumes that some
    of these index requests failed, because enrich queue was at capacity.
    The queue capacity is set to 10. I think we should to set the queue size
    to an even smaller value, like 2. To make it likely to reach queue
    capacity when test execution is slow. >  > In the mentioned build
    failure, it took 12 seconds to run this test, while locally here it
    takes 707 ms.
    gmarouli committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    fc974cd View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    ab5ae88 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    afc24e1 View commit details
    Browse the repository at this point in the history
  16. Support geo-grid ingest processor (elastic#93370)

    * Support geo_grid ingest processor
    
    This processor can read geohash, geotile or geohex tile specifications
    and generate a bounding box or polygon describing the outside of those tiles.
    
    Examples are:
    
    * geohash: `u0`
    * geotile: `6/32/22`
    * geohex: `811fbffffffffff`
    
    Additional support is provided for grid hierarchies, like precision field,
    parent and child fields.
    
    * Replaced depth with precision in Rest Tests
    craigtaverner committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    b473d81 View commit details
    Browse the repository at this point in the history
  17. Unmute testThatLoadingWithNonExistingIndexWorks (elastic#93509)

    We are reevaluating old failures to see if they still happen. With this PR we close the test failure issue and we will re-open it if the same failure happens.
    gmarouli committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    d55a1c8 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    725da76 View commit details
    Browse the repository at this point in the history
  19. Speed up retrieval of data for flamegraphs (elastic#93448)

    With this commit we parallelize the retrieval of stacktraces via the
    `mget` API in the profiling plugin as experiments have shown that we can
    better utilize the available resources and thus decrease latency.
    Furthermore, we prepare the parallel retrieval of stackframes and
    executables using the same approach. Our experiments have not shown a clear
    indication of the optimal value for this setting, therefore we set the default
    value to `1` to effectively keep the prior behavior. Finally, we also
    introduce a setting that can be used to toggle the `realtime` (default kept as
    `true`) to allow for further experimentation with that flag.
    danielmitterdorfer committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    ccd4bfc View commit details
    Browse the repository at this point in the history
  20. Geo_grid ingest processor docs (elastic#93507)

    * Add docs for geo_grid ingest processor
    
    Adds docs for elastic#93370
    
    * Update docs/reference/ingest/processors/geo-grid.asciidoc
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    
    * Update docs/reference/ingest/processors/geo-grid.asciidoc
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    
    * Update docs/reference/ingest/processors/geo-grid.asciidoc
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    
    * Update docs/reference/ingest/processors/geo-grid.asciidoc
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    
    * Update docs/reference/ingest/processors/geo-grid.asciidoc
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    
    * Update docs/reference/ingest/processors/geo-grid.asciidoc
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    
    * Update docs/reference/ingest/processors/geo-grid.asciidoc
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    
    * Update docs/reference/ingest/processors/geo-grid.asciidoc
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    
    * Consistent GeoJSON case
    
    ---------
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    craigtaverner and abdonpijpelink committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    c18078e View commit details
    Browse the repository at this point in the history
  21. Document datehistogram with long offsets (elastic#93328)

    * Document datehistogram with long offsets
    
    When offsets are longer than calendar_intervals that are non-standard,
    like months which differ in length, then the usual rule of all buckets
    starting at the same day and time will no longer apply.
    
    This update attempts to explain this with examples.
    
    * Removed TEST-skip lines
    
    These don't seem to be parsable, even though they match the syntax
    described in the README.asciidoc
    
    * Added // TESTRESPONSE[skip:...] lines
    
    * Refined docs description and added more examples
    
    * Update docs/reference/aggregations/bucket/datehistogram-aggregation.asciidoc
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    
    * Update docs/reference/aggregations/bucket/datehistogram-aggregation.asciidoc
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    
    * Update docs/reference/aggregations/bucket/datehistogram-aggregation.asciidoc
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    
    * Update docs/reference/aggregations/bucket/datehistogram-aggregation.asciidoc
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    
    ---------
    
    Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
    craigtaverner and abdonpijpelink committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    f55d70a View commit details
    Browse the repository at this point in the history
  22. TransportGetTaskAction: Wait for the task asynchronously (elastic#93375)

    Wait for the requested task asynchronously in a similar fashion to TransportListTaskAction from elastic#90977
    
    See elastic#90977
    
    ---------
    
    Co-authored-by: David Turner <david.turner@elastic.co>
    arteam and DaveCTurner committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    7bd5613 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    a0ecb84 View commit details
    Browse the repository at this point in the history
  24. More useful toString on UpdateSettingsTask (elastic#93514)

    Today `UpdateSettingsTask#toString` is just the default which is not
    helpful when it appears in logs. This commit makes it include the
    affected indices and settings.
    DaveCTurner committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    b199470 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    c1b0bf6 View commit details
    Browse the repository at this point in the history
  26. Extract and dry more IO logic out of searchable snapshots module (ela…

    …stic#93512)
    
    Extracting more of the IO logic to the blob cache to make it reusable as well as dry it up a little.
    Small changes to the EOF exception message format in 2 cases in here that only remove redundant information.
    Also, noop in memory commit dir around for reuse elsewhere.
    original-brownbear committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    6498bd1 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    438f2f8 View commit details
    Browse the repository at this point in the history
  28. QL: Replace field type (elastic#93528)

    Adds a method to replace the field type on a field.
    nik9000 committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    ae48bb0 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    a849480 View commit details
    Browse the repository at this point in the history
  30. Add ability for Watcher's webhook actions to send additional header (e…

    …lastic#93426)
    
    This commit builds on elastic#92576 by adding the `xpack.notification.webhook.host_token_pairs` keystore setting to allow an additional token to be sent when Watcher performs a webhook request. This includes both the regular `webhook` action as well as the `email` action that uses an `attachment` parameter to a url (which internally uses a webhook to retrieve the attachment).
    
    These settings can both by reloaded by updating the keystore and using the reload secure settings API.
    
    - `xpack.notification.webhook.host_token_pairs` is a comma-separated list of `<host>:<port>=<token>` pairs for which the header should be sent. For example, if this contains `localhost:1234=token1,aoeu.com:9182=token2` then the token will only be added to the headers for webhook requests to the `localhost` and `aoeu.com` hosts on the 1234 and 9182 ports with tokens `token1` and `token2` respectively.
    
    Also added is a cluster setting (non-dynamic) — `xpack.notification.webhook.additional_token_enabled` that determines whether the token should be sent. It defaults to `false`.
    dakrone committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    5649ec2 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    ff870e1 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2023

  1. Ensure QC client connection use remote cluster SSL configuration (ela…

    …stic#93409)
    
    The existing transport profiles are mainly for server side usage. When a
    ES node acts as a client, e.g. query cluster, it always uses the default
    transport profile's SSL configuration. This means it is not possible to
    support separate client side SSL configuration for new remote cluster
    feature because it is underlyingly a transport profile.
    
    This PR updates the client channel initialization code to respect the
    special remote cluster profile so that the correct SSL configuration is
    applied. With the changes, it is now possible to have separate client
    SSL configurations for default transport and remote cluster.
    
    Note there is no behavior change for other transport profiles. They will
    keep using the default SSL configuration on the client side.
    ywangd committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    4e8a77e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fc78668 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3f47fe9 View commit details
    Browse the repository at this point in the history
  4. Add size parameter to time_series aggregation (elastic#93496)

    Adds an optional size parameter which caps the number of buckets in responses.
    After aggregation, caps the number of buckets we send back in responses and in reduction.
    tmgordeeva committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    5c38d4c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8ed470b View commit details
    Browse the repository at this point in the history
  6. Disable recovery monitor before recovery start (elastic#93543)

    We do nontrivial amounts of work before we start a peer recovery,
    particularly recovering from the local translog up to its global
    checkpoint. Today the recovery monitor is running during this time, and
    will (repeatedly) fail the recovery if it takes more than 30 minutes to
    complete. With this commit we disable the recovery monitor until this
    local process has completed.
    
    Closes elastic#93542
    DaveCTurner committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    6657c37 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d5e95a2 View commit details
    Browse the repository at this point in the history
  8. Add ShardRouting to DirectoryFactory interface (elastic#93511)

    Some Directory factories would benefit from knowing if a 
    Directory is created for a promotable and/or searchable 
    shard, as well as knowing the shard id. This change adds 
    the ShardRouting to the DirectoryFactory interface and 
    adjusts the DirectoryWrapper accordingly (until we have a 
    better way to override the default directory factory).
    tlrx committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    052a4f1 View commit details
    Browse the repository at this point in the history
  9. Disable recovery monitor before recovery start (elastic#93551)

    We do nontrivial amounts of work before we start a peer recovery,
    particularly recovering from the local translog up to its global
    checkpoint. Today the recovery monitor is running during this time, and
    will (repeatedly) fail the recovery if it takes more than 30 minutes to
    complete. With this commit we disable the recovery monitor until this
    local process has completed.
    
    Closes elastic#93542
    DaveCTurner committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    b8c9dc9 View commit details
    Browse the repository at this point in the history
  10. Small cleanup in PRTS#doRecovery (elastic#93549)

    Renames `failureHandler` to `cleanupOnly` and makes use of
    `ActionListener#run` where appropriate.
    DaveCTurner committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    134f51b View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ea17a19 View commit details
    Browse the repository at this point in the history
  12. Adjust number of replicas in YAML REST tests (elastic#93386)

    Some core yaml rest tests use an explicit number of replicas when creating indices. I suspect that this is often not needed and it prevents those tests to run in a 2 nodes (index & search) cluster.
    
    Most of the impacted tests are search related so I'll use the :Search/Search label.
    
    Relates ES-5253
    tlrx committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    a173001 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    f694d30 View commit details
    Browse the repository at this point in the history
  14. Simplify TransportBroadcastByNodeAction (elastic#93484)

    Similarly to elastic#92987, recent improvements to the primitives for writing
    async code (particularly elastic#92452 and elastic#92620) mean that we can enormously
    simplify `TransportBroadcastByNodeAction`. In particular, we can avoid
    accumulating an intermediate array of responses for later processing in
    favour of just accumulating the successes and failures into their final
    separate lists. We also no longer need to use a separate
    `NodesResponseTracker` to discard responses on cancellation. Finally, we
    can now discard shard-level responses more promptly on cancellation.
    DaveCTurner committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    f6eb279 View commit details
    Browse the repository at this point in the history
  15. Clean up & streamline RestIndicesAction (elastic#93437)

    - No need to wait for the get-settings call to return before sending the other requests.
    
    - No need to request cluster health at all, we can compute this locally from the cluster state.
    
    - No need to get the entire cluster state, we only need the metadata and routing table.
    
    - No need to put all the responses into an untyped list and then cast them out again.
    DaveCTurner committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    464251c View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    caefb2a View commit details
    Browse the repository at this point in the history