Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3107 HDFS truncate
  3. HDFS-7903

Cannot recover block after truncate and delete snapshot

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: datanode, namenode
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      1. Create a file.
      2. Create a snapshot.
      3. Truncate the file in the middle of a block.
      4. Delete the snapshot.

      The block cannot be recovered.

        Attachments

        1. HDFS-7903.2.patch
          4 kB
          Plamen Jeliazkov
        2. HDFS-7903.1.patch
          4 kB
          Plamen Jeliazkov
        3. HDFS-7903.patch
          3 kB
          Plamen Jeliazkov
        4. testMultipleTruncate.patch
          2 kB
          Tsz-wo Sze

          Issue Links

            Activity

              People

              • Assignee:
                zero45 Plamen Jeliazkov
                Reporter:
                szetszwo Tsz-wo Sze
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: