You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Tamas Domok (Jira)" <ji...@apache.org> on 2021/11/18 08:38:00 UTC

[jira] [Created] (YARN-11010) YARN ui2 hangs on the Queues page when the scheduler response contains NaN values

Tamas Domok created YARN-11010:
----------------------------------

             Summary: YARN ui2 hangs on the Queues page when the scheduler response contains NaN values
                 Key: YARN-11010
                 URL: https://issues.apache.org/jira/browse/YARN-11010
             Project: Hadoop YARN
          Issue Type: Bug
          Components: yarn-ui-v2
    Affects Versions: 3.4.0
            Reporter: Tamas Domok
            Assignee: Tamas Domok
         Attachments: capacity-scheduler.xml, shresponse.json

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:
{code:java}
SyntaxError: Unexpected token N in JSON at position 666 {code}
The scheduler response:
{code:java}
"maxCapacity": NaN,
"absoluteMaxCapacity": NaN, {code}
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:
 # Start the cluster with the attached configuration
 # Check the Queues page on UI2 (it should work at this point)
 # Send an example job (yarn jar hadoop-mapreduce-examples-3.4.0-SNAPSHOT.jar pi 1 10)
 # Check the Queues page on UI2 (it should not be working at this point)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org