You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "András Győri (Jira)" <ji...@apache.org> on 2022/08/24 10:29:00 UTC

[jira] [Created] (YARN-11278) Ambiguous error message in mutation API

András Győri created YARN-11278:
-----------------------------------

             Summary: Ambiguous error message in mutation API
                 Key: YARN-11278
                 URL: https://issues.apache.org/jira/browse/YARN-11278
             Project: Hadoop YARN
          Issue Type: Improvement
          Components: capacity scheduler
            Reporter: András Győri


In RMWebServices#updateSchedulerConfiguration, we are checking two prerequisites:
{code:java}
if (scheduler instanceof MutableConfScheduler && ((MutableConfScheduler)
    scheduler).isConfigurationMutable()) { {code}
However, the error message is misleading in the second case (namely if the configuration is not mutable eg. a FILE_CONFIGURATION_STORE)
{code:java}
} else {
  return Response.status(Status.BAD_REQUEST)
      .entity("Configuration change only supported by " +
          "MutableConfScheduler.")
      .build(); {code}
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org