-
Notifications
You must be signed in to change notification settings - Fork 75
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
Deprecate the "Master" nomenclature #397
Comments
I began this process by replacing any variable, logs or comments with the use of "master" to "clusterManager" (#504). This process will continue when Opensearch Core makes further changes to classes and methods that AD is using with this terminology. |
For 2.0, at a minimum please ensure that the plugin is not calling any deprecated APIs in core or another plugin, and confirm below, then remove the 2.0.0 label. If you have time, do the complete deprecation as described in this issue. |
@dblock Any leftover uses of "master" are from classes in Opensearch that haven't been changed yet. To my understanding this isn't something that will be done until 3.0. Anything that could have been removed for 2.0 has already been removed with the mentioned PR above. For example (https://github.com/opensearch-project/OpenSearch/blob/main/server/src/main/java/org/opensearch/cluster/LocalNodeMasterListener.java) and other classes, folder and etc. Any comments or logs have been changed in AD. |
I think any leftovers will be done in 2.x, so I labeled this for v2.1.0. |
Hi @dblock, I confirmed that @amitgalitz is correct that usages of "master" in OpenSearch Java APIs (public field, method, class, and package names) will be replaced in OpenSearch version 3.0, which is tracked in issue opensearch-project/OpenSearch#1684, and I haven't started yet. The plugins can only replace these usages when the public Java APIs are renamed in OpenSearch repository, and I will keep update on this progress. |
@amitgalitz is there any changes left on the AD side? |
Java APIs completed and released on 2.2 except for AcknowledgedResponse. |
All are resolved in #644 besides the @anasalkouz if there will be a separate issue for that, should we close this issue now? |
Please reopen if necessary. |
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:
Specifically, internal class name https://github.com/opensearch-project/anomaly-detection/blob/1.3.1.0/src/main/java/org/opensearch/ad/cluster/MasterEventListener.java
When being compatible with OpenSearch 3.0:
(most of the new APIs are available in version 2.2, except
AcknowledgedResponse
)Describe alternatives you've considered
None.
Additional context
None.
The text was updated successfully, but these errors were encountered: