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

Add conditional token filter to elasticsearch #31958

Merged
merged 111 commits into from
Sep 5, 2018
Merged

Add conditional token filter to elasticsearch #31958

merged 111 commits into from
Sep 5, 2018

Commits on Jul 11, 2018

  1. WIP

    romseygeek committed Jul 11, 2018
    Configuration menu
    Copy the full SHA
    e5b20de View commit details
    Browse the repository at this point in the history
  2. WIP

    romseygeek committed Jul 11, 2018
    Configuration menu
    Copy the full SHA
    da0fd1e View commit details
    Browse the repository at this point in the history
  3. WIP

    romseygeek committed Jul 11, 2018
    Configuration menu
    Copy the full SHA
    df9bffc View commit details
    Browse the repository at this point in the history
  4. WIP

    romseygeek committed Jul 11, 2018
    Configuration menu
    Copy the full SHA
    402ed36 View commit details
    Browse the repository at this point in the history
  5. WIP

    romseygeek committed Jul 11, 2018
    Configuration menu
    Copy the full SHA
    fb7c21d View commit details
    Browse the repository at this point in the history
  6. docs

    romseygeek committed Jul 11, 2018
    Configuration menu
    Copy the full SHA
    d8f0170 View commit details
    Browse the repository at this point in the history
  7. tests

    romseygeek committed Jul 11, 2018
    Configuration menu
    Copy the full SHA
    bcee3f0 View commit details
    Browse the repository at this point in the history
  8. d'oh

    romseygeek committed Jul 11, 2018
    Configuration menu
    Copy the full SHA
    bba5939 View commit details
    Browse the repository at this point in the history
  9. class name change in SPI

    romseygeek committed Jul 11, 2018
    Configuration menu
    Copy the full SHA
    21cd02f View commit details
    Browse the repository at this point in the history
  10. docs

    romseygeek committed Jul 11, 2018
    Configuration menu
    Copy the full SHA
    4315682 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2018

  1. Broekn

    romseygeek committed Jul 13, 2018
    Configuration menu
    Copy the full SHA
    52955df View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2018

  1. nuke unit test

    romseygeek committed Jul 17, 2018
    Configuration menu
    Copy the full SHA
    dd139c7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1d5deff View commit details
    Browse the repository at this point in the history
  3. feedback

    romseygeek committed Jul 17, 2018
    Configuration menu
    Copy the full SHA
    57a73f2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    609951b View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2018

  1. Re-instate link in StringFunctionUtils javadocs

    The previous errors in compileJava were not cause by the brackets but my the
    content of the @link section. Corrected this so its a working javadoc link again.
    Christoph Büscher authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    801a704 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f923d9c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a21fb82 View commit details
    Browse the repository at this point in the history
  4. [Rollup] Use composite's missing_bucket (#31402)

    We can leverage the composite agg's new `missing_bucket` feature on
    terms groupings.  This means the aggregation criteria used in the indexer
    will now return null buckets for missing keys.  
    
    Because all buckets are now returned (even if a key is null),
    we can guarantee correct doc counts with
    "combined" jobs (where a job rolls up multiple schemas).  This was
    previously impossible since composite would ignore documents that
    didn't have _all_ the keys, meaning non-overlapping schemas would
    cause composite to return no buckets.
    
    Note: date_histo does not use `missing_bucket`, since a timestamp is
    always required.
    
    The docs have been adjusted to recommend a single, combined job.  It
    also makes reference to the previous issue to help users that are upgrading
    (rather than just deleting the sections).
    polyfractal authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    62fea58 View commit details
    Browse the repository at this point in the history
  5. Test: Fix a second case of bad watch creation

    There was still a case with a null text that allowed for 0 attachments
    to be created. This commit ensures that greater than zero are created
    if the text is null. Otherwise, it uses the same logic to create 0 to 3
    random attachments.
    
    Closes #31948
    hub-cap authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    35a6774 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9203e50 View commit details
    Browse the repository at this point in the history
  7. Add second level of field collapsing (#31808)

    * Put second level collapse under inner_hits
    
    Closes #24855
    mayya-sharipova authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    849e690 View commit details
    Browse the repository at this point in the history
  8. Mute ML AutodetectMemoryLimitIT#testTooManyPartitions on Windows (#32044

    )
    
    Adding assumption to not run this test on Windows temporarily.
    
    Relates to #32033
    Christoph Büscher authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    de213a8 View commit details
    Browse the repository at this point in the history
  9. Watcher: cleanup ensureWatchExists use (#31926)

    Previously, the ensureWatchExists was overridable. This commit makes
    it final so that it cannot be overridden, and cleans up some redundant
    code in the process.
    hub-cap authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    3bbc8c6 View commit details
    Browse the repository at this point in the history
  10. Add secure setting for watcher email password (#31620)

    Other watcher actions already account for secure settings in their
    sensitive settings, whereas the email sending action did not. This adds
    the ability to optionally set a secure_password for email accounts.
    hub-cap authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    4440df5 View commit details
    Browse the repository at this point in the history
  11. HLRC: Add xpack usage api (#31975)

    This commit adds the _xpack/usage api to the high level rest client.
    Currently in the transport api, the usage data is exposed in a limited
    fashion, at most giving one level of helper methods for the inner keys
    of data, but then exposing thos subobjects as maps of objects. Rather
    than making parsers for every set of usage data from each feature, this
    PR exposes the entire set of usage data as a map of maps.
    rjernst authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    2ab7db3 View commit details
    Browse the repository at this point in the history
  12. Adds a new auto-interval date histogram (#28993)

    * Adds a new auto-interval date histogram
    
    This change adds a new type of histogram aggregation called `auto_date_histogram` where you can specify the target number of buckets you require and it will find an appropriate interval for the returned buckets. The aggregation works by first collecting documents in buckets at second interval, when it has created more than the target number of buckets it merges these buckets into minute interval bucket and continues collecting until it reaches the target number of buckets again. It will keep merging buckets when it exceeds the target until either collection is finished or the highest interval (currently years) is reached. A similar process happens at reduce time.
    
    This aggregation intentionally does not support min_doc_count, offest and extended_bounds to keep the already complex logic from becoming more complex. The aggregation accepts sub-aggregations but will always operate in `breadth_first` mode deferring the computation of sub-aggregations until the final buckets from the shard are known. min_doc_count is effectively hard-coded to zero meaning that we will insert empty buckets where necessary.
    
    Closes #9572
    
    * Adds documentation
    
    * Added sub aggregator test
    
    * Fixes failing docs test
    
    * Brings branch up to date with master changes
    
    * trying to get tests to pass again
    
    * Fixes multiBucketConsumer accounting
    
    * Collects more buckets than needed on shards
    
    This gives us more options at reduce time in terms of how we do the
    final merge of the buckeets to produce the final result
    
    * Revert "Collects more buckets than needed on shards"
    
    This reverts commit 993c782.
    
    * Adds ability to merge within a rounding
    
    * Fixes nonn-timezone doc test failure
    
    * Fix time zone tests
    
    * iterates on tests
    
    * Adds test case and documentation changes
    
    Added some notes in the documentation about the intervals that can bbe
    returned.
    
    Also added a test case that utilises the merging of conseecutive buckets
    
    * Fixes performance bug
    
    The bug meant that getAppropriate rounding look a huge amount of time
    if the range of the data was large but also sparsely populated. In
    these situations the rounding would be very low so iterating through
    the rounding values from the min key to the max keey look a long time
    (~120 seconds in one test).
    
    The solution is to add a rough estimate first which chooses the
    rounding based just on the long values of the min and max keeys alone
    but selects the rounding one lower than the one it thinks is
    appropriate so the accurate method can choose the final rounding taking
    into account the fact that intervals are not always fixed length.
    
    Thee commit also adds more tests
    
    * Changes to only do complex reduction on final reduce
    
    * merge latest with master
    
    * correct tests and add a new test case for 10k buckets
    
    * refactor to perform bucket number check in innerBuild
    
    * correctly derive bucket setting, update tests to increase bucket threshold
    
    * fix checkstyle
    
    * address code review comments
    
    * add documentation for default buckets
    
    * fix typo
    colings86 authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    2183fff View commit details
    Browse the repository at this point in the history
  13. lazy snapshot repository initialization (#31606)

    lazy snapshot repository initialization
    vladimirdolzhenko authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    0e7a6b4 View commit details
    Browse the repository at this point in the history
  14. Watcher: Make settings reloadable (#31746)

    This commit allows for rebuilding watcher secure secrets via the
    reload_secure_settings API call. The commit also renames a method in the
    Notification Service to make it a bit more readable.
    hub-cap authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    315999d View commit details
    Browse the repository at this point in the history
  15. fix typo

    Paul Sanwald authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    b959534 View commit details
    Browse the repository at this point in the history
  16. Clean Up Snapshot Create Rest API (#31779)

    Make SnapshotInfo and CreateSnapshotResponse parsers lenient for backwards compatibility.  Remove extraneous fields from CreateSnapshotRequest toXContent.
    jdconrad authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    94d3311 View commit details
    Browse the repository at this point in the history
  17. [Rollup] Histo group config should support scaled_floats (#32048)

    Metric config already whitelist scaled_floats, but it wasn't added to
    the histo group config.  This centralizes the mapping types map
    so that both metrics and histo (and any future configs) use the same
    map.
    
    Fixes #32035
    polyfractal authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    2945c3a View commit details
    Browse the repository at this point in the history
  18. Mute failing tests

    Relates to #32055
    Christoph Büscher authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    e48de6a View commit details
    Browse the repository at this point in the history
  19. Replace Ingest ScriptContext with Custom Interface (#32003)

    * Replace Ingest ScriptContext with Custom Interface
    * Make org.elasticsearch.ingest.common.ScriptProcessorTests#testScripting more precise
    * Don't mock script factory in ScriptProcessorTests
    * Adjust mock script plugin in IT for new API
    original-brownbear authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    ec470f2 View commit details
    Browse the repository at this point in the history
  20. Add nio http transport to security plugin (#32018)

    This is related to #27260. It adds the SecurityNioHttpServerTransport
    to the security plugin. It randomly uses the nio http transport in
    security integration tests.
    Tim-Brooks authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    f446f91 View commit details
    Browse the repository at this point in the history
  21. Fix compile issues introduced by merge (#32058)

    The build was broken due to some issues with the merging of #32018. A
    method that was public went private before the PR was merged. That did
    not cause a merge conflict (so the PR was merged successfully). But it
    did cause the build to fail.
    Tim-Brooks authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    bd20e99 View commit details
    Browse the repository at this point in the history
  22. SCRIPTING: Remove unused MultiSearchTemplateRequestBuilder (#32049)

    * Ever since 46e8d97 this class is unused
    original-brownbear authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    71cd43b View commit details
    Browse the repository at this point in the history
  23. Cleanup Duplication in PainlessScriptEngine (#31991)

    * Cleanup Duplication in `PainlessScriptEngine`
    * Extract duplicate building of compiler settings to method
    * Remove dead method params + dead constant in `ScriptProcessor`
    original-brownbear authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    e045ad6 View commit details
    Browse the repository at this point in the history
  24. Fix broken OpenLDAP Vagrant QA test

    This was broken due to c662565 but the problem didn't get detected as
    CI builds typically don't run vagrant tests
    tvernum authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    dabbba1 View commit details
    Browse the repository at this point in the history
  25. Turn off real-mem breaker in single node tests

    With this commit we disable the real-memory circuit breaker in tests
    that inherit from `ESSingleNodeTestCase`. As this breaker is based on
    real memory usage over which we have no (full) control in tests and
    their purpose is also not to test the circuit breaker, we use the
    deterministic circuit breaker implementation that only accounts for
    explicitly reserved memory.
    
    Closes #32047
    Relates #32071
    danielmitterdorfer authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    82e8fce View commit details
    Browse the repository at this point in the history
  26. Turn off real-mem breaker in REST tests

    With this commit we disable the real-memory circuit breaker in REST
    tests as this breaker is based on real memory usage over which we have
    no (full) control in tests and the REST client is not yet ready to retry
    on circuit breaker exceptions.
    
    This is only meant as a temporary measure to avoid spurious test
    failures while we ensure that the REST client can handle those
    situations appropriately.
    
    Closes #32050
    Relates #31767
    Relates #31986 
    Relates #32074
    danielmitterdorfer authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    9d48815 View commit details
    Browse the repository at this point in the history
  27. [Test] Mute MlJobIT#testDeleteJobAfterMissingAliases

    Relates #32034
    jimczi authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    040bc9d View commit details
    Browse the repository at this point in the history
  28. Remove unused params from SSource and Walker (#31935)

    The "source" field in SSource seems unused. If removed, it can also be removed
    from the ctor, which in turn makes is possible to delete the sourceText in the
    Walker class.
    Christoph Büscher authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    142d24a View commit details
    Browse the repository at this point in the history
  29. [Tests] Fix failure due to changes exception message (#32036)

    Java 11 seems to get more verbose on the ClassCastException we check for in
    SearchDocumentationIT. This changes the test from asserting the exact exception
    message to only checking the two classes involved are part of the message.
    
    Closes #32029
    Christoph Büscher authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    ce8b3e3 View commit details
    Browse the repository at this point in the history
  30. Fix BWC check after backport

    Relates #31808
    jimczi authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    a1ad7a1 View commit details
    Browse the repository at this point in the history
  31. Unmute field collapsing rest tests

    BWC tests can run now that master and 6x branch are aligned.
    Closes #32055
    jimczi authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    bbe1b7c View commit details
    Browse the repository at this point in the history
  32. Ensure only parent breaker trips in unit test

    With this commit we raise the limit of the child circuit breaker used in
    the unit test for the circuit breaker service so it is high enough to trip
    only the parent circuit breaker. The previous limit was 300 bytes but
    theoretically (considering overhead) we could reach 346 bytes. Thus any
    value larger than 300 bytes could trip the child circuit breaker leading
    to spurious failures.
    
    Relates #31767
    danielmitterdorfer authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    391641c View commit details
    Browse the repository at this point in the history
  33. [Rollup] Fix duplicate field names in test (#32075)

    This commit ensures that random field names do not clash with the explicit field names
    set by the tests.
    
    Closes #32067
    jimczi authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    6ec52fe View commit details
    Browse the repository at this point in the history
  34. [TEST] Consistent algorithm usage (#32077)

    Ensure that the same algorithm is used for settings and
    change password requests for consistency, even if we
    do not expext to reach the code where the algorithm is
    checked for now.
    Completes a7eaa40
    jkakavas authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    ced669b View commit details
    Browse the repository at this point in the history
  35. [Rollup] Replace RollupIT with a ESRestTestCase version (#31977)

    The old RollupIT was a node IT, an flaky for a number of reasons.
    This new version is an ESRestTestCase and should be a little more robust.
    
    This was added to the multi-node QA tests as that seemed like the most
    appropriate location.  It didn't seem necessary to create a whole new
    QA module.
    
    Note: The only test that was ported was the "Big" test for validating
    a larger dataset.  The rest of the tests are represented in existing
    yaml tests.
    
    Closes #31258
    Closes #30232
    Related to #30290
    polyfractal authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    e38e69c View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    4a9fbe7 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    5f130a2 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    1dd0279 View commit details
    Browse the repository at this point in the history
  39. Watcher: Store username on watch execution (#31873)

    There is currently no way to see what user executed a watch. This commit
    adds the decrypted username to each execution in the watch history, in a
    new field "user".
    
    Closes #31772
    hub-cap authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    53f029b View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    e325526 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    e514ad0 View commit details
    Browse the repository at this point in the history
  42. [test] turn on host io cache for opensuse (#32053)

    The hope is that this will resolve the problems with very slow io we're
    seeing on this box in #30295
    andyb-elastic authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    50d8fa8 View commit details
    Browse the repository at this point in the history
  43. DOCS: put LIMIT 10 to the SQL query (#32065)

    Provides a more precise equivalent SQL query for the aggregation example in the getting started guide.
    ahmedakef authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    c0ffec7 View commit details
    Browse the repository at this point in the history
  44. SQL: allow LEFT and RIGHT as function names (#32066)

    Due to the way ANTLR works, any declared tokens need to be accounted for
    manually inside function names (otherwise a different rule gets applied).
    
    Fix #32046
    costin authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    ee4ef86 View commit details
    Browse the repository at this point in the history
  45. Revert "[test] disable packaging tests for suse boxes"

    This reverts commit 30d6fd3.
    andyb-elastic authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    9371e77 View commit details
    Browse the repository at this point in the history
  46. [Rollup] Add new capabilities endpoint for concrete rollup indices (#…

    …30401)
    
    This introduces a new GetRollupIndexCaps API which allows the user to retrieve rollup capabilities of a specific rollup index (or index pattern). This is distinct from the existing RollupCaps endpoint.
    
    - Multiple jobs can be stored in multiple indices and point to a single target data index pattern (logstash-*). The existing API finds capabilities/config of all jobs matching that data index pattern.
    - One rollup index can hold data from multiple jobs, targeting multiple data index patterns. This new API finds the capabilities based on the concrete rollup indices.
    polyfractal authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    780697f View commit details
    Browse the repository at this point in the history
  47. Switch non-x-pack to new style requests (#32106)

    In #29623 we added `Request` object flavored requests to the low level
    REST client and in #30315 we deprecated the old `performRequest`s. This
    changes most of the calls not in X-Pack to their new versions.
    nik9000 authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    1106355 View commit details
    Browse the repository at this point in the history
  48. Bypass highlight query terms extraction on empty fields (#32090)

    Dealing with empty fields in the highlight phase can
    slow down the query because the query terms extraction is done independently
    on each field. This change shortcuts the highlighting performed by the unified highlighter
    for fields that are not present in the document. In such cases there is nothing to higlight so
    we don't need to visit the query to build the highligh builder.
    jimczi authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    7ce9926 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    8ff5735 View commit details
    Browse the repository at this point in the history
  50. Add Index UUID to /_stats Response (#31871)

    * Add "uuid" field to each index's section in the `/_stats` response
    * closes #31791
    original-brownbear authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    97fbe49 View commit details
    Browse the repository at this point in the history
  51. [Test] Modify assert statement for ssl handshake (#32072)

    There have been changes in error messages for `SSLHandshakeException`.
    This has caused a couple of failures in our tests.
    This commit modifies test verification to assert on exception type of
    class `SSLHandshakeException`.
    There was another issue in Java11 which caused NPE. The bug has now
    been fixed on Java11 - early access build 22.
    Bug Ref: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8206355
    Enable the skipped tests due to this bug.
    
    Closes #31940
    bizybot authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    ca2844f View commit details
    Browse the repository at this point in the history
  52. Add exclusion option to keep_types token filter (#32012)

    Currently the `keep_types` token filter includes all token types specified using
    its `types` parameter. Lucenes TypeTokenFilter also provides a second mode where
    instead of keeping the specified tokens (include) they are filtered out
    (exclude). This change exposes this option as a new `mode` parameter that can
    either take the values `include` (the default, if not specified) or `exclude`.
    
    Closes #29277
    Christoph Büscher authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    8bad2c6 View commit details
    Browse the repository at this point in the history
  53. Fix put mappings java API documentation (#31955)

    The current docs of the put-mapping Java API is currently broken. It its current
    form, it creates an index and uses the whole mapping definition given as a JSON
    string as the type name. Since we didn't check the index created in the
    IndicesDocumentationIT so far this went unnoticed.
    
    This change adds test to catch this error to the documentation test, changes the
    documentation so it works correctly now and adds an input validation to
    PutMappingRequest#buildFromSimplifiedDef() which was used internally to reject
    calls where no mapping definition is given.
    
    Closes #31906
    Christoph Büscher authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    89bce93 View commit details
    Browse the repository at this point in the history
  54. Enable testing in FIPS140 JVM (#31666)

    Ensure our tests can run in a FIPS JVM
    
    JKS keystores cannot be used in a FIPS JVM as attempting to use one
    in order to init a KeyManagerFactory or a TrustManagerFactory is not
    allowed.( JKS keystore algorithms for private key encryption are not
    FIPS 140 approved)
    This commit replaces JKS keystores in our tests with the
    corresponding PEM encoded key and certificates both for key and trust
    configurations.
    Whenever it's not possible to refactor the test, i.e. when we are
    testing that we can load a JKS keystore, etc. we attempt to
    mute the test when we are running in FIPS 140 JVM. Testing for the
    JVM is naive and is based on the name of the security provider as
    we would control the testing infrastrtucture and so this would be
    reliable enough.
    Other cases of tests being muted are the ones that involve custom
    TrustStoreManagers or KeyStoreManagers, null TLS Ciphers and the
    SAMLAuthneticator class as we cannot sign XML documents in the
    way we were doing. SAMLAuthenticator tests in a FIPS JVM can be
    reenabled with precomputed and signed SAML messages at a later stage.
    
    IT will be covered in a subsequent PR
    jkakavas authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    c2ee07b View commit details
    Browse the repository at this point in the history
  55. Check that client methods match API defined in the REST spec (#31825)

    We have been encountering name mismatches between API defined in our
    REST spec and method names that have been added to the high-level REST
    client. We should check this automatically to prevent furher mismatches,
    and correct all the current ones.
    
    This commit adds a test for this and corrects the issues found by it.
    javanna authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    24547e8 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    5a383c2 View commit details
    Browse the repository at this point in the history
  57. Updates the build to gradle 4.9 (#32087)

    There are fixes to the dependency report, most importantly for us,
    it still works even if `failOnVersionConflict` would fail the build.
    alpar-t authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    5bad3a8 View commit details
    Browse the repository at this point in the history
  58. Relax TermVectors API to work with textual fields other than TextFiel…

    …dType (#31915)
    
    This changes the field-eligibility test to check one level up in the class hierarchy to allow any subclasses of StringFieldType.
    Closes #31902
    markharwood authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    94330d8 View commit details
    Browse the repository at this point in the history
  59. Handle TokenizerFactory TODOs (#32063)

    * Don't replace Replace TokenizerFactory with Supplier, this approach was rejected in #32063 
    * Remove unused parameter from constructor
    original-brownbear authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    3d0854d View commit details
    Browse the repository at this point in the history
  60. Ensure to release translog snapshot in primary-replica resync (#32045)

    Previously we create a translog snapshot inside the resync method, 
    and that snapshot will be closed by the resync listener. However, if 
    the resync method throws an exception before the resync listener 
    is initialized, the translog snapshot won't be released.
    
    Closes #32030
    dnhatn authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    70d2db3 View commit details
    Browse the repository at this point in the history
  61. [ML] Move analyzer dependencies out of categorization config (#32123)

    The ML config classes will shortly be moved to the X-Pack protocol
    library to allow the ML APIs to be moved to the high level REST
    client.  Dependencies on server functionality should be removed
    from the config classes before this is done.
    
    This change is entirely about moving code between packages.  It
    does not add or remove any functionality or tests.
    droberts195 authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    5afea06 View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    bb9fae0 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    b31dc36 View commit details
    Browse the repository at this point in the history
  64. Re-disable packaging tests on suse boxes

    This reverts commit 14d7e2c.
    andyb-elastic authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    a7c8e07 View commit details
    Browse the repository at this point in the history
  65. Remove empty @param from Javadoc

    jkakavas authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    7490ec6 View commit details
    Browse the repository at this point in the history
  66. Painless: Fix Bug with Duplicate PainlessClasses (#32110)

    When building the PainlessMethods and PainlessFields they stored a reference to a 
    PainlessClass. This reference was prior to "freezing" the PainlessClass so the data was 
    both incomplete and mutable. This has been replaced with a target java class instead 
    since the PainlessClass is accessible through a java class now and it requires no special 
    modifications to get around a chicken and egg issue.
    jdconrad authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    a481ef6 View commit details
    Browse the repository at this point in the history
  67. Build: Move shadow customizations into common code (#32014)

    Moves the customizations to the build to produce nice shadow jars and
    javadocs into common build code, mostly BuildPlugin with a little into
    the root build.gradle file. This means that any project that applies the
    shadow plugin will automatically be set up just like the high level rest
    client:
    * The non-shadow jar will not be built
    * The shadow jar will not have a "classifier"
    * Tests will run against the shadow jar
    * Javadoc will include all of the shadowed classes
    * Service files in `META-INF/services` will be merged
    nik9000 authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    346edfa View commit details
    Browse the repository at this point in the history
  68. Disable C2 from using AVX-512 on JDK 10 (#32138)

    The C2 compiler in JDK 10 appears to have an issue compiling to AVX-512
    instructions (on hardware that supports such). As a workaround, this
    commit adds a JVM flag on JDK 10+ to disable the use of AVX-512
    instructions until a fix is introduced to the JDK. Instead, we use a
    flag to enable AVX and AVX2 only.
    
    Note: Based on my reading of the C2 code, this flag does not appear to
    have any impact on hardware that does not support AVX2. I have tested
    this manually on an Intel Atom C2538 processor that supports neither AVX
    nor AVX2. I have also tested this manually on an Intel i5-3317U
    processor that supports AVX but not AVX2.
    jasontedor authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    cdf5c8a View commit details
    Browse the repository at this point in the history
  69. Build: Make additional test deps of check (#32015)

    This commit moves additional unit test runners from being dependencies
    of the test task to dependencies of check. Without this change,
    reproduce lines are incorrect due to the additional test runner not
    matching any of the reproduce class/method info.
    
    closes #31964
    rjernst authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    a835503 View commit details
    Browse the repository at this point in the history
  70. Painless: Add PainlessClassBuilder (#32141)

    Several pieces of data in PainlessClass cannot be passed in at the time the 
    PainlessClass is created so it must be "frozen" after all the data is collected. This means 
    PainlessClass is currently serving two functions as both a builder and a set of data. This 
    separates the two pieces into clearly distinct values.
    
    This change also removes the PainlessMethodKey in favor of a simple String. The goal is 
    to have the painless method key be completely internal to the PainlessLookup eventually 
    and this simplifies the way there. Note that this was added since PainlessClass and 
    PainlessClassBuilder were already being changed instead of a follow up PR.
    jdconrad authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    ff7ff36 View commit details
    Browse the repository at this point in the history
  71. Build: Skip jar tests if jar disabled

    The shadow plugin disables the jar task but we still attempted to extract
    the jar to see if it had the right license and notice file. This skips
    the extraction and those tests if the jar is built for any reason which
    fixes projects that use the shadow plugin.
    nik9000 authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    101458b View commit details
    Browse the repository at this point in the history
  72. Switch distribution to new style Requests (#30595)

    In #29623 we added `Request` object flavored requests to the low level
    REST client and in #30315 we deprecated the old `performRequest`s. This
    changes all calls in the `distribution/archives/integ-test-zip` project
    to use the new versions.
    nik9000 authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    88c4f6c View commit details
    Browse the repository at this point in the history
  73. Remove versionType from translog (#31945)

    With the introduction of sequence number, we no longer use versionType to
    resolve out of order collision in replication and recovery requests.
    
    This PR removes removes the versionType from translog. We can only remove
    it in 7.0 because it is still required in a mixed cluster between 6.x and 5.x.
    dnhatn authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    8486f24 View commit details
    Browse the repository at this point in the history
  74. ESIndexLevelReplicationTestCase doesn't support replicated failures b…

    …ut it's good to know what they are
    
    Sometimes we have a test failure that hits an `UnsupportedOperationException` in this infrastructure. When
    debugging you want to know what caused this unexpected failure, but right now we're silent about it. This
    commit adds some information to the `UnsupportedOperationException`
    
    Relates to #32127
    bleskes authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    413d211 View commit details
    Browse the repository at this point in the history
  75. [DOCS] Update TLS on Docker for 6.3 (#32114)

    Remove references to the `platinum` image and add a self-generated trial
    licence to the example for TLS on Docker.
    
    Fixes elastic/elasticsearch-docker#176
    ninaspitfire authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    fa16875 View commit details
    Browse the repository at this point in the history
  76. Fix range queries on _type field for singe type indices (#31756)

    With the introduction of single types in 6.x, the `_type` field is no longer
    indexed, which leads to certain queries that were working before throw errors
    now. One such query is the `range` query, that, if performed on a single typer
    index, currently throws an IAE since the field is not indexed.
    This change adds special treatment for this case in the TypeFieldMapper,
    comparing the range queries lower and upper bound to the one existing type and
    either returns a MatchAllDocs or a MatchNoDocs query.
    
    Relates to #31632
    Closes #31476
    Christoph Büscher authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    688deeb View commit details
    Browse the repository at this point in the history
  77. Term -> Token; deps

    romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    ace3771 View commit details
    Browse the repository at this point in the history
  78. Fix CP for namingConventions when gradle home has spaces (#31914)

    * Fix CP for namingConventions when gradle home has spaces
    
    Closes #31736.
    
    Probably not Windows specific, just not common to have spaces on Linux.
    alpar-t authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    84ee20e View commit details
    Browse the repository at this point in the history
  79. Fix Java 11 javadoc compile problem

    Java 11 complains with a "type arguments not allowed here" error when types are
    used in javadoc links it seems. Simply removing it.
    Christoph Büscher authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    947fa2e View commit details
    Browse the repository at this point in the history
  80. A replica can be promoted and started in one cluster state update (#3…

    …2042)
    
    When a replica is fully recovered (i.e., in `POST_RECOVERY` state) we send a request to the master
    to start the shard. The master changes the state of the replica and publishes a cluster state to that
    effect. In certain cases, that cluster state can be processed on the node hosting the replica
    *together* with a cluster state that promotes that, now started, replica to a primary. This can
    happen due to cluster state batched processing or if the master died after having committed the
    cluster state that starts the shard but before publishing it to the node with the replica. If the master
    also held the primary shard, the new master node will remove the primary (as it failed) and will also
    immediately promote the replica (thinking it is started). 
    
    Sadly our code in IndexShard didn't allow for this which caused [assertions](https://github.com/elastic/elasticsearch/blob/13917162ad5c59a96ccb4d6a81a5044546c45c22/server/src/main/java/org/elasticsearch/index/seqno/ReplicationTracker.java#L482) to be tripped in some of our tests runs.
    bleskes authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    e67cede View commit details
    Browse the repository at this point in the history
  81. Add EC2 credential test for repository-s3 (#31918)

    Add EC2 credential test for repository-s3
    
    Relates to #26913
    vladimirdolzhenko authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    8924ac3 View commit details
    Browse the repository at this point in the history
  82. Add more contexts to painless execute api (#30511)

    This change adds two contexts the execute scripts against:
    
    * SEARCH_SCRIPT: Allows to run scripts in a search script context.
    This context is used in `function_score` query's script function,
    script fields, script sorting and `terms_set` query.
    
    * FILTER_SCRIPT: Allows to run scripts in a filter script context.
    This context is used in the `script` query.
    
    In both contexts a index name needs to be specified and a sample document.
    The document is needed to create an in-memory index that the script can
    access via the `doc[...]` and other notations. The index name is needed
    because a mapping is needed to index the document.
    
    Examples:
    
    ```
    POST /_scripts/painless/_execute
    {
      "script": {
        "source": "doc['field'].value.length()"
      },
      "context" : {
        "search_script": {
          "document": {
            "field": "four"
          },
          "index": "my-index"
        }
      }
    }
    ```
    
    Returns:
    
    ```
    {
      "result": 4
    }
    ```
    
    POST /_scripts/painless/_execute
    {
      "script": {
        "source": "doc['field'].value.length() <= params.max_length",
        "params": {
          "max_length": 4
        }
      },
      "context" : {
        "filter_script": {
          "document": {
            "field": "four"
          },
          "index": "my-index"
        }
      }
    }
    
    Returns:
    
    ```
    {
      "result": true
    }
    ```
    
    Also changed PainlessExecuteAction.TransportAction to use TransportSingleShardAction
    instead of HandledAction, because now in case score or filter contexts are used
    the request needs to be redirected to a node that has an active IndexService
    for the index being referenced (a node with a shard copy for that index).
    martijnvg authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    b79dc6a View commit details
    Browse the repository at this point in the history
  83. use before instead of onOrBefore

    martijnvg authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    d225048 View commit details
    Browse the repository at this point in the history
  84. Improve docs for search preferences (#32159)

    Today it is unclear what guarantees are offered by the search preference
    feature, and we claim a guarantee that is stronger than what we really offer:
    
    > A custom value will be used to guarantee that the same shards will be used
    > for the same custom value.
    
    This commit clarifies this documentation.
    
    Forward-port of #32098 to `master`.
    DaveCTurner authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    997ebe8 View commit details
    Browse the repository at this point in the history
  85. Fix BwC Tests looking for UUID Pre 6.4 (#32158)

    * UUID field was added for #31791 and only went into 6.4 and 7.0
    * Fixes #32119
    original-brownbear authored and romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    f591095 View commit details
    Browse the repository at this point in the history
  86. Call setReferences() on custom referring tokenfilters in _analyze (#3…

    …2157)
    
    When building custom tokenfilters without an index in the _analyze endpoint,
    we need to ensure that referring filters are correctly built by calling
    their #setReferences() method
    
    Fixes #32154
    romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    67a4dcb View commit details
    Browse the repository at this point in the history
  87. Merge conflicts

    romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    93ecf1d View commit details
    Browse the repository at this point in the history
  88. more docs

    romseygeek committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    945fadf View commit details
    Browse the repository at this point in the history
  89. Configuration menu
    Copy the full SHA
    303de4f View commit details
    Browse the repository at this point in the history
  90. Configuration menu
    Copy the full SHA
    33b9da4 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2018

  1. Configuration menu
    Copy the full SHA
    b775f71 View commit details
    Browse the repository at this point in the history
  2. merge error

    romseygeek committed Aug 21, 2018
    Configuration menu
    Copy the full SHA
    1dff0f6 View commit details
    Browse the repository at this point in the history
  3. checkstyle

    romseygeek committed Aug 21, 2018
    Configuration menu
    Copy the full SHA
    546aa11 View commit details
    Browse the repository at this point in the history
  4. headers

    romseygeek committed Aug 21, 2018
    Configuration menu
    Copy the full SHA
    701fbf2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    396843f View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2018

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