Skip to content

Deprecate the "Master" nomenclature #152

@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, 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:

  • Replace "master" in code comment and internal variable / class name.
    • public class MasterServiceEventMetricsTests
    • import org.opensearch.performanceanalyzer.metrics.AllMetrics.MasterPendingTaskDimension
    • import org.opensearch.performanceanalyzer.metrics.AllMetrics.MasterPendingValue
    • DiscoveryNode masterNode = discoveryNodes.getMasterNode()
    • public class MasterThrottlingMetricsCollectorTests
    • private static final int MASTER_METRICS_ERRORS
    • import org.opensearch.performanceanalyzer.collectors.MasterServiceEventMetrics
    • import org.opensearch.performanceanalyzer.collectors.MasterThrottlingMetricsCollector

When being compatible with OpenSearch 3.0:

  • Replace "master" in the reference to OpenSearch Java API
    (All new APIs below are available in version 2.2)
    • import org.opensearch.cluster.service.MasterService -> import org.opensearch.cluster.service.ClusterManagerService
    • discoveryNodes.getMasterNode() -> discoveryNodes.getClusterManagerNode()
    • DiscoveryNodeRole.MASTER_ROLE -> DiscoveryNodeRole.CLUSTER_MANAGER_ROLE
    • discoBuilder.masterNodeId(nodeId1) -> discoBuilder.clusterManagerNodeId(nodeId1)

Describe alternatives you've considered
None.

Additional context

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestv2.4.0'Issues and PRs related to version v2.4.0'

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions