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

[Backport 2.x] Remove 'cluster_manager' role attachment when using 'node.master' deprecated setting #6853

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 5f89081 from #6331.

…recated setting (#6331)

`cluster_manager` role no longer configures the legacy `node.master` setting.

Using `node.master: true` configures both cluster_manager and master role to a node which is not correct, only one of them should be assigned

Allowing only one of the both roles to be attached instead of both - 'master' which is deprecated - since both the legacy setting `node.master` and `master` role are deprecated - so we need to keep the initial behavior only with deprecated roles and settings.

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
(cherry picked from commit 5f89081)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=pit/10_basic/Delete all}

@codecov-commenter
Copy link

Codecov Report

Merging #6853 (2b9bd12) into 2.x (8356d2b) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##                2.x    #6853      +/-   ##
============================================
- Coverage     70.39%   70.38%   -0.02%     
+ Complexity    59459    59433      -26     
============================================
  Files          4808     4808              
  Lines        285371   285369       -2     
  Branches      41490    41491       +1     
============================================
- Hits         200896   200858      -38     
- Misses        67666    67732      +66     
+ Partials      16809    16779      -30     
Impacted Files Coverage Δ
...ava/org/opensearch/cluster/node/DiscoveryNode.java 79.26% <100.00%> (-0.29%) ⬇️
...org/opensearch/cluster/node/DiscoveryNodeRole.java 91.17% <100.00%> (+0.13%) ⬆️

... and 472 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@tlfeng tlfeng merged commit 8b47610 into 2.x Mar 28, 2023
@github-actions github-actions bot deleted the backport/backport-6331-to-2.x branch March 28, 2023 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport PRs or issues specific to backporting features or enhancments v2.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants