[ 
https://issues.apache.org/jira/browse/YARN-11278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17602306#comment-17602306
 ] 

ASF GitHub Bot commented on YARN-11278:
---------------------------------------

ashutoshcipher commented on PR #4841:
URL: https://github.com/apache/hadoop/pull/4841#issuecomment-1241910786

   @9uapaw - Please help in reviewing the PR. Thanks.




> 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
>            Assignee: groot
>            Priority: Major
>              Labels: pull-request-available
>
> 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-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to