hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-10594) HDFS-4949 should support recursive cache directives
Date Tue, 05 Jul 2016 18:39:11 GMT

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

Colin Patrick McCabe updated HDFS-10594:
----------------------------------------
    Summary: HDFS-4949 should support recursive cache directives  (was: CacheReplicationMonitor
should recursively rescan the path when the inode of the path is directory)

> HDFS-4949 should support recursive cache directives
> ---------------------------------------------------
>
>                 Key: HDFS-10594
>                 URL: https://issues.apache.org/jira/browse/HDFS-10594
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: caching
>    Affects Versions: 2.7.1
>            Reporter: Yiqun Lin
>            Assignee: Yiqun Lin
>         Attachments: HDFS-10594.001.patch
>
>
> In {{CacheReplicationMonitor#rescanCacheDirectives}}, it should recursively rescan the
path when the inode of the path is a directory. In these code:
> {code}
> } else if (node.isDirectory()) {
>         INodeDirectory dir = node.asDirectory();
>         ReadOnlyList<INode> children = dir
>             .getChildrenList(Snapshot.CURRENT_STATE_ID);
>         for (INode child : children) {
>           if (child.isFile()) {
>             rescanFile(directive, child.asFile());
>           }
>         }
>        }
> {code}
> If we did the this logic, it means that some inode files will be ignored when the child
inode is also a directory and there are some other child inode file in it. Finally the child's
child file which belong to this path will not be cached.



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

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


Mime
View raw message