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

YARN ui2 hangs on the Queues page when the scheduler response contains NaN values

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

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.4.0
    • None
    • yarn-ui-v2
    • None

    Description

      When the scheduler response contains NaN values for capacity and maxCapacity the UI2 hangs on the Queues page. The console log shows the following error:

      SyntaxError: Unexpected token N in JSON at position 666 

      The scheduler response:

      "maxCapacity": NaN,
      "absoluteMaxCapacity": NaN, 

      NaN, infinity, -infinity is not valid in JSON syntax: https://www.json.org/json-en.html

      This might be related as well: YARN-10452

       

      I managed to reproduce this with AQCv1, where I set the parent queue's capacity in absolute mode, then I used percentage mode on the leaf-queue-template. I'm not sure if this is a valid configuration, however there is no error or warning in RM logs about any configuration error. To trigger the issue the DominantResourceCalculator must be used. (When using absolute mode on the leaf-queue-template this issue is not re-producible, further details on: YARN-10922).

       

      Reproduction steps:

      1. Start the cluster with the attached configuration
      2. Check the Queues page on UI2 (it should work at this point)
      3. Send an example job (yarn jar hadoop-mapreduce-examples-3.4.0-SNAPSHOT.jar pi 1 10)
      4. Check the Queues page on UI2 (it should not be working at this point)

      Attachments

        1. shresponse.json
          91 kB
          Tamas Domok
        2. capacity-scheduler.xml
          1 kB
          Tamas Domok

        Issue Links

        Activity

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

          People

            yifan.stan Xie YiFan
            tdomok Tamas Domok

            Dates

              Created:
              Updated:

              Slack

                Issue deployment