Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-2259

add more meaningful error message when the invalid config is caused by undefined maxapplications

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.5.0
    • None

    Description

       

          partitions:
            - name: default
              queues:
                - name: root
                  parent: true
                  submitacl: "*"
                  maxapplications: 2
                  queues:
                    - name: parent 

       

       

      The above config can produce following error message.

      "parent maxApplications must be larger than child maxApplications".

      It seems to me the error message does not cover the root cause (maxapplications is zero). 

      https://github.com/apache/yunikorn-core/blob/master/pkg/common/configs/configvalidator.go#L207

      Attachments

        Issue Links

          Activity

            People

              brandboat Kuan Po Tseng
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: