[ 
https://issues.apache.org/jira/browse/HDFS-15013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16982235#comment-16982235
 ] 

HuangTao commented on HDFS-15013:
---------------------------------

[~inigoiri] I have checked federationhealth.js, there is no seperate sync ajax 
request likes in dfshealth.js.
{code:java}
 $.ajax({'url': '/conf', 'dataType': 'xml', 'async': false}).done(
  function(d) {
    var $xml = $(d);
    var namespace, nnId;
    $xml.find('property').each(function(idx,v) {
      if ($(v).find('name').text() === 'dfs.nameservice.id') {
        namespace = $(v).find('value').text();
      }
      if ($(v).find('name').text() === 'dfs.ha.namenode.id') {
        nnId = $(v).find('value').text();
      }
    });
    if (namespace && nnId) {
      data['HAInfo'] = {"Namespace": namespace, "NamenodeID": nnId};
    }
});{code}

> Reduce NameNode overview tab response time
> ------------------------------------------
>
>                 Key: HDFS-15013
>                 URL: https://issues.apache.org/jira/browse/HDFS-15013
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namenode
>            Reporter: HuangTao
>            Assignee: HuangTao
>            Priority: Minor
>             Fix For: 3.3.0
>
>         Attachments: HDFS-15013.001.patch, image-2019-11-26-10-05-39-640.png, 
> image-2019-11-26-10-09-07-952.png
>
>
> Now, the overview tab load /conf synchronously as follow picture.
>  !image-2019-11-26-10-05-39-640.png! 
> This issue will change it to an asynchronous method. The effect diagram is as 
> follows.
>  !image-2019-11-26-10-09-07-952.png! 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to