Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-11278

Ambiguous error message in mutation API

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      In RMWebServices#updateSchedulerConfiguration, we are checking two prerequisites:

      if (scheduler instanceof MutableConfScheduler && ((MutableConfScheduler)
          scheduler).isConfigurationMutable()) { 

      However, the error message is misleading in the second case (namely if the configuration is not mutable eg. a FILE_CONFIGURATION_STORE)

      } else {
        return Response.status(Status.BAD_REQUEST)
            .entity("Configuration change only supported by " +
                "MutableConfScheduler.")
            .build(); 

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            groot Ashutosh Gupta
            quapaw András Győri
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment