Owais Kazi
8ea246e70e
Changed JAVA_HOME to jdk-17 ( #2656 )
...
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
2022-03-29 18:26:04 -07:00
Mohit Godwani
ec4fe7066b
Make discovered_master field optional on the client to support compatibility for opensearch client with odfe ( #2641 )
...
Signed-off-by: Mohit Godwani <mgodwan@amazon.com>
2022-03-29 14:00:12 -04:00
dependabot[bot]
fb5cebbb9b
Bump reactor-netty from 1.0.16 to 1.0.17 in /plugins/repository-azure ( #2613 )
...
* Bump reactor-netty from 1.0.16 to 1.0.17 in /plugins/repository-azure
Bumps [reactor-netty](https://github.com/reactor/reactor-netty ) from 1.0.16 to 1.0.17.
- [Release notes](https://github.com/reactor/reactor-netty/releases )
- [Commits](https://github.com/reactor/reactor-netty/compare/v1.0.16...v1.0.17 )
---
updated-dependencies:
- dependency-name: io.projectreactor.netty:reactor-netty
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-03-29 10:46:13 -07:00
Suraj Singh
bcaa06bc0f
Add mapping method back referenced in other repos ( #2636 )
...
Signed-off-by: Suraj Singh <surajrider@gmail.com>
2022-03-29 11:27:28 -05:00
Andriy Redko
d8a1ba6912
[CVE-2020-36518] Update jackson-databind to 2.13.2.2 ( #2599 )
...
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
2022-03-29 12:24:37 -04:00
Andriy Redko
223efe68e6
Update Gradle to 7.4.1 ( #2078 )
...
* Update Gradle to 7.4.1
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
* Address code review comments, added @PathSensitive(PathSensitivity.RELATIVE) where applicable
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
2022-03-29 12:23:08 -04:00
dependabot[bot]
8f4aec109d
Bump forbiddenapis in /buildSrc/src/testKit/thirdPartyAudit ( #2611 )
...
Bumps [forbiddenapis](https://github.com/policeman-tools/forbidden-apis ) from 3.2 to 3.3.
- [Release notes](https://github.com/policeman-tools/forbidden-apis/releases )
- [Commits](https://github.com/policeman-tools/forbidden-apis/compare/3.2...3.3 )
---
updated-dependencies:
- dependency-name: de.thetaphi:forbiddenapis
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-03-28 13:13:49 -07:00
dependabot[bot]
932cab67bd
Bump asm-tree from 7.2 to 9.2 in /modules/lang-painless ( #2617 )
...
* Bump asm-tree from 7.2 to 9.2 in /modules/lang-painless
Bumps asm-tree from 7.2 to 9.2.
---
updated-dependencies:
- dependency-name: org.ow2.asm:asm-tree
dependency-type: direct:production
update-type: version-update:semver-major
...
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-03-28 15:03:19 -04:00
dependabot[bot]
2425f64baa
Bump htrace-core4 from 4.1.0-incubating to 4.2.0-incubating in /plugins/repository-hdfs ( #2618 )
...
* Bump htrace-core4 in /plugins/repository-hdfs
Bumps htrace-core4 from 4.1.0-incubating to 4.2.0-incubating.
---
updated-dependencies:
- dependency-name: org.apache.htrace:htrace-core4
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-03-28 15:02:44 -04:00
dependabot[bot]
0216ab2435
Bump google-oauth-client from 1.31.0 to 1.33.1 in /plugins/repository-gcs ( #2616 )
...
* Bump google-oauth-client in /plugins/repository-gcs
Bumps [google-oauth-client](https://github.com/googleapis/google-oauth-java-client ) from 1.31.0 to 1.33.1.
- [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.31.0...v1.33.1 )
---
updated-dependencies:
- dependency-name: com.google.oauth-client:google-oauth-client
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-03-28 12:44:43 -05:00
dependabot[bot]
e44706e500
Bump jettison from 1.1 to 1.4.1 in /plugins/discovery-azure-classic ( #2614 )
...
* Bump jettison from 1.1 to 1.4.1 in /plugins/discovery-azure-classic
Bumps [jettison](https://github.com/jettison-json/jettison ) from 1.1 to 1.4.1.
- [Release notes](https://github.com/jettison-json/jettison/releases )
- [Commits](https://github.com/jettison-json/jettison/compare/jettison-1.1...jettison-1.4.1 )
---
updated-dependencies:
- dependency-name: org.codehaus.jettison:jettison
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-03-28 12:42:31 -05:00
dependabot[bot]
dd79352baa
Bump json-schema-validator from 1.0.67 to 1.0.68 in /buildSrc ( #2610 )
...
Bumps [json-schema-validator](https://github.com/networknt/json-schema-validator ) from 1.0.67 to 1.0.68.
- [Release notes](https://github.com/networknt/json-schema-validator/releases )
- [Changelog](https://github.com/networknt/json-schema-validator/blob/master/CHANGELOG.md )
- [Commits](https://github.com/networknt/json-schema-validator/compare/1.0.67...1.0.68 )
---
updated-dependencies:
- dependency-name: com.networknt:json-schema-validator
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-03-28 12:40:23 -05:00
Sruti Parthiban
8b997c1d84
Add resource stats to task framework ( #2089 )
...
* Add resource stats to task framework
Signed-off-by: sruti1312 <srutiparthiban@gmail.com>
* Update thread resource info and add tests
Signed-off-by: sruti1312 <srutiparthiban@gmail.com>
2022-03-28 13:00:59 -04:00
Vacha Shah
5dd75bb0aa
Removing SLM check in tests for OpenSearch versions ( #2604 )
...
Signed-off-by: Vacha Shah <vachshah@amazon.com>
2022-03-28 11:32:18 -05:00
Owais Kazi
f1d35d028f
Added jenkinsfile to run gradle check in OpenSearch ( #2166 )
...
* Added jenkinsfile for gradle check
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
* Added jenkinsfile to run gradle check
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
* PR comment
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
2022-03-25 16:45:06 -07:00
Andriy Redko
d4ce87bddc
Fix build-tools/reaper source/target compatibility to be JDK-11 ( #2596 )
...
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
2022-03-25 17:53:16 -04:00
Andriy Redko
908682d437
Enable merge on refresh and merge on commit on Opensearch ( #2535 )
...
Enables merge on refresh and merge on commit in Opensearch by
way of two new index options:
index.merge_on_flush.max_full_flush_merge_wait_time and
index.merge_on_flush.enabled. Default merge_on_flush is disabled and
wait time is 10s.
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
2022-03-25 13:45:34 -05:00
Owais Kazi
cc0e66b1dc
Replaced "master" terminology in Log message ( #2575 )
...
Changed the log message to cluster-manager from master
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
2022-03-24 21:50:54 -05:00
Andriy Redko
b6ca0d1f78
Concurrent Searching (Experimental) ( #1500 )
...
* Concurrent Searching (Experimental)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
* Addressingf code review comments
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
2022-03-24 14:20:31 -04:00
Vacha Shah
2e9f89a89e
Adding signoff option for version workflow PR ( #2572 )
...
Signed-off-by: Vacha Shah <vachshah@amazon.com>
2022-03-23 15:56:11 -04:00
Nick Knize
511ac884fe
[Bug] Fix InboundDecoder version compat check ( #2570 )
...
Change InboundDecoder ensureVersionCompatibility check for onOrAfter
V_2_0_0 instead of explicit version check. This way bug fix and minor
versions will correctly handshake in a mixed 1.x Cluster.
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
2022-03-23 13:26:36 -05:00
Suraj Singh
c1d5491baf
[Type removal] Remove deprecation warning on use of _type in doc scripts ( #2564 )
...
Signed-off-by: Suraj Singh <surajrider@gmail.com>
2022-03-23 08:15:17 -05:00
Nick Knize
db7f4b0848
[Upgrade] Lucene 9.1 release ( #2560 )
...
Upgrades to the official 9.1 release
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
2022-03-23 07:26:18 -05:00
dependabot[bot]
fb76361812
Bump antlr4 from 4.5.3 to 4.9.3 in /modules/lang-painless ( #2537 )
...
Bumps [antlr4](https://github.com/antlr/antlr4 ) from 4.5.3 to 4.9.3.
- [Release notes](https://github.com/antlr/antlr4/releases )
- [Changelog](https://github.com/antlr/antlr4/blob/master/CHANGES.txt )
- [Commits](https://github.com/antlr/antlr4/compare/4.5.3...4.9.3 )
---
updated-dependencies:
- dependency-name: org.antlr:antlr4
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-21 23:32:44 -05:00
Andriy Redko
82fb7abb71
Introduce QueryPhaseSearcher extension point (SearchPlugin) ( #1931 )
...
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
2022-03-21 23:11:23 -05:00
Nick Knize
bd2d9350b7
Support for geo_bounding_box queries on geo_shape fields ( #2506 )
...
Adds support for using geo_bounding_box queries on geo_shape field types by
lifting the geo_point restriction in the QueryBuilder. Bounding Box query
integration tests are abstracted to test both geo_point and geo_shape types.
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
2022-03-21 22:51:51 -05:00
dependabot[bot]
d2bdcdec33
Bump commons-lang3 from 3.7 to 3.12.0 in /plugins/repository-hdfs ( #2552 )
...
Bumps commons-lang3 from 3.7 to 3.12.0.
---
updated-dependencies:
- dependency-name: org.apache.commons:commons-lang3
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-21 22:44:46 -05:00
dependabot[bot]
bb748e0a1b
Bump gson from 2.8.9 to 2.9.0 in /plugins/repository-gcs ( #2550 )
...
* Bump gson from 2.8.9 to 2.9.0 in /plugins/repository-gcs
Bumps [gson](https://github.com/google/gson ) from 2.8.9 to 2.9.0.
- [Release notes](https://github.com/google/gson/releases )
- [Changelog](https://github.com/google/gson/blob/master/CHANGELOG.md )
- [Commits](https://github.com/google/gson/compare/gson-parent-2.8.9...gson-parent-2.9.0 )
---
updated-dependencies:
- dependency-name: com.google.code.gson:gson
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-03-21 18:27:24 -07:00
dependabot[bot]
7d9cd3102f
Bump google-oauth-client from 1.31.0 to 1.33.1 in /plugins/discovery-gce ( #2524 )
...
* Bump google-oauth-client from 1.31.0 to 1.33.1 in /plugins/discovery-gce
Bumps [google-oauth-client](https://github.com/googleapis/google-oauth-java-client ) from 1.31.0 to 1.33.1.
- [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.31.0...v1.33.1 )
---
updated-dependencies:
- dependency-name: com.google.oauth-client:google-oauth-client
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>
* Fixing precommit failure
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-03-21 18:02:55 -07:00
Sarat Vemulapalli
5311844f3b
Updating repository commons logging version ( #2541 )
...
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
2022-03-21 17:30:00 -07:00
Suraj Singh
59d1e69129
[Remove] Types from PutIndexTemplateRequest and builder to reduce mapping to a string ( #2510 )
...
Signed-off-by: Suraj Singh <surajrider@gmail.com>
2022-03-21 18:49:18 -05:00
Nick Knize
4bb8add982
Support for geo_distance queries on geo_shape fields ( #2516 )
...
Adds support for using the geo_distance query on geo_shape field types by
lifting the geo_point restriction in the QueryBuilder. Distance query
integration tests are abstracted to test both geo_point and geo_shape field
types.
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
2022-03-21 18:47:49 -05:00
dependabot[bot]
42aa7ab68a
Bump google-cloud-core from 1.93.3 to 2.5.10 in /plugins/repository-gcs ( #2536 )
...
Bumps [google-cloud-core](https://github.com/googleapis/java-core ) from 1.93.3 to 2.5.10.
- [Release notes](https://github.com/googleapis/java-core/releases )
- [Changelog](https://github.com/googleapis/java-core/blob/main/CHANGELOG.md )
- [Commits](https://github.com/googleapis/java-core/compare/v1.93.3...v2.5.10 )
---
updated-dependencies:
- dependency-name: com.google.cloud:google-cloud-core
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
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-03-21 18:46:53 -05:00
Peter Nied
d43235c5cf
Move Jackson-databind to 2.13.2 ( #2548 )
...
Resolves CVE-2020-36518
Signed-off-by: Peter Nied <petern@amazon.com>
2022-03-21 18:44:13 -05:00
dependabot[bot]
a9932058cd
Bump wiremock-jre8-standalone from 2.23.2 to 2.32.0 in /buildSrc ( #2525 )
...
Bumps [wiremock-jre8-standalone](https://github.com/wiremock/wiremock ) from 2.23.2 to 2.32.0.
- [Release notes](https://github.com/wiremock/wiremock/releases )
- [Commits](https://github.com/wiremock/wiremock/compare/2.23.2...2.32.0 )
---
updated-dependencies:
- dependency-name: com.github.tomakehurst:wiremock-jre8-standalone
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-03-21 17:51:16 -04:00
Kyle J. Davis
e87d7b3ee0
adds ToC ( #2546 )
...
Signed-off-by: Kyle J. Davis <kyledvs@amazon.com>
2022-03-21 17:29:37 -04:00
Nick Knize
17f782147a
[Unmute] NumberFieldTypeTests ( #2531 )
...
After merging Lucene 9.1 NumberFieldTypeTests is now passing. Unmute test.
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
2022-03-21 16:49:13 -04:00
Andriy Redko
1a3dbb70e0
ignore_malformed parameter on ip_range data_type throws mapper_parsing_exception ( #2429 )
...
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
2022-03-21 15:57:42 -04:00
dependabot[bot]
7a6311e652
Bump com.gradle.enterprise from 3.8.1 to 3.9 ( #2523 )
...
Bumps com.gradle.enterprise from 3.8.1 to 3.9.
---
updated-dependencies:
- dependency-name: com.gradle.enterprise
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-03-21 12:50:56 -07:00
dependabot[bot]
91969ce08c
Bump commons-io from 2.7 to 2.11.0 in /plugins/discovery-azure-classic ( #2527 )
...
* Bump commons-io from 2.7 to 2.11.0 in /plugins/discovery-azure-classic
Bumps commons-io from 2.7 to 2.11.0.
---
updated-dependencies:
- dependency-name: commons-io:commons-io
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-03-21 12:43:13 -07:00
dependabot[bot]
8737b677a0
Bump asm-analysis from 7.1 to 9.2 in /test/logger-usage ( #2273 )
...
Bumps asm-analysis from 7.1 to 9.2.
---
updated-dependencies:
- dependency-name: org.ow2.asm:asm-analysis
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-03-21 15:05:26 -04:00
dependabot[bot]
6a2b47146a
Bump asm-commons from 7.2 to 9.2 in /modules/lang-painless ( #2234 )
...
* Bump asm-commons from 7.2 to 9.2 in /modules/lang-painless
Bumps asm-commons from 7.2 to 9.2.
---
updated-dependencies:
- dependency-name: org.ow2.asm:asm-commons
dependency-type: direct:production
update-type: version-update:semver-major
...
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-03-21 15:05:08 -04:00
Nick Knize
ce0d2ca7bc
Fix bwcVersions after bumping version 1.3.1 ( #2532 )
...
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
2022-03-21 13:40:18 -05:00
Viggo
5dfd05c713
Clear up some confusing code in IndexShardHotSpotTests ( #1534 )
...
* clear up some useless but confusing test code
Signed-off-by: Weiguo Chen <viggoc96@gmail.com>
* remove useless comment
Signed-off-by: Weiguo Chen <viggoc96@gmail.com>
2022-03-21 14:36:52 -04:00
dependabot[bot]
84cba7b0f6
Bump jna from 5.5.0 to 5.10.0 in /buildSrc ( #2512 )
...
Bumps [jna](https://github.com/java-native-access/jna ) from 5.5.0 to 5.10.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.5.0...5.10.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-03-19 14:47:56 -07:00
dependabot[bot]
cdd74deeef
Bump jsr305 from 1.3.9 to 3.0.2 in /plugins/discovery-gce ( #2137 )
...
* Bump jsr305 from 1.3.9 to 3.0.2 in /plugins/discovery-gce
Bumps jsr305 from 1.3.9 to 3.0.2.
---
updated-dependencies:
- dependency-name: com.google.code.findbugs:jsr305
dependency-type: direct:production
update-type: version-update:semver-major
...
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-03-19 13:01:59 -07:00
Tianli Feng
a85325363f
Use Hamcrest matchers and assertThat() in ReindexRenamedSettingTests ( #2503 )
...
Signed-off-by: Tianli Feng <ftianli@amazon.com>
2022-03-19 01:22:04 -07:00
Tianli Feng
e0f770643c
Add 'cluster_manager_node' into ClusterState Metric as an alternative to 'master_node' ( #2415 )
...
* Add `cluster_manager_node` into `ClusterState Metric`, as an alternative to `master_node`. So that the request parameter "metric" in `Cluster reroute` and `Cluster state` API accept the new value `cluster_manager_node`
* Deprecate the enum value of `Metric: MASTER_NODE("master_node")`
* Add YAML REST tests for the new parameter value for "cluster state" and "cluster reroute" API
Signed-off-by: Tianli Feng <ftianli@amazon.com>
2022-03-18 15:09:37 -07:00
Tianli Feng
ea31483126
Add a new node role 'cluster_manager' as the alternative for 'master' role and deprecate 'master' role ( #2424 )
...
Add a new node role `cluster_manager`, as the replacement for `master` role, that used in setting `node.roles: [ master ]`.
They have got the same functionality, but can NOT be assigned to `node.roles` together.
* Add `CLUSTER_MANAGER_ROLE` in `DiscoveryNodeRole` class, and deprecate `MASTER_ROLE`
* Remove `MASTER_ROLE` from the `DiscoveryNodeRole.BUILT_IN_ROLES`, and temporarily load the role by the existing method `DiscoveryNode.setAdditionalRoles`
* Add a method `validateRole()` in `DiscoveryNodeRole` class, it's used to validate a specific role is compatible with the other roles to be assigned to a node together.
* Add deprecation message when assigning `master` role in setting `node.roles`
* Replace most `MASTER_ROLE` with `CLUSTER_MANAGER_ROLE` in current unit and integration tests
* Add new unit and integration tests to validate `CLUSTER_MANAGER_ROLE` and `MASTER_ROLE` can be treated as the same.
More explanation:
* New node will have "cluster_manager", "data", and "ingest" roles by default. Which means the default value of setting "node.roles" will be `["cluster_manager","data","ingest"]`, instead of `["master","data","ingest"]`
* "cluster_manager" role will be treated as "master" role in the OpenSearch node of previous versions.
* "cluster_manager” role and "master" role have got the same abbreviation name: "m"
Signed-off-by: Tianli Feng <ftianli@amazon.com>
2022-03-18 15:06:06 -07:00
Tianli Feng
641350b0b6
Replace 'master' with 'cluster_manager' in 'GET Cat Nodes' API ( #2441 )
...
* Replace 'master' with 'cluster_manager' in the table header of [GET Cat Nodes](https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodes/ ) API, to promote inclusive language.
* Add `cm` as the alias for the table header `cluster_manager`
* Add `master` as the alias for the table header `cluster_manager`, for keeping compatibility when using `GET _cat/nodes?v&h=master` to show the specific column only.
* Add YAML rest test
Signed-off-by: Tianli Feng <ftianli@amazon.com>
2022-03-18 15:04:49 -07:00