Skip to content

Commit

Permalink
Add deprecation notice to MASTER_NODE enum value
Browse files Browse the repository at this point in the history
Signed-off-by: Tianli Feng <ftianli@amazon.com>
  • Loading branch information
Tianli Feng committed Mar 9, 2022
1 parent c73c35c commit e8dbdf2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/src/main/java/org/opensearch/cluster/ClusterState.java
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,11 @@ public boolean supersedes(ClusterState other) {

public enum Metric {
VERSION("version"),

/**
* @deprecated Use CLUSTER_MANAGER_NODE instead, for promoting inclusive language.
*/
@Deprecated
MASTER_NODE("master_node"),
CLUSTER_MANAGER_NODE("cluster_manager_node"),
BLOCKS("blocks"),
Expand Down

0 comments on commit e8dbdf2

Please sign in to comment.