-
Notifications
You must be signed in to change notification settings - Fork 75
Description
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