hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao Chen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-7087) Ability to list /.reserved
Date Mon, 05 Oct 2015 20:13:27 GMT

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

Xiao Chen updated HDFS-7087:
----------------------------
    Attachment: HDFS-7087.patch.draft

Thanks very much [~andrew.wang] for the explanation!

I have created a draft patch to support listing /.reserved. Would you please review and see
if I'm on the right path? BTW There is a dependency on HDFS-8164 to get the format time, so
if you test this patch the mtime is currently 0. I'll get HDFS-8164 done asap.

Brief description of the draft:
* Add fake statuses of /.reserved, /.reserved/raw, /.reserved/.inodes. The first is hard-coded,
the latter 2 are lazy-initialized to read cTime, which has to happen *strong*after*strong*
{{FSDirectory}}'s initialization (specifically, after FSNamesystem loads fsimage.
* {{FSDirStatAndListingOp#getFileInfo}} has to work so that {{Globber#getFileStatus}} can
return non-null status in order for the shell to proceed to the actual command ({{fs.listStatus}})
* {{FSDirStatAndListingOp#getListing}} returns the statuses.
* {{FSDirectory#resolvePath}} doesn't seem to require any change - no special resolution needed.
* Guard all FSDir**Ops from /.reserved path.
* Test cases

Any feedback is appreciated!

> Ability to list /.reserved
> --------------------------
>
>                 Key: HDFS-7087
>                 URL: https://issues.apache.org/jira/browse/HDFS-7087
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 2.6.0
>            Reporter: Andrew Wang
>            Assignee: Xiao Chen
>         Attachments: HDFS-7087.patch.draft
>
>
> We have two special paths within /.reserved now, /.reserved/.inodes and /.reserved/raw.
It seems like we should be able to list /.reserved to see them.



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

Mime
View raw message