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

Haohui Mai commented on HDFS-6407:
----------------------------------

There are a couple issues that I can see in the current patch:

* It fails to sort the DN table correctly. The NN UI has customized formats on 
columns like disk space usages, as the plugin sorts it based on alphabetical 
order, it does not give correct result.
* It has responsiveness issues when you have thousands of DNs. With the plugin, 
the workflow is the following: the dust engine renders the information of all 
DNs into a table, and the plugin sorts all the rows then regenerates the table. 
As people has observed some lags when the cluster has thousands of DNs, the 
patch can make it worse.

While I think (1) can be fixed fairly easily, for (2) I think that the only 
reasonable solution is to bake both pagination and sorting when rendering the 
templates, but not at the time when table has been propagated to the DOM. As I 
believe it does not require a lot of work, I should be able to spend some time 
to play around with it and see how far I can go.

> new namenode UI, lost ability to sort columns in datanode tab
> -------------------------------------------------------------
>
>                 Key: HDFS-6407
>                 URL: https://issues.apache.org/jira/browse/HDFS-6407
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 2.4.0
>            Reporter: Nathan Roberts
>            Assignee: Benoy Antony
>            Priority: Minor
>         Attachments: HDFS-6407.patch, browse_directory.png, datanodes.png, 
> snapshots.png
>
>
> old ui supported clicking on column header to sort on that column. The new ui 
> seems to have dropped this very useful feature.
> There are a few tables in the Namenode UI to display  datanodes information, 
> directory listings and snapshots.
> When there are many items in the tables, it is useful to have ability to sort 
> on the different columns.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to