diff --git a/server/src/main/java/org/opensearch/action/admin/indices/alias/TransportIndicesAliasesAction.java b/server/src/main/java/org/opensearch/action/admin/indices/alias/TransportIndicesAliasesAction.java index 0f7450847db4e..81cb3102cfcb9 100644 --- a/server/src/main/java/org/opensearch/action/admin/indices/alias/TransportIndicesAliasesAction.java +++ b/server/src/main/java/org/opensearch/action/admin/indices/alias/TransportIndicesAliasesAction.java @@ -230,7 +230,7 @@ private static String[] concreteAliases(IndicesAliasesRequest.AliasActions actio } // must_exist can only be set in the Remove Action in Update aliases API, - // we check the value here to respond differently + // we check the value here to make the behavior consistent with Delete aliases API if (action.mustExist() != null) { // if must_exist is false, we should make the remove action execute silently, // so we return the original specified aliases to avoid AliasesNotFoundException