-
Notifications
You must be signed in to change notification settings - Fork 124
Deprecate the "Master" nomenclature #320
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 (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:
- Replace "master" in code comment (https://github.com/opensearch-project/alerting/blob/1.3.1.0/core/src/main/kotlin/org/opensearch/alerting/core/JobSweeper.kt#L141 and https://github.com/opensearch-project/alerting/blob/1.3.1.0/alerting/src/main/kotlin/org/opensearch/alerting/alerts/AlertIndices.kt#L52)
- Replace "master" in local variable:
private var isMaster->isClusterManager
When being compatible with OpenSearch 3.0:
- Replace "master" in the reference to OpenSearh Java API
- event.localNodeMaster() -> event.localNodeClusterManager() (https://github.com/opensearch-project/alerting/blob/2.1.0.0/alerting/src/main/kotlin/org/opensearch/alerting/util/destinationmigration/DestinationMigrationCoordinator.kt#L55) (new API is available in v2.2)
-
import org.opensearch.action.support.master.AcknowledgedResponse->import org.opensearch.action.support.clustermanager.AcknowledgedResponse(new API not available yet)
Describe alternatives you've considered
None.
Additional context