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

[2.x] Rename BecomeMasterTask to BecomeClusterManagerTask in JoinTaskExecutor (#3099) #3179

Merged
merged 1 commit into from
May 5, 2022

Conversation

tlfeng
Copy link
Collaborator

@tlfeng tlfeng commented May 4, 2022

Description

Backport PR #3099 / commit 017773c to 2.x branch.

There is a ClusterStateTask with identifier _BECOME_MASTER_TASK_ used to indicate the node to be the cluster manager node when joining the cluster.

To support inclusive language, and finally change the "master" terminology, I made the following plan:

In version 2.0:

  • Deprecate the task identifier _BECOME_MASTER_TASK_
  • Add alternative name _BECOME_CLUSTER_MANAGER_TASK_
  • Modify the method that identify the task isBecomeMasterTask() to accept the 2 names

In version 3.0:

  • Remove the current task identifier _BECOME_MASTER_TASK_

The reason not change the name in-place:
The related methods are public methods, in case there are clients that call these method in a mixed version cluster of 1.x and 2.x, this way can keep the compatibility of using these methods with version 1.x cluster.

Issues Resolved

A part of #1548

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@tlfeng tlfeng requested a review from a team as a code owner May 4, 2022 06:08
@tlfeng tlfeng added v2.1.0 Issues and PRs related to version 2.1.0 backport 2.0 Backport to 2.0 branch v2.0.0 Version 2.0.0 labels May 4, 2022
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success ff2329e
Log 4990

Reports 4990

@dblock dblock merged commit 2c3cc0a into opensearch-project:2.x May 5, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 5, 2022
…or (#3099) (#3179)

Signed-off-by: Tianli Feng <ftianli@amazon.com>
(cherry picked from commit 2c3cc0a)
tlfeng pushed a commit that referenced this pull request May 6, 2022
…or (#3099) (#3179) (#3208)

Signed-off-by: Tianli Feng <ftianli@amazon.com>
(cherry picked from commit 2c3cc0a)
@tlfeng tlfeng deleted the 2.x-rename-BecomeMasterTask branch May 9, 2022 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.0 Backport to 2.0 branch v2.0.0 Version 2.0.0 v2.1.0 Issues and PRs related to version 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants