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

Wrong error message in RM placement constraints check

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 3.2.0, 3.1.1
    • None
    • scheduler
    • None

    Description

      In SingleConstraintAppPlacementAllocator.validateAndSetSchedulingRequest() I see the following:

            if (singleConstraint.getMinCardinality() != 0
                || singleConstraint.getMaxCardinality() != 0) {
              throwExceptionWithMetaInfo(
                  "Only support anti-affinity, which is: minCardinality=0, "
                      + "maxCardinality=1");
            }

      I think the error message should say "maxCardinality=0"

      Attachments

        1. YARN-8681.001.patch
          1 kB
          Szilard Nemeth

        Activity

          People

            snemeth Szilard Nemeth
            templedf Daniel Templeton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: