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

Fix INode#isInLatestSnapshot() API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.4
    • snapshots
    • None

    Description

      isInLatestSnapshot() may return true in cases where an inode's ancesstors might not be in the latest snapshot.

      // if parent is a reference node, parent must be a renamed node. We can 
      // stop the check at the reference node.
      if (parent != null && parent.isReference()) {
        // TODO: Is it a bug to return true?
        //       Some ancestor nodes may not be in the latest snapshot.
        return true;
      }
      

      Attachments

        1. HDFS-15319.000.patch
          2 kB
          Shashikant Banerjee
        2. HDFS-15319.001.patch
          0.9 kB
          Shashikant Banerjee

        Activity

          People

            shashikant Shashikant Banerjee
            shashikant Shashikant Banerjee
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: