hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tuyu (Jira)" <j...@apache.org>
Subject [jira] [Created] (YARN-10660) YARN Web UI have problem when show node partitions resource
Date Mon, 01 Mar 2021 12:18:00 GMT
tuyu created YARN-10660:
---------------------------

             Summary: YARN Web UI have problem when show node partitions resource
                 Key: YARN-10660
                 URL: https://issues.apache.org/jira/browse/YARN-10660
             Project: Hadoop YARN
          Issue Type: Bug
          Components: webapp
    Affects Versions: 3.2.1
            Reporter: tuyu
             Fix For: 3.2.1


when enable yarn label function, Yarn UI will show queue resource base on partitions,but there
have some problem when click expand button. The url will increase very long, like  this 

{code:java}
127.0.0.1:20701/cluster/scheduler?openQueues=Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20#Partition:%20&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;&lt;DEFAULT_PARTITION&gt;%20&lt;memory:491520,%20vCores:96&gt;
{code}


The root cause is

{code:java}
   origin url is:
      Partition: <DEFAULT_PARTITION> <memory:491520, vCores:96>
   htmlencode is:
      Partition: &lt;DEFAULT_PARTITION&gt; &lt;memory:491520, vCores:96&gt;

  SchedulerPageUtil have some javascript code
     storeExpandedQueue
        tmpCurrentParam = tmpCurrentParam.split('&');",


   the  Partition: &lt;DEFAULT_PARTITION&gt; &lt;memory:491520, vCores:96&gt;
 will split and len > 1, the problem logic is here, if click  expand button close, the
function will clear params, but it the split array is not match orgin url 
{code}
when click expand button close, lt;DEFAULT_PARTITION&gt; &lt;memory:491520, vCores:96&gt;
 will append, if click expand multi times, the length will increase too long

  




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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


Mime
View raw message