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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0, 3.0.0-alpha1
    • Fix Version/s: 2.3.0
    • Component/s: snapshots
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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

            • Assignee:
              vinayakumarb Vinayakumar B
              Reporter:
              vinayakumarb Vinayakumar B
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: