hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Andreina (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-8525) API getUsed() returns the file lengh only from root "/"
Date Fri, 05 Jun 2015 12:52:00 GMT

     [ https://issues.apache.org/jira/browse/HDFS-8525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

J.Andreina updated HDFS-8525:
-----------------------------
    Attachment: HDFS-8525.1.patch

FileSystem#getUsed() is intended to return the total file size in the filesystem . 
But it returns only the total size of files under root ("/") (File size under sub-folder is
not calculated).

Attaching patch for the same.
Please review.

> API getUsed() returns the file lengh only from root "/" 
> --------------------------------------------------------
>
>                 Key: HDFS-8525
>                 URL: https://issues.apache.org/jira/browse/HDFS-8525
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: HDFS
>    Affects Versions: 2.7.0
>            Reporter: tongshiquan
>            Assignee: J.Andreina
>            Priority: Minor
>         Attachments: HDFS-8525.1.patch
>
>
> getUsed should return total HDFS used, compared to getStatus.getUsed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message