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

fsck doesn't list correct file path when Bad Replicas/Blocks are in a snapshot

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      Currently for snapshot files, fsck -list-corruptfileblocks shows corrupt blocks with the original file dir instead of the snapshot dir, and fsck -list-corruptfileblocks -includeSnapshots behave the same.
      This can be confusing because even when the original file is deleted, fsck will still show that deleted file as corrupted, although what's actually corrupted is the snapshot.

      As a side note, fsck -files -includeSnapshots shows the snapshot dirs.

      Attachments

        1. HDFS-9231.009.patch
          16 kB
          Xiao Chen
        2. HDFS-9231.008.patch
          16 kB
          Xiao Chen
        3. HDFS-9231.007.patch
          16 kB
          Xiao Chen
        4. HDFS-9231.006.patch
          15 kB
          Xiao Chen
        5. HDFS-9231.005.patch
          14 kB
          Xiao Chen
        6. HDFS-9231.004.patch
          13 kB
          Xiao Chen
        7. HDFS-9231.003.patch
          12 kB
          Xiao Chen
        8. HDFS-9231.002.patch
          12 kB
          Xiao Chen
        9. HDFS-9231.001.patch
          12 kB
          Xiao Chen

        Issue Links

          Activity

            People

              xiaochen Xiao Chen
              xiaochen Xiao Chen
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: