Brahma Reddy Battula created HDFS-3735:
------------------------------------------

             Summary: [ NNUI --> NNJspHelper.java ] Last three fields not 
considered for display data in sorting
                 Key: HDFS-3735
                 URL: https://issues.apache.org/jira/browse/HDFS-3735
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: name-node
    Affects Versions: 2.0.0-alpha, 2.0.1-alpha
            Reporter: Brahma Reddy Battula
            Priority: Minor


 *Fields which will display on dfsnodelist.jsp?whatNodes=LIVE ( NNUI->click on 
live nodes)* 

Node| Last-contact |Admin State| Configured Capacity(GB)|Used(GB)|

Non DFSUsed(GB)Remaining(GB)|Used(%)|Used(%)|Remaining(%)|Blocks|

 Block Pool Used (GB)|Block Pool Used (%)> Blocks|Failed Volumes H *-->*  
{color:red}these three fields not considered for sorting{color}    

we can display data in sorting order by clicking on the anyone of above 
fields.It's working fine for all fields expect last three fields.

 *code where we are considering fileds.* 
{code}
class NodeComapare implements Comparator<DatanodeDescriptor> {
      static final int 
        FIELD_NAME              = 1,
        FIELD_LAST_CONTACT      = 2,
        FIELD_BLOCKS            = 3,
        FIELD_CAPACITY          = 4,
        FIELD_USED              = 5,
        FIELD_PERCENT_USED      = 6,
        FIELD_NONDFS_USED       = 7,
        FIELD_REMAINING         = 8,
        FIELD_PERCENT_REMAINING = 9,
        FIELD_ADMIN_STATE       = 10,
        FIELD_DECOMMISSIONED    = 11,
        SORT_ORDER_ASC          = 1,
        SORT_ORDER_DSC          = 2;
{code}

Here,last three fields we are not considering..hence it's assign default filed.
 {code}
 } else if (field.equals("blocks")) {
          sortField = FIELD_BLOCKS;
        } else if (field.equals("adminstate")) {
          sortField = FIELD_ADMIN_STATE;
        } else if (field.equals("decommissioned")) {
          sortField = FIELD_DECOMMISSIONED;
        } else {
          sortField = FIELD_NAME;
        }
{code}

Please correct me ,If I am wrong...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to