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

not able to read deleted files from snapshot directly under snapshottable dir after checkpoint and NN restart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0, 3.0.0-alpha1
    • 2.3.0
    • snapshots
    • None
    • Reviewed

    Description

      1. allow snapshots under dir /foo
      2. create a file /foo/bar
      3. create a snapshot s1 under /foo
      4. delete the file /foo/bar
      5. wait till checkpoint or do saveNameSpace
      6. restart NN.
      7. Now try to read the file from snapshot /foo/.snapshot/s1/bar

      client will get BlockMissingException

      Reason is
      While loading the deleted file list for a snashottable dir from fsimage, blocks were not updated in blocksmap

      Attachments

        1. HDFS-5427-v2.patch
          6 kB
          Vinayakumar B
        2. HDFS-5427.patch
          4 kB
          Vinayakumar B
        3. HDFS-5427.patch
          4 kB
          Vinayakumar B

        Activity

          People

            vinayakumarb Vinayakumar B
            vinayakumarb Vinayakumar B
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: