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

YARN Web UI have problem when show node partitions resource

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1.0, 3.1.1, 3.2.1, 3.2.2
    • Fix Version/s: None
    • Component/s: webapp
    • Labels:
      None

      Description

      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

      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<DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96><DEFAULT_PARTITION>%20<memory:491520,%20vCores:96>
      

      The root cause is

         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 
      

      when click expand button close, lt;DEFAULT_PARTITION> <memory:491520, vCores:96> will append, if click expand multi times, the length will increase too long

        Attachments

        1. 2021-03-01 19-56-02 的屏幕截图.png
          258 kB
          tuyu
        2. YARN-10660.patch
          3 kB
          tuyu

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tuyu tuyu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: