[
https://issues.apache.org/jira/browse/HDFS-10594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15365856#comment-15365856
]
Yiqun Lin commented on HDFS-10594:
----------------------------------
Thanks [~cnauroth] and [~andrew.wang] for the comments. I also agree with the
Chris. I will post a initial patch recently.
> 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: [email protected]
For additional commands, e-mail: [email protected]