You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Xiaoyu Yao (JIRA)" <ji...@apache.org> on 2017/10/11 02:17:00 UTC

[jira] [Created] (HDFS-12631) Ozone: ContainerStorageLocation#scmUsage should count only SCM usage

Xiaoyu Yao created HDFS-12631:
---------------------------------

             Summary: Ozone: ContainerStorageLocation#scmUsage should count only SCM usage 
                 Key: HDFS-12631
                 URL: https://issues.apache.org/jira/browse/HDFS-12631
             Project: Hadoop HDFS
          Issue Type: Sub-task
          Components: scm
    Affects Versions: HDFS-7240
            Reporter: Xiaoyu Yao
            Assignee: Xiaoyu Yao


Currently the ContainerStorageLocation#ContainerStorageLocation does not resolve to the actual container prefix before passing it to CachingGetSpaceUsed for calculation. As a result of that, if SCM datanode is running along with HDFS datanode, the HDFS datanode usage will be included in scmUsage too, which is incorrect. This ticket is opened to fix it. 


{code}
    this.scmUsage = new CachingGetSpaceUsed.Builder().setPath(dataDir)
        .setConf(conf)
        .setInitialUsed(loadScmUsed())
        .build();
{code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org