Commit Graph

55685 Commits

Author SHA1 Message Date
Kartik Ganesh c7c410a063
Refactoring GatedAutoCloseable and moving RecoveryState.Timer (#2965)
* Refactoring GatedAutoCloseable to AutoCloseableRefCounted

This is a part of the process of merging our feature branch - feature/segment-replication - back into main by re-PRing our changes from the feature branch.
GatedAutoCloseable currently wraps a subclass of RefCounted. Segment replication adds another subclass, but this also wraps RefCounted. Both subclasses have the same shutdown hook - decRef. This change makes the superclass less generic to increase code convergence.

The breakdown of the plan to merge segment-replication to main is detailed in #2355
Segment replication design proposal - #2229

Signed-off-by: Kartik Ganesh <gkart@amazon.com>

* Minor refactoring in RecoveryState

This change makes two minor updates to RecoveryState -
1. The readRecoveryState API is removed because it can be replaced by an invocation of the constructor
2. The class members of the Timer inner class are changed to private, and accesses are only through the public APIs

Signed-off-by: Kartik Ganesh <gkart@amazon.com>

* Update RecoveryTargetTests to test Timer subclasses deterministically

This change removes the use of RandomBoolean in testing the Timer classes and creates a dedicated unit test for each. The common test logic is shared via a private method.

Signed-off-by: Kartik Ganesh <gkart@amazon.com>

* Move the RecoveryState.Timer class to a top-level class

This will eventually be reused across both replication use-cases - peer recovery and segment replication.

Signed-off-by: Kartik Ganesh <gkart@amazon.com>

* Further update of timer tests in RecoveryTargetTests

Removes a non-deterministic code path around stopping the timer, and avoids assertThat (deprecated)

Signed-off-by: Kartik Ganesh <gkart@amazon.com>

* Rename to ReplicationTimer

Signed-off-by: Kartik Ganesh <gkart@amazon.com>

* Remove RecoveryTargetTests assert on a running timer

Trying to serialize and deserialize a running Timer instance, and then checking for equality leads to flaky test failures when the ser/deser takes time.

Signed-off-by: Kartik Ganesh <gkart@amazon.com>
2022-04-20 18:02:25 -04:00
Andriy Redko 3b7e654757
Remove JavaVersion, use builtin Runtime.Version to deal with runtime versions (#3006)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
2022-04-20 17:14:02 -04:00
Nick Knize 6915df94c3
[Remove] remaining AllFieldMapper references (#3007)
AllFieldMapper was deprecated in legacy 6x. The remaining references are
removed, along with the field mapper and corresponding tests.

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
2022-04-20 15:05:13 -05:00
Tianli Feng b45bfc9afc
Revert "Make High-Level-Rest-Client tests allow deprecation warning temporarily, during deprecation of request parameter 'master_timeout' (#2702)" (#2744)
This reverts commit 6a2a33d187.

During the process of deprecating REST API request parameter master_timeout and adding alternative parameter cluster_manager_timeout, I made High-Level-Rest-Client tests allow deprecation warning temporarily, by changing the argument of `setStrictDeprecationMode()` to false when building `RestClient` for tests, in the above commit / PR https://github.com/opensearch-project/OpenSearch/pull/2702,

This PR sets the High-Level-Rest-Client tests back to treating warning header as a failure.

Signed-off-by: Tianli Feng <ftianli@amazon.com>
2022-04-19 13:39:42 -07:00
Tianli Feng 18f4495f4d
Replace parameter 'master_timeout' with 'cluster_manager_tiemout' in RequestConverters of High-Level-Rest-Client (#2683)
The REST API request parameter "master_timeout" will be deprecated in server version 3.0, and removed in 4.0. The alternative parameter "cluster_manager_timeout" is added in server 2.0 .
With the change in this commit, High-Level-Rest-Client will not be compatible with OpenSearch server 1.x (and below).
- Use parameter `cluster_manager_timeout` instead of `master_timeout` in High-Level-Rest-Client `RequestConverters` class for building REST requests
- Modify corresponding unit tests
- Change lots of "master timeout" in internal method and class names.

Signed-off-by: Tianli Feng <ftianli@amazon.com>
2022-04-19 11:52:02 -07:00
Andriy Redko ede26d945f
Add Gradle 7.4 Aggregated Test Reports (#2821)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
2022-04-19 14:16:13 -04:00
Andriy Redko 896b97e54d
Remove binary (class) files from the repository (#2969)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
2022-04-19 12:34:42 -04:00
Vacha Shah 8c9078d134
Adding workflow to create documentation related issues in documentation-website repo (#2929)
Signed-off-by: Vacha Shah <vachshah@amazon.com>
2022-04-19 12:19:59 -04:00
Yevhen Tienkaiev d8c815c6be
Add `positive_score_impact` support for `rank_features` (#2725)
Adds positive_score_impact support for rank_features field mapper.

Signed-off-by: Yevhen Tienkaiev <hronom@gmail.com>
2022-04-18 23:38:54 -05:00
Matt Weber 8bfb082ee1
Use G1GC on JDK11+ (#2964)
Update default jvm settings to use G1GC by default for
JDK11 and greater.

Signed-off-by: Matt Weber <matt@mattweber.org>
2022-04-18 23:34:54 -05:00
Vacha Shah 8033183c46
Adding reta to codeowners (#2967)
Signed-off-by: Vacha Shah <vachshah@amazon.com>
2022-04-18 16:14:35 -07:00
Kunal Kotwani b2f2658f8d
Override toString for usable logs (#2895)
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
2022-04-18 15:50:21 -07:00
dependabot[bot] 25d81c5fd5
Bump google-oauth-client from 1.33.2 to 1.33.3 in /plugins/discovery-gce (#2943)
* Bump google-oauth-client from 1.33.2 to 1.33.3 in /plugins/discovery-gce

Bumps [google-oauth-client](https://github.com/googleapis/google-oauth-java-client) from 1.33.2 to 1.33.3.
- [Release notes](https://github.com/googleapis/google-oauth-java-client/releases)
- [Changelog](https://github.com/googleapis/google-oauth-java-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-oauth-java-client/compare/v1.33.2...v1.33.3)

---
updated-dependencies:
- dependency-name: com.google.oauth-client:google-oauth-client
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Updating SHAs

Signed-off-by: dependabot[bot] <support@github.com>

* Fixing precommit failures

Signed-off-by: Vacha Shah <vachshah@amazon.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vacha Shah <vachshah@amazon.com>
2022-04-18 15:22:12 -07:00
dependabot[bot] ca102ea209
Bump grpc-context from 1.29.0 to 1.45.1 in /plugins/repository-gcs (#2944)
* Bump grpc-context from 1.29.0 to 1.45.1 in /plugins/repository-gcs

Bumps [grpc-context](https://github.com/grpc/grpc-java) from 1.29.0 to 1.45.1.
- [Release notes](https://github.com/grpc/grpc-java/releases)
- [Commits](https://github.com/grpc/grpc-java/compare/v1.29.0...v1.45.1)

---
updated-dependencies:
- dependency-name: io.grpc:grpc-context
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Updating SHAs

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2022-04-18 12:25:14 -07:00
dependabot[bot] bb19f627f0
Bump guava from 30.1.1-jre to 31.1-jre in /plugins/repository-hdfs (#2948)
* Bump guava from 30.1.1-jre to 31.1-jre in /plugins/repository-hdfs

Bumps [guava](https://github.com/google/guava) from 30.1.1-jre to 31.1-jre.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

---
updated-dependencies:
- dependency-name: com.google.guava:guava
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Updating SHAs

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2022-04-18 11:30:36 -07:00
dependabot[bot] 002e614ecf
Bump hadoop-minicluster from 3.3.1 to 3.3.2 in /test/fixtures/hdfs-fixture (#2381)
* Bump hadoop-minicluster in /test/fixtures/hdfs-fixture

Bumps hadoop-minicluster from 3.3.1 to 3.3.2.

---
updated-dependencies:
- dependency-name: org.apache.hadoop:hadoop-minicluster
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fixing gradle check

Signed-off-by: Vacha Shah <vachshah@amazon.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vacha Shah <vachshah@amazon.com>
2022-04-18 11:27:19 -07:00
dependabot[bot] ab026025d7
Bump reactor-core from 3.4.15 to 3.4.17 in /plugins/repository-azure (#2947)
* Bump reactor-core from 3.4.15 to 3.4.17 in /plugins/repository-azure

Bumps [reactor-core](https://github.com/reactor/reactor-core) from 3.4.15 to 3.4.17.
- [Release notes](https://github.com/reactor/reactor-core/releases)
- [Commits](https://github.com/reactor/reactor-core/compare/v3.4.15...v3.4.17)

---
updated-dependencies:
- dependency-name: io.projectreactor:reactor-core
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Updating SHAs

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2022-04-18 11:18:02 -07:00
dependabot[bot] a36a1e395c
Bump jna from 5.10.0 to 5.11.0 in /buildSrc (#2946)
Bumps [jna](https://github.com/java-native-access/jna) from 5.10.0 to 5.11.0.
- [Release notes](https://github.com/java-native-access/jna/releases)
- [Changelog](https://github.com/java-native-access/jna/blob/master/CHANGES.md)
- [Commits](https://github.com/java-native-access/jna/compare/5.10.0...5.11.0)

---
updated-dependencies:
- dependency-name: net.java.dev.jna:jna
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-18 11:17:21 -07:00
Andriy Redko d61d170332
Removed java11 source folders since JDK-11 is the baseline now (#2898)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
2022-04-18 10:16:22 -07:00
Vacha Shah fc378c7256
Adding asm to version file and upgrading (#2933)
Signed-off-by: Vacha Shah <vachshah@amazon.com>
2022-04-18 10:07:14 -07:00
dependabot[bot] eba1935178
Bump org.gradle.test-retry from 1.3.1 to 1.3.2 (#2940)
Bumps org.gradle.test-retry from 1.3.1 to 1.3.2.

---
updated-dependencies:
- dependency-name: org.gradle.test-retry
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-18 10:06:02 -07:00
Sarat Vemulapalli 1eda2bbe3a
Fixing Scaled float field mapper to respect ignoreMalformed setting (#2918)
* Fixing Scaled float field mapper to respect ignoreMalformed setting

Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>

* Adding unit tests

Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
2022-04-15 18:07:10 -05:00
Marc Handalian ca9151fa24
Add Github Workflow to build and publish lucene snapshots. (#2906)
This change introduces a github workflow so that we can build and push snapshots of lucene.
The RepositoriesSetupPlugin is also updated with a url from where these snapshots can be retrieved.

Signed-off-by: Marc Handalian <handalm@amazon.com>
2022-04-15 15:09:33 -05:00
Daniel Doubrovkine (dB.) a6b4967dcf
Adding @reta to OpenSearch maintainers. (#2905)
* Adding @reta to OpenSearch maintainers.

Signed-off-by: dblock <dblock@amazon.com>

* Update Andrew Ross github id

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>

Co-authored-by: Nick Knize <nknize@apache.org>
2022-04-15 11:10:42 -04:00
Ankit Jain d39c18f7fe
Excluding system indices from max shard limit validator (#2894)
* Excluding system indices from max shard limit validator

Signed-off-by: Ankit Jain <jain.ankitk@gmail.com>

* Fixing spotless check violations

Signed-off-by: Ankit Jain <jain.ankitk@gmail.com>

* Fixing NPE due to null isHidden

Signed-off-by: Ankit Jain <jain.ankitk@gmail.com>

* Adding unit tests for shard opening scenario

Signed-off-by: Ankit Jain <jain.ankitk@gmail.com>

* Addressing review comments

Signed-off-by: Ankit Jain <jain.ankitk@gmail.com>
2022-04-14 16:36:01 -07:00
Vacha Shah 452e368bde
Adding a null pointer check to fix index_prefix query (#2879)
* Adding a null pointer check to fix index_prefix query

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Adding test

Signed-off-by: Vacha Shah <vachshah@amazon.com>
2022-04-14 11:07:22 -07:00
Poojita Raj c4b684d3ae
Add functionality to fast forward local processed checkpoints [segment replication] (#2576) (#2883)
* fix local processed checkpoint update (#2576)

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* separated tests + wrapper function

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* moved tests + compareAndSet change

Signed-off-by: Poojita Raj <poojiraj@amazon.com>
2022-04-13 14:00:43 -07:00
Owais Kazi 3c5d997a76
Added a new line linter (#2875)
* Added linter to add new line

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Fixed new lines

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Ignore empty files

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Updated DEVELOPER GUIDE

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Renamed workflow file

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Fixed failing tests

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
2022-04-13 14:14:18 -04:00
Tianli Feng 08e4a35839
Add request parameter 'cluster_manager_timeout' and deprecate 'master_timeout' - in Ingest APIs and Script APIs (#2682)
- Deprecate the request parameter `master_timeout` that used in Ingest APIs and Script APIs which have got the parameter. 
- Add alternative new request parameter `cluster_manager_timeout`.
- Add unit tests.

Signed-off-by: Tianli Feng <ftianli@amazon.com>
2022-04-13 11:13:37 -07:00
opensearch-trigger-bot[bot] 3af4300c3f
Decouple IndexSettings from IncludeExclude (#2860) (#2861)
This change refactors an earlier change to impose a reg-ex size limit on the include/exclude string. Instead of accepting an IndexSettings instance, the class now accepts a integer limit value. This is necessary because the IncludeExclude class is used outside the core codebase, whose use-cases may be unaware of indices and their settings. To ensure that a limit is always imposed, a default limit is defined in the class.

(cherry picked from commit ba1966853e728b153e42be59ba449420e79b09ee)
Signed-off-by: Kartik Ganesh <gkart@amazon.com>

Co-authored-by: Kartik Ganesh <gkart@amazon.com>
2022-04-13 14:13:18 -04:00
Tianli Feng 135177e28e
Remove unused file x-pack/plugin/core/licenses/commons-logging-1.2.jar.sha1 (#2869)
Signed-off-by: Tianli Feng <ftianli@amazon.com>
2022-04-13 14:09:30 -04:00
Tianli Feng 455fad34ee
Change deprecation message for API parameter value 'master_node' of parameter 'metric' (#2880)
Signed-off-by: Tianli Feng <ftianli@amazon.com>
2022-04-12 14:58:19 -07:00
Tianli Feng a89b7e6216
Add request parameter 'cluster_manager_timeout' and deprecate 'master_timeout' - in Snapshot APIs (#2680)
* Deprecate the request parameter `master_timeout` that used in Snapshot APIs which have got the parameter. 
* Add alternative new request parameter `cluster_manager_timeout`.
* Add unit tests.

Signed-off-by: Tianli Feng <ftianli@amazon.com>
2022-04-11 20:42:21 -07:00
Tianli Feng ba3ed8a9cb
Add request parameter 'cluster_manager_timeout' and deprecate 'master_timeout' - in Index Template APIs (#2678)
- Deprecate the request parameter `master_timeout` that used in Index Template APIs which have got the parameter. 
(The other Index APIs are addressed in PR https://github.com/opensearch-project/OpenSearch/pull/2660) 
- Add alternative new request parameter `cluster_manager_timeout`.
- Add unit tests.
Signed-off-by: Tianli Feng <ftianli@amazon.com>
2022-04-11 17:29:06 -07:00
Tianli Feng ba8657aca5
Change deprecation message for REST API parameter 'master_timeout' to specify the version of removal (#2863)
Signed-off-by: Tianli Feng <ftianli@amazon.com>
2022-04-11 15:59:04 -07:00
dependabot[bot] 7dd171d48a
Bump protobuf-java-util from 3.19.3 to 3.20.0 in /plugins/repository-gcs (#2834)
* Bump protobuf-java-util from 3.19.3 to 3.20.0 in /plugins/repository-gcs

Bumps [protobuf-java-util](https://github.com/protocolbuffers/protobuf) from 3.19.3 to 3.20.0.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.19.3...v3.20.0)

---
updated-dependencies:
- dependency-name: com.google.protobuf:protobuf-java-util
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Updating SHAs

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2022-04-11 11:50:03 -04:00
dependabot[bot] d308795bf0
Bump google-oauth-client from 1.33.1 to 1.33.2 in /plugins/discovery-gce (#2828)
* Bump google-oauth-client from 1.33.1 to 1.33.2 in /plugins/discovery-gce

Bumps [google-oauth-client](https://github.com/googleapis/google-oauth-java-client) from 1.33.1 to 1.33.2.
- [Release notes](https://github.com/googleapis/google-oauth-java-client/releases)
- [Changelog](https://github.com/googleapis/google-oauth-java-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-oauth-java-client/compare/v1.33.1...v1.33.2)

---
updated-dependencies:
- dependency-name: com.google.oauth-client:google-oauth-client
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Updating SHAs

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2022-04-11 11:49:32 -04:00
dependabot[bot] 725b5ca004
Bump joni from 2.1.41 to 2.1.43 in /libs/grok (#2832)
* Bump joni from 2.1.41 to 2.1.43 in /libs/grok

Bumps [joni](https://github.com/jruby/joni) from 2.1.41 to 2.1.43.
- [Release notes](https://github.com/jruby/joni/releases)
- [Commits](https://github.com/jruby/joni/compare/joni-2.1.41...joni-2.1.43)

---
updated-dependencies:
- dependency-name: org.jruby.joni:joni
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Updating SHAs

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2022-04-11 11:48:56 -04:00
dependabot[bot] 00ae764752
Bump protobuf-java from 3.19.3 to 3.20.0 in /plugins/repository-hdfs (#2836)
* Bump protobuf-java from 3.19.3 to 3.20.0 in /plugins/repository-hdfs

Bumps [protobuf-java](https://github.com/protocolbuffers/protobuf) from 3.19.3 to 3.20.0.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.19.3...v3.20.0)

---
updated-dependencies:
- dependency-name: com.google.protobuf:protobuf-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Updating SHAs

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2022-04-11 11:48:21 -04:00
dependabot[bot] 81e2455df1
Bump asm-analysis from 9.2 to 9.3 in /test/logger-usage (#2829)
Bumps asm-analysis from 9.2 to 9.3.

---
updated-dependencies:
- dependency-name: org.ow2.asm:asm-analysis
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 11:47:50 -04:00
dependabot[bot] c69ad3deca
Bump azure-core from 1.26.0 to 1.27.0 in /plugins/repository-azure (#2837)
* Bump azure-core from 1.26.0 to 1.27.0 in /plugins/repository-azure

Bumps [azure-core](https://github.com/Azure/azure-sdk-for-java) from 1.26.0 to 1.27.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-java/releases)
- [Commits](https://github.com/Azure/azure-sdk-for-java/compare/azure-core_1.26.0...azure-core_1.27.0)

---
updated-dependencies:
- dependency-name: com.azure:azure-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Updating SHAs

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2022-04-11 11:47:19 -04:00
dependabot[bot] f68c8f4527
Bump gradle-info-plugin from 7.1.3 to 11.3.3 in /buildSrc (#2831)
Bumps [gradle-info-plugin](https://github.com/nebula-plugins/gradle-info-plugin) from 7.1.3 to 11.3.3.
- [Release notes](https://github.com/nebula-plugins/gradle-info-plugin/releases)
- [Changelog](https://github.com/nebula-plugins/gradle-info-plugin/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nebula-plugins/gradle-info-plugin/compare/v7.1.3...v11.3.3)

---
updated-dependencies:
- dependency-name: com.netflix.nebula:gradle-info-plugin
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 11:42:16 -04:00
dependabot[bot] 0a17faca61
Bump cdi-api from 1.2 to 2.0 in /qa/wildfly (#2835)
Bumps [cdi-api](https://github.com/cdi-spec/cdi) from 1.2 to 2.0.
- [Release notes](https://github.com/cdi-spec/cdi/releases)
- [Commits](https://github.com/cdi-spec/cdi/compare/1.2...2.0)

---
updated-dependencies:
- dependency-name: javax.enterprise:cdi-api
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 11:41:48 -04:00
dependabot[bot] c876f55294
Bump com.diffplug.spotless from 6.4.1 to 6.4.2 (#2827)
Bumps com.diffplug.spotless from 6.4.1 to 6.4.2.

---
updated-dependencies:
- dependency-name: com.diffplug.spotless
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 11:41:20 -04:00
Yoann Rodière b5d5616d44
Update commons-logging to 1.2 (#2806)
* Upgrade to Apache Commons Logging 1.2

Signed-off-by: Yoann Rodière <yoann@hibernate.org>

* Clarify that Apache HTTP/commons-* dependencies are not just for tests

Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2022-04-08 16:43:51 -04:00
Kartik 2d89bc7c61
Updates to the large string reg-ex check (#2814)
* Updates to the large string reg-ex check

Removed the null-case for IndexSettings since this only occurs in tests. The tests now use a dummy Index Setting.
This change also fixes a bug with the base case handling of max regex length in the check.

Signed-off-by: Kartik Ganesh <gkart@amazon.com>
2022-04-07 18:12:33 -07:00
Tianli Feng 47a22bb08d
Replace remaining 'blacklist' with 'denylist' in internal class and method names (#2784)
* Replace blacklist with denylist in BlacklistedPathPatternMatcher

Signed-off-by: Tianli Feng <ftianli@amazon.com>

* Replace blacklist with denylist in assumption message

Signed-off-by: Tianli Feng <ftianli@amazon.com>

* Replace all Blacklisted with Denylisted

Signed-off-by: Tianli Feng <ftianli@amazon.com>

* Replace all blacklist(key) with denylist(key)

Signed-off-by: Tianli Feng <ftianli@amazon.com>

* Adjust format by spotlessApply task

Signed-off-by: Tianli Feng <ftianli@amazon.com>
2022-04-07 15:45:20 -07:00
Tianli Feng 249155772b
Allow deprecation warning for API call GET _cat/master in ExceptionIT of mixed cluster BWC test (#2767)
Signed-off-by: Tianli Feng <ftianli@amazon.com>
2022-04-07 15:31:31 -07:00
Kartik 566ebfa4fe
Bugfix to guard against stack overflow errors caused by very large reg-ex input (#2810)
* Bugfix to guard against stack overflow errors caused by very large reg-ex input

This change fixes a code path that did not properly impose the index-level max_regex_length limit. Therefore, it was possibly to provide ar arbitrarily large string as the include/exclude reg-ex value under search aggregations. This exposed the underlying node to crashes from a StackOverflowError, due to how the Lucene RegExp class processes strings using stack frames.

Signed-off-by: Kartik Ganesh <gkart@amazon.com>

* Adding integration tests for large string RegEx

Signed-off-by: Kartik Ganesh <gkart@amazon.com>

* Spotless

Signed-off-by: Kartik Ganesh <gkart@amazon.com>
2022-04-07 14:35:40 -07:00
Andriy Redko 0244b2a2df
Update azure-storage-blob to 12.15.0: fix test flakiness (#2795)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
2022-04-06 16:28:14 -05:00