OpenSearch/client
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
..
benchmark Bump commons-math3 from 3.2 to 3.6.1 in /client/benchmark (#2139) 2022-02-21 15:29:57 -08:00
client-benchmark-noop-api-plugin Remove type end-points from no-op bulk and search action (#2261) 2022-02-25 13:00:25 -08:00
rest Add a new node role 'cluster_manager' as the alternative for 'master' role and deprecate 'master' role (#2424) 2022-03-18 15:06:06 -07:00
rest-high-level [Upgrade] Lucene 9.1.0-snapshot-ea989fe8f30 (#2487) 2022-03-16 15:47:25 -04:00
sniffer Set target and source compatibility to 11, required by Lucene 9. (#2407) 2022-03-08 14:48:51 -05:00
test Set target and source compatibility to 11, required by Lucene 9. (#2407) 2022-03-08 14:48:51 -05:00