Commit Graph

745 Commits

Author SHA1 Message Date
Iraklis Psaroudakis 8ada557dae
Upgrade Netty to 4.1.94.Final (#97040)
Just staying up to date.
2023-06-23 19:50:35 +03:00
elasticsearchmachine 7b664ea581 Merge pull request ESQL-1309 from elastic/main
🤖 ESQL: Merge upstream
2023-06-22 13:17:01 -04:00
Rory Hunter 4f0507ac47 Bump to version 8.10.0 2023-06-22 10:35:12 +01:00
elasticsearchmachine e133ae1309 Merge pull request ESQL-1296 from elastic/main
🤖 ESQL: Merge upstream
2023-06-20 13:20:47 -04:00
Chris Hegarty 6cf467f237
ThirdPartyAuditTask - Add vector module when building with JDK 21 (#96949)
This commit extends the ThirdPartyAuditTask check that adds the vector module when building, to include JDK 21.

This is needed now as Lucene has added support for the VectorUtilPanamaProvider with JDK 21. We want to keep the check to very specific versions / ranges, that match that of Lucene.
2023-06-20 15:05:36 +01:00
Salvatore Campagna 02402ef49c
Replace Rollup with Downsampling in changelog schema (#96942) 2023-06-20 13:41:33 +02:00
Nhat Nguyen 31949fcbde Merge remote-tracking branch 'elastic/esql/lang' into merge-main 2023-06-13 21:20:00 -07:00
Ryan Ernst bb3ef2bd29
Fix dependency info generation to skip org.elasticsearch (#96809)
This commit fixes an edge case in dependency info generation, much like
in #96355 for dependency licenses check, where an Elasticsearch
dependency may show not show up as a project dependency as is the case
with serverless. Additionally this fixes the dependency info task to
properly work when the licenses dir is missing if there are no
dependencies.
2023-06-13 15:45:05 -07:00
Kostas Krikellas 67211be81d
Fork TDigest library (#96086)
* Initial import for TDigest forking.

* Fix MedianTest.

More work needed for TDigestPercentile*Tests and the TDigestTest (and
the rest of the tests) in the tdigest lib to pass.

* Fix Dist.

* Fix AVLTreeDigest.quantile to match Dist for uniform centroids.

* Update docs/changelog/96086.yaml

* Fix `MergingDigest.quantile` to match `Dist` on uniform distribution.

* Add merging to TDigestState.hashCode and .equals.

Remove wrong asserts from tests and MergingDigest.

* Fix style violations for tdigest library.

* Fix typo.

* Fix more style violations.

* Fix more style violations.

* Fix remaining style violations in tdigest library.

* Update results in docs based on the forked tdigest.

* Fix YAML tests in aggs module.

* Fix YAML tests in x-pack/plugin.

* Skip failing V7 compat tests in modules/aggregations.

* Fix TDigest library unittests.

Remove redundant serializing interfaces from the library.

* Remove YAML test versions for older releases.

These tests don't address compatibility issues in mixed cluster tests as
the latter contain a mix of older and newer nodes, so the output depends
on which node is picked as a data node since the forked TDigest library
is not backwards compatible (produces slightly different results).

* Fix test failures in docs and mixed cluster.

* Reduce buffer sizes in MergingDigest to avoid oom.

* Exclude more failing V7 compatibility tests.

* Update results for JdbcCsvSpecIT tests.

* Update results for JdbcDocCsvSpecIT tests.

* Revert unrelated change.

* More test fixes.

* Use version skips instead of blacklisting in mixed cluster tests.

* Switch TDigestState back to AVLTreeDigest.

* Update docs and tests with AVLTreeDigest output.

* Update flaky test.

* Remove dead code, esp around tracking of incoming data.

* Update docs/changelog/96086.yaml

* Delete docs/changelog/96086.yaml

* Remove explicit compression calls.

This was added to prevent concurrency tests from failing, but it leads
to reduces precision. Submit this to see if the concurrency tests are
still failing.

* Revert "Remove explicit compression calls."

This reverts commit 5352c96f65.

* Remove explicit compression calls to MedianAbsoluteDeviation input.

* Add unittests for AVL and merging digest accuracy.

* Fix spotless violations.

* Delete redundant tests and benchmarks.

* Fix spotless violation.

* Use the old implementation of AVLTreeDigest.

The latest library version is 50% slower and less accurate, as verified
by ComparisonTests.

* Update docs with latest percentile results.

* Update docs with latest percentile results.

* Remove repeated compression calls.

* Update more percentile results.

* Use approximate percentile values in integration tests.

This helps with mixed cluster tests, where some of the tests where
blocked.

* Fix expected percentile value in test.

* Revert in-place node updates in AVL tree.

Update quantile calculations between centroids and min/max values to
match v.3.2.

* Add SortingDigest and HybridDigest.

The SortingDigest tracks all samples in an ArrayList that
gets sorted for quantile calculations. This approach
provides perfectly accurate results and is the most
efficient implementation for up to millions of samples,
at the cost of bloated memory footprint.

The HybridDigest uses a SortingDigest for small sample
populations, then switches to a MergingDigest. This
approach combines to the best performance and results for
small sample counts with very good performance and
acceptable accuracy for effectively unbounded sample
counts.

* Remove deps to the 3.2 library.

* Remove unused licenses for tdigest.

* Revert changes for SortingDigest and HybridDigest.

These will be submitted in a follow-up PR for enabling MergingDigest.

* Remove unused Histogram classes and unit tests.

Delete dead and commented out code, make the remaining tests run
reasonably fast. Remove unused annotations, esp. SuppressWarnings.

* Remove Comparison class, not used.

* Small fixes.

* Add javadoc and tests.

* Remove special logic for singletons in the boundaries.

While this helps with the case where the digest contains only
singletons (perfect accuracy), it has a major issue problem
(non-monotonic quantile function) when the first singleton is followed
by a non-singleton centroid. It's preferable to revert to the old
version from 3.2; inaccuracies in a singleton-only digest should be
mitigated by using a sorted array for small sample counts.

* Revert changes to expected values in tests.

This is due to restoring quantile functions to match head.

* Revert changes to expected values in tests.

This is due to restoring quantile functions to match head.

* Tentatively restore percentile rank expected results.

* Use cdf version from 3.2

Update Dist.cdf to use interpolation, use the same cdf
version in AVLTreeDigest and MergingDigest.

* Revert "Tentatively restore percentile rank expected results."

This reverts commit 7718dbba59.

* Revert remaining changes compared to main.

* Revert excluded V7 compat tests.

* Exclude V7 compat tests still failing.

* Exclude V7 compat tests still failing.

* Restore bySize function in TDigest and subclasses.
2023-06-13 11:43:54 +03:00
Nik Everett 1f383f3cd2 Docs: compress results into query (ESQL-1259)
This compresses the results and the query on the page to take up less
space and make them more obviously connected.
2023-06-12 09:37:45 -05:00
elasticsearchmachine 2a0b1acadb Merge pull request ESQL-1265 from elastic/main
🤖 ESQL: Merge upstream
2023-06-12 09:48:51 -04:00
Alan Woodward d927d1a9a7
Upgrade to new lucene snapshot 9.7.0-snapshot-41cd1f7a88c (#96741)
Notable changes:

* more efficient backwards reads in NIOFSDirectory
* faster merging when using soft deletes
* workaround security manager when using vector API
2023-06-12 09:13:58 +01:00
elasticsearchmachine e133577bf5 Merge pull request ESQL-1251 from elastic/main
🤖 ESQL: Merge upstream
2023-06-08 01:13:49 -04:00
Mark Vieira 73cd3d8163
Locate javap from current build Java home location (#96667)
This updates the JarApiComparisonTask to be a bit more robust so it no
longer requires the `javap` command to be on the path and instead
locates it from the current build JDK. This ensures, firstly, that we're
using the `javap` executable that corresponds to the current compiler
Java we're using and secondly, that the task will work even if
`JAVA_HOME/bin` isn't added to `PATH`.
2023-06-07 10:41:06 -07:00
elasticsearchmachine 2834c015cb Merge pull request ESQL-1219 from elastic/main
🤖 ESQL: Merge upstream
2023-06-01 13:16:52 -04:00
Simon Cooper 6670b778db
Introduce IndexVersion class (#94827)
This adds IndexVersion that represents the index data & metadata version, separate to the release version. Similar to TransportVersion, this will eventually be completely separated from release version.
2023-06-01 15:11:08 +01:00
elasticsearchmachine 6e4de7df18 Merge pull request ESQL-1214 from elastic/main
🤖 ESQL: Merge upstream
2023-05-31 13:22:26 -04:00
Luca Cavanna e5768d9335
Upgrade Lucene to a 9.7.0 snapshot (#96433)
Most relevant changes:

- add api to allow concurrent query rewrite (GITHUB-11838 Add api to allow concurrent query rewrite apache/lucene#11840)
- knn query rewrite (Concurrent rewrite for KnnVectorQuery apache/lucene#12160)
- Integrate the incubating Panama Vector API (Integrate the Incubating Panama Vector API  apache/lucene#12311)

As part of this commit I moved the ES codebase off of overriding or relying on the deprecated rewrite(IndexReader) method in favour of using rewrite(IndexSearcher) instead. For score functions, I went for not breaking existing plugins and create a new IndexSearcher whenever we rewrite a filter, otherwise we'd need to change the ScoreFunction#rewrite signature to take a searcher instead of a reader.

Co-authored-by: ChrisHegarty <christopher.hegarty@elastic.co>
2023-05-31 10:17:10 +02:00
elasticsearchmachine dedd315ee1 Merge pull request ESQL-1209 from elastic/main
🤖 ESQL: Merge upstream
2023-05-31 01:17:55 -04:00
Mark Vieira 0b8b5aa434
Revert "Temporarily disable retries in docker build tasks (#96256)" (#96446)
This reverts #96256.
2023-05-30 18:23:35 -04:00
elasticsearchmachine 26ae1b804e Merge pull request ESQL-1186 from elastic/main
🤖 ESQL: Merge upstream
2023-05-26 01:17:53 -04:00
Ryan Ernst 9cee43b24e
Remove dependency license check for all org.elasticsearch (#96355)
The dependency licenses check is meant to ensure we have license
information included for external dependencies. The check currently
looks at all non-project dependencies. This works within the
elasticsearch repo, since internal dependencies are all project
dependencies. However, in serverless the dependencies will be jars from
the upstream project (or rather not project dependencies, since it is a
compound build). This commit loosens the dependency license check filter
to omit any that have an elasticsearch group.
2023-05-25 13:35:45 -07:00
elasticsearchmachine 2ca31d3a8b Merge pull request ESQL-1163 from elastic/main
🤖 ESQL: Merge upstream
2023-05-22 13:27:17 -04:00
Mark Vieira df7199537f
Temporarily disable retries in docker build tasks (#96256)
Related to https://github.com/elastic/elasticsearch/issues/96207, I
believe our retry logic is either a) contributing to weird failures or
b) masking the root cause of failures in our Docker builds. I'm
temporarily disabling this for now to try and get some better
diagnostics.
2023-05-22 12:00:26 -04:00
elasticsearchmachine b19728ef11 Merge pull request ESQL-1131 from elastic/main
🤖 ESQL: Merge upstream
2023-05-12 13:16:48 -04:00
Rene Groeschke 7710faa7af
Fix BwcVersionsSpec tests on aarch osx (#96046) 2023-05-12 10:02:46 +02:00
Rene Groeschke 527cf1d3f5
Update forbiddenapis to 3.5.1 (#96032) 2023-05-12 09:52:33 +02:00
elasticsearchmachine 7ce57001a4 Merge pull request ESQL-1111 from elastic/main
🤖 ESQL: Merge upstream
2023-05-10 13:21:06 -04:00
Luca Cavanna 692cd1851c
Upgrade Lucene to the final 9.6.0 release (#95967)
We have recently upgraded to a Lucene 9.6.0 snapshot. With this commit we upgrade to the final 9.6.0 release.
2023-05-10 12:12:43 +02:00
elasticsearchmachine a38a018ef8 Merge pull request ESQL-1095 from elastic/main
🤖 ESQL: Merge upstream
2023-05-05 13:19:17 -04:00
Rene Groeschke f829891658
Fix fixed gradle parallization config after merge (#95848) 2023-05-04 18:30:54 -04:00
Mark Vieira 2174e6df62
Support overriding BWC checkout remote via extension property (#95841) 2023-05-04 12:06:35 -07:00
elasticsearchmachine 069424b0c0 Merge pull request ESQL-1085 from elastic/main
🤖 ESQL: Merge upstream
2023-05-04 13:21:33 -04:00
Mark Vieira 6ace408239
Refactor BWC handling to support more flexible testing scenarios (#95803) 2023-05-03 13:43:39 -07:00
elasticsearchmachine 7df7247d79 Merge pull request ESQL-1079 from elastic/main
🤖 ESQL: Merge upstream
2023-05-03 10:34:09 -04:00
Rene Groeschke 4e2f852c08
Resolve runtime java via Gradle tool chain provider (#95319)
Using gradle toolchain support in gradle requires refactoring how the composite build is composed. 
We added three toolchain resolver
1. Resolver for resolving defined bundled version from oracle as openjdk
2. Resolve all available jdks from Adoption
3. Resolve archived Oracle jdk distributions. 

We should be able to remove the JdkDownloadPlugin altogether without having that in place, but we'll do that in a separate effort.

Fixes #95094
2023-05-03 15:28:47 +02:00
Abdon Pijpelink 997b51dbbe
Fix release highlights generator (#95747)
* Fix release highlights generator

* Add missing quotes to and remove slashes from test results too.

* Remove newlines

* One more newline

* One more newline

* Add newline before endif in test results

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2023-05-03 11:37:12 +02:00
elasticsearchmachine 0bfcddf73f Merge pull request ESQL-1075 from elastic/main
🤖 ESQL: Merge upstream
2023-05-02 20:02:37 -04:00
Ryan Ernst 8b8a2be7dd
Upgrade Jackson xml to 2.15.0 (#95641)
Additionally this commit updates snakeyaml to 2.0 as that is the version
now used by Jackson.
2023-05-02 13:59:17 -07:00
elasticsearchmachine 5e40cdc39a Merge pull request ESQL-1066 from elastic/main
🤖 ESQL: Merge upstream
2023-04-27 13:14:30 -04:00
Ignacio Vera e93c258416
upgrade to lucene-9.6.0-snapshot-246ac4bcbe6 (#95601) 2023-04-27 12:55:55 +02:00
elasticsearchmachine 5efdb5a083 Merge pull request ESQL-1062 from elastic/main
🤖 ESQL: Merge upstream
2023-04-26 13:17:53 -04:00
Armin Braun 0b342994a9
Upgrade Netty to 4.1.92 (#95575)
Just staying up to date.
2023-04-26 15:04:13 +02:00
gmarouli 246c6a9623 Bump to version 8.9.0 2023-04-26 15:20:24 +03:00
elasticsearchmachine cb15eec188 Merge pull request ESQL-1058 from elastic/main
🤖 ESQL: Merge upstream
2023-04-24 13:17:41 -04:00
Rene Groeschke 486dfc8ea2
Update Gradle wrapper from 8.1 to 8.1.1 (#95492) 2023-04-24 06:30:45 -04:00
Armin Braun 67b6438e1b
Export java.io when running tests from ide to fix noisy exceptions (#95482)
The preallocate module raises endless exceptions since we fail to get
the file descriptor from the file channel in `FileDescriptorFieldAction` without the export.
2023-04-24 10:49:56 +02:00
elasticsearchmachine 28b4d081cb Merge pull request ESQL-1050 from elastic/main
🤖 ESQL: Merge upstream
2023-04-22 01:11:31 -04:00
Joe Gallo abc495d355
Move redact ingest processor into x-pack (#95426) 2023-04-21 15:04:49 -04:00
elasticsearchmachine 240a526d8d Merge pull request ESQL-1034 from elastic/main
🤖 ESQL: Merge upstream
2023-04-19 13:16:54 -04:00
Tim Vernum 6802f91e57
Bump bundled JDK to Java 20.0.1 (#95359) 2023-04-19 07:03:33 -07:00
elasticsearchmachine 3d26f6193b Merge pull request ESQL-1027 from elastic/main
🤖 ESQL: Merge upstream
2023-04-18 13:18:14 -04:00
Rene Groeschke e75c9162f9
Skip ComposeBuild tasks when docker compose not available (#95320)
The new gradle docker compose plugin introduced a new task type that we need to
take into account in our TestFixturesPlugin
2023-04-18 12:25:59 +02:00
elasticsearchmachine 6cd8f2a22d Merge pull request ESQL-1013 from elastic/main
🤖 ESQL: Merge upstream
2023-04-13 13:16:47 -04:00
Rene Groeschke 44cc172219
Update Gradle wrapper to 8.1 (#94663)
- Udpate docker compose plugin to use 8.1 compliant version
- Fix deprecations of test task configurations
2023-04-13 16:11:51 +02:00
Kathleen DeRusso 28e6d64ec3
Initial Search Application Search API with templates (#95026)
---------

Co-authored-by: Ioana Tagirta <ioana.tagirta@elastic.co>
Co-authored-by: Jim Ferenczi <jim.ferenczi@elastic.co>
Co-authored-by: cdelgado <carlos.delgado@elastic.co>
Co-authored-by: Sloane Perrault <sloane.perrault@gmail.com>
2023-04-13 11:56:27 +02:00
elasticsearchmachine ea0cc7abfc Merge pull request ESQL-1000 from elastic/main
🤖 ESQL: Merge upstream
2023-04-11 11:38:36 -04:00
Przemyslaw Gomulka 6de61fd794
[Stable Plugin Api] Change the group name in stable-api diff plugin (#95076)
the #92776 introduced a bwc test to make sure we do not break stable plugin API. The change was merged to 8.7.0
At the same time an artifact group rename was merged into 8.7.0 https://github.com/elastic/elasticsearch/pull/92905/files

This commit fixes the group name used in a plugin
2023-04-11 11:34:07 +02:00
elasticsearchmachine 10f7b18814 Merge pull request ESQL-997 from elastic/main
🤖 ESQL: Merge upstream
2023-04-11 01:14:19 -04:00
Ryan Ernst c619be4b5e
Move preallocate module to libs (#94884)
The preallocate module needs access to java.io internals. However, in
order to open java.io to a specific module, rather than the unnamed
module as was previously done, the said module must be in the boot
layer.

This commit moves the preallocate module to libs. It adds it to the main
lib dir, though it does not add it as a compile dependency of server.
2023-04-10 13:05:43 -07:00
elasticsearchmachine c691cf8933 Merge pull request ESQL-983 from elastic/main
🤖 ESQL: Merge upstream
2023-04-07 01:19:06 -04:00
Ryan Ernst 0b32530c11
Remove reading Lucene version from bwc versions build logic (#94917)
Version.java currently contains mappings to the Lucene version for each
Elasticsearch version. The only use of this in the build logic is for
filtering based on index compatibility. However, that compatibility can
be inferred based on the Elasticsearch major version since there is a
one to one mapping between Elasticsearch major and Lucene major. This
commit removes Lucene version extraction from the build bwc logic.
2023-04-06 20:18:06 -04:00
elasticsearchmachine 0c752ffa9b Merge pull request ESQL-979 from elastic/main
🤖 ESQL: Merge upstream
2023-04-05 13:17:12 -04:00
Abdon Pijpelink 0e1e4ce678
Revert "[DOCS] Migration guide: link to What's new page for the same version (#92823)" (#95016)
This reverts commit 8d60562fe8.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2023-04-05 10:22:14 +02:00
elasticsearchmachine 960a923819 Merge pull request ESQL-965 from elastic/main
🤖 ESQL: Merge upstream
2023-04-04 11:28:33 -04:00
Rory Hunter fe1083f6c5
Upgrade spotless plugin to 6.17.0 (#94994)
Fixes #82794. Upgrade the spotless plugin, which addresses the issue
around formatting `instanceof` expressions. Formatting of statements
including lambdas seems to have improved too.
2023-04-04 10:03:32 +01:00
elasticsearchmachine f159788f8f Merge pull request ESQL-959 from elastic/main
🤖 ESQL: Merge upstream
2023-04-03 13:21:58 -04:00
Rene Groeschke e735455431
Provide hints to Gradle Task.onlyIf declarations (#94953)
* Update gradle enterprise plugin to show skip reasons in build scans
* Unify OS specific handling in build logic
2023-03-31 23:57:55 +02:00
elasticsearchmachine 118f164e2e Merge pull request ESQL-957 from elastic/main
🤖 ESQL: Merge upstream
2023-03-31 13:20:05 -04:00
Adrien Grand f4b19ad779
Upgrade to lucene-9.6-snapshot-dcc2154a1d3. (#94955)
This includes a change that is expected to mitigate a regression in nightly
benchmarks when indexing with low hardware concurrency.
2023-03-31 16:38:58 +02:00
Craig Taverner 16b9960e0b
[Docs] Ensure breaking-changes tag exists for empty and existing breaking changes (#94911)
* Ensure breaking-changes tag exists for both cases

This was previously added so that it only worked when there were no
breaking changes, but should be for the case of breaking changes also

* Revert "Ensure breaking-changes tag exists for both cases"

This reverts commit f8cb87ad45.

* Ensure breaking-changes tag exists for both cases

This was previously added so that it only worked when there were no
breaking changes, but should be for the case of breaking changes also

* Improved wording
2023-03-31 10:03:52 +02:00
elasticsearchmachine 546ff53ea9 Merge pull request ESQL-915 from elastic/main
🤖 ESQL: Merge upstream
2023-03-23 01:15:39 -04:00
Mark Vieira 60ebc31c0c
Use correct target compatibility for third party audit tasks (#94648) 2023-03-22 13:48:40 -07:00
elasticsearchmachine 742ebd6270 Merge pull request ESQL-914 from elastic/main
🤖 ESQL: Merge upstream
2023-03-22 13:24:49 -04:00
Mark Vieira 8a8bc4f4d9
Generate build report tarball when building in Buildkite CI (#94643)
We generate a tarball with various test reports, logs and diagnostics on
build completion when running in CI. Adapt this script to also support
Buildkite, in addition to Jenkins.
2023-03-22 12:40:44 -04:00
Slobodan Adamović 18bd1cd61e
Allow API key authentication subject on the fulfilling side for RCS 2.0 (#93808)
This PR is follow up on
https://github.com/elastic/elasticsearch/pull/93414, which allows using
API keys to authenticate cross cluster requests in the new remote
cluster security model.  

The main change is around removing restrictions and allowing API key
authentication subjects on the fulfilling (server) side.
2023-03-22 10:03:39 -04:00
Adrien Grand a4f66d01e3
Upgrade to lucene-9.6.0-snapshot-8a815153fbe. (#94635)
This new snapshot has the following changes that could be interesting:
 - Less contention on the indexing path.
 - Faster flushing of keywords when index sorting is enabled.
2023-03-22 14:52:44 +01:00
elasticsearchmachine 50a075de94 Merge pull request ESQL-912 from elastic/main
🤖 ESQL: Merge upstream
2023-03-22 01:13:52 -04:00
Mark Vieira cbc73a7665
Register test artifacts for service-account security QA project (#94602) 2023-03-21 12:15:05 -07:00
Mark Vieira cc6eb5b564
Upgrade bundled JDK to Java 20 (#94600) 2023-03-21 10:42:58 -07:00
elasticsearchmachine 6d33fc1c34 Merge pull request ESQL-897 from elastic/main
🤖 ESQL: Merge upstream
2023-03-16 13:19:57 -04:00
Adrien Grand b56c2df203
Upgrade to lucene-9.6.0-snapshot-f5d1e1c787c. (#94494) 2023-03-16 16:49:54 +01:00
elasticsearchmachine 4a559df25a Merge pull request ESQL-894 from elastic/main
🤖 ESQL: Merge upstream
2023-03-15 01:21:13 -04:00
Rene Groeschke a538c2914c
Tweak Test error reporting handling to be configuration cache compliant (#94460) 2023-03-14 15:18:48 -04:00
Nikolaj Volgushev 90f6af3bdc
Naming refactor to use cross cluster access consistently (#94424)
Rename refactor PR that uses `cross_cluster_access` in place of
`remote_access` wherever appropriate, since `cross_cluster_access` is a
more precise, clearer term. No functional changes, however I did make a
few tweaks around version handling.
2023-03-14 13:13:09 -04:00
elasticsearchmachine b9e834393c Merge pull request ESQL-879 from elastic/main
🤖 ESQL: Merge upstream
2023-03-10 00:17:47 -05:00
Rene Groeschke 9ce5baed0c
Update Gradle wrapper to 8.0.2 (#92751)
- Remove custom checksum build logic in wrapper task
- Adjust jdk home handling adjusting the change in behaviour in gradle. Requires providing canonical paths for provisioned jdk homes.
- Fix test by add workaround to bug in configuration cache
2023-03-09 13:00:12 +01:00
Mark Vieira 75dfb612c8 Use bundled JDK by default when testing in CI 2023-03-07 16:55:56 -08:00
Mark Vieira 7c2135c6bc Use bundled JDK by default when testing in CI 2023-03-02 12:06:45 -08:00
elasticsearchmachine 75c5fb02d7 Merge pull request ESQL-841 from elastic/main
🤖 ESQL: Merge upstream
2023-03-01 00:26:10 -05:00
Armin Braun 1e405db741
Upgrade to Netty 4.1.89 (#94179)
Just staying up to date, also some potential performance improvements
that would help us a little in this upgrade.
2023-02-28 12:33:38 +01:00
elasticsearchmachine f03468c9e0 Merge pull request ESQL-834 from elastic/main
🤖 ESQL: Merge upstream
2023-02-25 00:25:12 -05:00
Rene Groeschke 08845b78f2
Update Gradle Wrapper to 7.6.1 (#89796) (#92241) (#94122)
This updates the gradle wrapper to 7.6.1. This patch release contains a
fix for  incremental compilation of java modules we have raised against
gradle 7.6

see https://github.com/gradle/gradle/issues/23067
2023-02-24 11:48:08 -05:00
elasticsearchmachine e29966a4e3 Merge pull request ESQL-826 from elastic/main
🤖 ESQL: Merge upstream
2023-02-23 12:28:01 -05:00
Nikolaj Volgushev eb0e52a94f
Bring `run-ccs` gradle setup up to date (#94006)
`run-ccs` fell behind on some of the changes we've made for RCS 2.0.
This PR brings it up to date.
2023-02-23 11:20:43 -05:00
Chris Hegarty 4c09efd2e9
Upgrade slf4j (#94030)
This change updates slf4j to 2.0.6 (latest at time of writing). 2.0.6 is already in the build (used by another component), so no need to add an entry to the gradle verification metadata.

The initial motivation for the upgrade is the addition of a stable module name to slf4j, post 1.7, which can be seen by the update to the requires statement in the module-info change. A later change, that will propose to modularise azure-repository, transitively requires org.slf4j.
2023-02-23 08:40:02 +00:00
elasticsearchmachine 464535553d Merge pull request ESQL-824 from elastic/main
🤖 ESQL: Merge upstream
2023-02-23 00:24:34 -05:00
Mark Vieira 7b766b0458 Fix logic for determining pull request status on buildkite 2023-02-22 08:55:25 -08:00
elasticsearchmachine e37a5310fa Merge pull request ESQL-802 from elastic/main
🤖 ESQL: Merge upstream
2023-02-17 00:27:46 -05:00
Mark Vieira e82571f794
Update build scan configuration to support Buildkite (#93715) 2023-02-16 12:26:55 -08:00
elasticsearchmachine 835849fcf2 Merge pull request ESQL-763 from elastic/main
🤖 ESQL: Merge upstream
2023-02-10 00:21:01 -05:00
Mark Vieira 63d1d9d9f3
Capture logs and config from junit test clusters in CI (#93661) 2023-02-09 09:48:18 -08:00
Andrei Dan 4f04df8d09
Add the new GH `:Data Management/DLM` label to changelog schema (#93597) 2023-02-09 16:49:45 +00:00
elasticsearchmachine 993905ed62 Merge pull request ESQL-759 from elastic/main
🤖 ESQL: Merge upstream
2023-02-08 19:42:53 -05:00
Mark Vieira 11d0d7ad77 Fix stable plugin API backward compatibility checks
When resolving the JARs for checking stable plugin API compatibility
we want to disable transitive dependency resolution since we just need
the API jar, not any of its dependencies.
2023-02-08 12:35:14 -08:00
Ryan Ernst 05d1011d3d
Bump to version 8.8.0 2023-02-08 11:46:42 -08:00
elasticsearchmachine 6d39c8daaf Merge pull request ESQL-753 from elastic/main
🤖 ESQL: Merge upstream
2023-02-08 12:25:48 -05:00
guodoubles e228103e8f
Fix comment (#93577) 2023-02-08 08:55:29 +00:00
elasticsearchmachine 3bcf39ad91 Merge pull request ESQL-748 from elastic/main
🤖 ESQL: Merge upstream
2023-02-08 00:27:23 -05:00
Keith Massey 52a510912e
Adding release notes for JsonProcessor change (#93567) 2023-02-07 13:02:10 -06:00
elasticsearchmachine 038333c3c3 Merge pull request ESQL-742 from elastic/main
🤖 ESQL: Merge upstream
2023-02-07 12:27:14 -05:00
Mark Vieira 11ea308a0d
Avoid running full BWC test matrix when running "check" task (#93563)
We should only test snapshot version when running "check". Due to a
misswired task dependency, we were incorrectly running tests for the
full matrix of supported backward compatible versions.
2023-02-07 09:03:00 -08:00
Przemyslaw Gomulka e6bbfa2570
Align all usages of Jackson to be 2.14.2 (#93438)
upgrading jackson to be 2.14.2 everywhere except for the azure plugin which depends on

jackson-databind  in version 2.13.4.2
and

jackson-core 2.13.4
jackson-dataformat-xml 2.13.4
jackson-datatype-jsr310 2.13.4 
jackson-dataformat-xml 2.13.4
related: #90553
a replace PR for #91725
2023-02-07 16:19:43 +01:00
elasticsearchmachine 3a6db5bf92 Merge pull request ESQL-732 from elastic/main
🤖 ESQL: Merge upstream
2023-02-07 00:21:48 -05:00
Mark Vieira fc78668ebe
Avoid copying test cluster distributions when possible (#93486) 2023-02-06 16:33:56 -08:00
Nikola Grcevski a849480aef
Upgrade asm to 9.4 to support Java20 (#93530) 2023-02-06 14:18:30 -05:00
elasticsearchmachine d5faea0c84 Merge pull request ESQL-719 from elastic/main
🤖 ESQL: Merge upstream
2023-02-03 00:24:59 -05:00
Mark Vieira 43d9a6a0c8
Convert full cluster restart tests to new rest testing framework (#93477) 2023-02-02 13:13:54 -08:00
elasticsearchmachine 4ab1628967 Merge pull request ESQL-713 from elastic/main
🤖 ESQL: Merge upstream
2023-02-02 15:09:50 -05:00
Nikolaj Volgushev 221c93531b
Revert "Convert full cluster restart tests to new rest testing framework (#93422)" (#93444)
Reverts #93422

Should address: #93442 and possibly #93440
2023-02-02 11:29:41 +01:00
elasticsearchmachine fc6c377d12 Merge pull request ESQL-709 from elastic/main
🤖 ESQL: Merge upstream
2023-02-02 00:23:54 -05:00
Mark Vieira 820ba5af23
Convert full cluster restart tests to new rest testing framework (#93422) 2023-02-01 11:34:21 -08:00
Jake Landis 93ecc4d7b3
Consolidate google-oauth-client to latest version (#91722)
related: #87800
fixes #90126
2023-02-01 12:01:52 -06:00
elasticsearchmachine f7cb660fd4 Merge pull request ESQL-698 from elastic/main
🤖 ESQL: Merge upstream
2023-02-01 12:27:03 -05:00
Craig Taverner bc7a31fd08
Revert "Convert full cluster restart tests to new rest testing framework (#93062)" (#93407)
This reverts commit 013b2e5d5e.
2023-02-01 12:57:50 +01:00
elasticsearchmachine 930434f13f Merge pull request ESQL-695 from elastic/main
🤖 ESQL: Merge upstream
2023-02-01 00:21:52 -05:00
Mark Vieira 013b2e5d5e
Convert full cluster restart tests to new rest testing framework (#93062) 2023-01-31 12:26:45 -08:00
Luca Cavanna 200e061e32
Upgrade to Lucene 9.5.0 (#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.
2023-01-31 19:48:25 +01:00
elasticsearchmachine 575c5f9579 Merge pull request ESQL-684 from elastic/main
🤖 ESQL: Merge upstream
2023-01-31 00:23:01 -05:00
Mark Vieira b4484cd8c6
Bump bundled JDK to Java 19.0.2 (#93354)
Closes https://github.com/elastic/elasticsearch/issues/93025
2023-01-30 17:49:58 -05:00
elasticsearchmachine 244889eec9 Merge pull request ESQL-677 from elastic/main
🤖 ESQL: Merge upstream
2023-01-30 12:23:59 -05:00
Abdon Pijpelink 8d60562fe8
[DOCS] Migration guide: link to What's new page for the same version (#92823)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2023-01-30 14:30:50 +01:00
David Turner fddc2abf96
Prefer Strings#format over String#format(Locale, ... (#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.
2023-01-30 10:22:40 +00:00
elasticsearchmachine f86c69935a Merge pull request ESQL-625 from elastic/main
🤖 ESQL: Merge upstream
2023-01-20 00:23:44 -05:00
Mark Vieira 3ad4ef6278
Add FIPS support to new junit-rule test clusters framework (#93021) 2023-01-19 13:39:26 -08:00
elasticsearchmachine 16c960f245 Merge pull request ESQL-620 from elastic/main
🤖 ESQL: Merge upstream
2023-01-19 12:30:46 -05:00
Luca Cavanna edd7749164
Upgrade to lucene-9.5.0-snapshot-d19c3e2e0ed (#92957)
9.5 will include several changes related to vector search. An extensive list is available at https://github.com/apache/lucene/milestone/4 .
2023-01-19 14:07:33 +01:00
Chris Hegarty 29e848e27d Template the Query Execution Engine data classes (ESQL-596)
The templates are straightforward java-like files with minimal string
replace and ifdef support. These template files are processed by ANTLR's
StringTemplate library to produce java source code files, which are
checked into the repository.

This source code generation mechanism is separate to that of what
generates the aggs implementations. The aggs generation and the data
classes generation are different use cases. The latter being a
convenience to reduce the friction of specialised data class types while
ensuring consistency and maintainability. Whereas the former is intended
to create optimised versions of particular aggs, given a particular
recipe ( one could envisage a point where aggs specialisations are
generated at runtime, rather than compile time ).

For now, the data classes are generated into a separate output
directory, to avoid Gradle issues. A later change should consider how to
best merge the output of the annotation processor generated aggs and the
string-template generate data classes.

Co-authored-by: Rene Groeschke <rene@elastic.co>
2023-01-19 08:14:56 +00:00
elasticsearchmachine 8be14dae70 Merge pull request ESQL-612 from elastic/main
🤖 ESQL: Merge upstream
2023-01-18 12:24:01 -05:00
William Brafford c9e8101d82
Validate that stable plugins do not break compatibility (#92776)
We need to verify, for each release, that our stable plugin APIs
are not breaking.

This commit adds some Gradle support for basic backwards compatibility
testing. On the Gradle side, we add a new qa project to test the
current commit against downloads of released versions, and against
fresh builds of snapshot versions.

As for the actual comparison, we break up the output of javap (the
decompiler) by line and create maps of classes to public class,
field, and method declarations within those class files. We then
check that the signature map from the new jar is not missing any
elements present in the old jar. This method has known limitations,
which are documented in the JarApiComparisonTask class.

Co-authored-by: Mark Vieira <portugee@gmail.com>
2023-01-18 06:48:48 -05:00
elasticsearchmachine 89749bb159 Merge pull request ESQL-608 from elastic/main
🤖 ESQL: Merge upstream
2023-01-18 00:29:20 -05:00
Mark Vieira 2b04ca63fd
Avoid using autogenerated project name with docker compose plugin (#93015)
The docker-compose plugin uses randomized auto-generated project names
for test fixtures. This can cause issues on some platforms where it will
generate an invalid identifier. This commit simply configures the plugin
to use the gradle project name for docker compose.
2023-01-17 15:10:22 -08:00
elasticsearchmachine b4fb947b23 Merge pull request ESQL-601 from elastic/main
🤖 ESQL: Merge upstream
2023-01-16 00:24:22 -05:00
Gordon Brown f21881369c
Add Remote Cluster port to support RCS 2.0 (#91667)
This PR adds settings and infrastructure to support a new Remote Cluster port,
to be used in Remote Cluster Security 2.0. Specifically, this commit adds new
settings that allow opening a new Remote Cluster port, which will eventually
exclusively support the new cross-cluster authentication method. Since support
for that new authentication method is still under construction, these settings
are hidden behind a feature flag.

The new settings cover all Transport profile settings, to ensure that users will
not have to be exposed to Transport Profiles directly to make use of RCS2.0
functionality. This includes all core settings, as well as IP filter and SSL
configuration.

Co-authored-by: Yang Wang <yang.wang@elastic.co>
2023-01-16 12:31:23 +11:00
elasticsearchmachine b6afc4037e Merge pull request ESQL-600 from elastic/main
🤖 ESQL: Merge upstream
2023-01-14 12:22:26 -05:00
Przemyslaw Gomulka 2cdaabe783
[Stable plugin api] Drop api suffix in package names (#92905)
Refactoring that drops the api suffix from package name
This will have to be followed up by a plugins/examples fix in imports
Also set an artifact group name to `org.elasticsearch.plugin` in the plugin-api and plugin-analysis-api
2023-01-14 09:49:37 +01:00
elasticsearchmachine c9b130f11f Merge pull request ESQL-598 from elastic/main
🤖 ESQL: Merge upstream
2023-01-14 00:22:44 -05:00
Mark Vieira 6808d8c0bd Make spotless happy 2023-01-13 12:09:34 -08:00
Mark Vieira 2f8476e197 Temporarily disable the use of read-only dependency cache 2023-01-13 12:01:50 -08:00
elasticsearchmachine eb49471c78 Merge pull request ESQL-576 from elastic/main
🤖 ESQL: Merge upstream
2023-01-12 00:27:28 -05:00