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

FSCK "-list-corruptfileblocks" return Invalid Entries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • None
    • None
    • Reviewed

    Description

      Scenario :  if we have two directories dir1, dir10 and only dir10 have corrupt files 

      Now if we run -list-corruptfileblocks for dir1,  corrupt files count for dir1 showing is of dir10

        while (blkIterator.hasNext()) {
              BlockInfo blk = blkIterator.next();
              final INodeFile inode = getBlockCollection(blk);
              skip++;
              if (inode != null) {
                String src = inode.getFullPathName();
                if (src.startsWith(path)){
                  corruptFiles.add(new CorruptFileBlockInfo(src, blk));
                  count++;
                  if (count >= DEFAULT_MAX_CORRUPT_FILEBLOCKS_RETURNED)
                    break;
                }
              }
            } 

      Attachments

        1. HDFS-15009.004.patch
          11 kB
          Hemanth Boyina
        2. HDFS-15009.003.patch
          12 kB
          Hemanth Boyina
        3. HDFS-15009.002.patch
          13 kB
          Hemanth Boyina
        4. HDFS-15009.001.patch
          4 kB
          Hemanth Boyina

        Activity

          People

            hemanthboyina Hemanth Boyina
            hemanthboyina Hemanth Boyina
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: