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

Ambiguous error message in mutation API

    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

        Issue Links

          Activity

            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: