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

Íñigo Goiri commented on HDFS-12810:
------------------------------------

Thanks [~hanishakoneru], it must be some issue with dust.js then.
It's not the cleanest solution but I don't see a better way.

Not sure about the negative cases though.
Internally, we allow negative capacities (we have data evacuation, etc).
Could we make this just for the 0 value case?
In addition, could we try to wrap this check into a function and add a comment 
on what the issue is?

> Under "DFS Storage Types", the Namenode Web UI doesn't display the 
> capacityRemaining correctly when it is 0.
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-12810
>                 URL: https://issues.apache.org/jira/browse/HDFS-12810
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Virajith Jalaparti
>            Assignee: Hanisha Koneru
>         Attachments: HDFS-12810.001.patch
>
>
> When the {{capacityRemaining}} for a StorageType is 0, the Namenode's Web UI 
> displays an empty string ("()") instead of "0 (0%)".



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to