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

SchedulerRequest should be forwarded to scheduler if custom scheduler supports placement constraints

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.4.0, 3.3.1
    • None
    • None
    • Reviewed

    Description

      Currently only CapacityScheduler supports placement constraints so request gets forwarded only for capacityScheduler. Below exception will be thrown if custom scheduler supports placement constraint

      if (request.getSchedulingRequests() != null
              && !request.getSchedulingRequests().isEmpty()) {
            if (!(scheduler instanceof CapacityScheduler)) {
              String message = "Found non empty SchedulingRequest of "
                  + "AllocateRequest for application=" + appAttemptId.toString()
                  + ", however the configured scheduler="
                  + scheduler.getClass().getCanonicalName()
                  + " cannot handle placement constraints, rejecting this "
                  + "allocate operation";
              LOG.warn(message);
              throw new YarnException(message);
            }
          }
      

       

      Attachments

        1. YARN-10397.001.patch
          4 kB
          Bilwa S T
        2. YARN-10397.002.patch
          5 kB
          Bilwa S T

        Activity

          People

            BilwaST Bilwa S T
            BilwaST Bilwa S T
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: