[
https://issues.apache.org/jira/browse/HDFS-5552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13829760#comment-13829760
]
Kousuke Saruta commented on HDFS-5552:
--------------------------------------
In FSNameSystem#metaSave, there is a similar expression.
{code}
private void metaSave(PrintWriter out) {
assert hasWriteLock();
long totalInodes = this.dir.totalInodes();
long totalBlocks = this.getBlocksTotal();
out.println(totalInodes + " files and directories, " + totalBlocks
+ " blocks = " + (totalInodes + totalBlocks)
+ " total filesystem objects");
blockManager.metaSave(out);
}
{code}
As you can see, "files and directories, blocks = total filesystem objects"
means "totalInode + totalBlocks = (totalInodes + totalBlocks)".
On the other hand, dfshealth.dust.html defines "files and directories, blocks =
total filesystem object(s)" means "{TotalLoad}(FSNameSystem#getTotalLoad) +
{BlocksTotal}(FSNameSystem#getBlocksTotal) =
{FilesTotal}(FSNameSystem#getFilesTotal)".
TotalLoad means num of active xceivers and FilesTotal means num of inodes so
these are different from metaSave's.
> Fix wrong information of "Cluster summay" in dfshealth.html
> -----------------------------------------------------------
>
> Key: HDFS-5552
> URL: https://issues.apache.org/jira/browse/HDFS-5552
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Affects Versions: 3.0.0
> Reporter: Shinichi Yamashita
> Assignee: Haohui Mai
> Attachments: HDFS-5552.000.patch, dfshealth-html.png
>
>
> "files and directories" + "blocks" = total filesystem object(s). But wrong
> value is displayed.
--
This message was sent by Atlassian JIRA
(v6.1#6144)