[
https://issues.apache.org/jira/browse/HDFS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hanisha Koneru updated HDFS-12810:
----------------------------------
Attachment: HDFS-12810.001.patch
Thanks for reporting the issue, [~virajith].
When {{capacityRemaining}} (or {{capacityUsed}}) is 0, it is not being passed
to the helper functions {{fmt_byte}} and {{fmt_percentage}} (in _dfs-dust.js_).
I'm not sure why this is happening.
As a workaround, if capacityRemaining (or capacityUsed) is 0, we assign it a
negative value -1. This will be converted back to 0 by the helper functions
_fmt_byte_ and _fmt_percentage_.
> 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]