Skip to content

Deprecate the "Master" nomenclature #397

@tlfeng

Description

@tlfeng

Is your feature request related to a problem? Please describe.
OpenSearch repository is going to replace the terminology "master"with "cluster manager".
issue: opensearch-project/OpenSearch#472 (comment), with the plan for its terminology replacement.

Although the existing usages with "master" will be supported in OpenSearch version 2.x to keep the backwards compatibility, please prepare for the nomenclature change in advance, and replace all the usages with "master" terminology in the code base.
All the OpenSearch REST APIs and settings that contain "master" terminology will be deprecated in 2.0, and alternative usages will be added.

Describe the solution you'd like
Replace the terminology "master" with "cluster manager".

When being compatible with OpenSearch 2.0:

When being compatible with OpenSearch 3.0:

  • Replace "master" in the reference to OpenSearch Java API
    (most of the new APIs are available in version 2.2, except AcknowledgedResponse)
    • import org.opensearch.cluster.LocalNodeMasterListener -> LocalNodeClusterManagerListener
    • clusterManagerService.onMaster() / offMaster() -> onclusterManager() / offClusterManager()
    • DiscoveryNodes.Builder().masterNodeId() -> clusterManagerNodeId()
    • import org.opensearch.action.support.master.AcknowledgedResponse -> import org.opensearch.action.support.clustermanager.AcknowledgedResponse (will be available in version 3.0)

Describe alternatives you've considered
None.

Additional context
None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions