Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-10594

HDFS-4949 should support recursive cache directives

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.7.1
    • None
    • caching
    • None

    Description

      In CacheReplicationMonitor#rescanCacheDirectives, it should recursively rescan the path when the inode of the path is a directory. In these 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());
                }
              }
             }
      

      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.

      Attachments

        1. HDFS-10594.003.patch
          24 kB
          Yiqun Lin
        2. HDFS-10594.002.patch
          24 kB
          Yiqun Lin
        3. HDFS-10594.001.patch
          2 kB
          Yiqun Lin

        Activity

          People

            linyiqun Yiqun Lin
            linyiqun Yiqun Lin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: